/* ==========================================================================
   Etsy-Style WooCommerce Single Product Page Styling
   ========================================================================== */

.etsy-product-container {
    max-width: 1360px !important;
    margin: 0 auto;
    padding: 0 20px;
}

.etsy-single-product-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #222222;
    padding-bottom: 60px;
}

.etsy-product-inner-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    box-sizing: border-box;
}

.etsy-product-inner-container * {
    box-sizing: border-box;
}

/* 1. Breadcrumbs */
.etsy-breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #595959;
    margin-bottom: 24px;
    padding-top: 8px;
}

.etsy-breadcrumb-nav a {
    color: #595959;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.etsy-breadcrumb-nav a:hover {
    color: #000000;
}

.etsy-bc-sep {
    font-size: 14px;
    color: #888888;
    user-select: none;
}

.etsy-bc-current {
    color: #222222;
    font-weight: 500;
}

/* 2. Main Grid: Gallery & Reviews (Left) vs Summary & Details (Right) */
.etsy-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(360px, 1fr);
    gap: 44px;
    align-items: start;
}

.etsy-main-col-left {
    min-width: 0;
}

@media (max-width: 991px) {
    .etsy-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Left: Gallery Row */
.etsy-gallery-col {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .etsy-gallery-col {
        flex-direction: column-reverse;
    }
}

/* Thumbnails Strip */
.etsy-thumbnails-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 68px;
    flex-shrink: 0;
    max-height: 580px;
    overflow-y: auto;
    scrollbar-width: none;
}

.etsy-thumbnails-strip::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .etsy-thumbnails-strip {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
    }
}

.etsy-thumb-item {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: #f1f1f1;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.etsy-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.etsy-thumb-item:hover,
.etsy-thumb-item.is-active {
    border-color: #222222;
}

.etsy-thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Large Main Image Box */
.etsy-main-image-box {
    position: relative;
    flex: 1;
    background-color: #f7f5f0; /* Etsy warm beige backdrop */
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    min-height: 480px;
}

@media (max-width: 768px) {
    .etsy-main-image-box {
        min-height: 340px;
    }
}

.etsy-main-img-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.etsy-main-img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Wishlist Heart Button */
.etsy-wishlist-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #222222;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    outline: none;
}

.etsy-wishlist-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.etsy-wishlist-btn.is-active .etsy-heart-icon {
    fill: #e63946;
    stroke: #e63946;
}

/* Gallery Navigation Arrows (Icon FontAwesome & Flatsome fl-icons) */
.etsy-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #222222;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    outline: none;
    padding: 0;
}

.etsy-gallery-arrow:hover {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.etsy-gallery-prev {
    left: 14px;
}

.etsy-gallery-next {
    right: 14px;
}

.etsy-gallery-arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.etsy-gallery-prev:hover svg {
    transform: translateX(-2px);
}

.etsy-gallery-next:hover svg {
    transform: translateX(2px);
}

/* Right Column: Summary */
.etsy-summary-col {
    display: flex;
    flex-direction: column;
}

/* Prices */
.etsy-price-area {
    margin-bottom: 12px;
}

.etsy-price-main-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.etsy-current-price,
.etsy-current-price .woocommerce-Price-amount {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #222222 !important;
    line-height: 1.15;
}

.etsy-regular-price,
.etsy-regular-price .woocommerce-Price-amount {
    font-size: 16px !important;
    color: #757575 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

.etsy-sale-badge-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #0f834d; /* Etsy Green */
}

.etsy-discount-badge {
    font-weight: 700;
}

.etsy-sale-dot {
    opacity: 0.7;
}

.etsy-tax-info {
    font-size: 13px;
    color: #757575;
    margin-top: 6px;
}

/* Product Title */
.etsy-product-title {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.45;
    color: #222222;
    margin: 12px 0 10px;
}

/* Seller Byline */
.etsy-seller-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}

.etsy-seller-name {
    font-weight: 600;
    color: #222222;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.etsy-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none !important;
    cursor: pointer;
    vertical-align: middle;
}

.etsy-star-rating svg {
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.etsy-star-rating:hover svg {
    transform: scale(1.1);
}

/* Add to cart form overrides */
.etsy-cart-action-area {
    margin-bottom: 30px;
}

.etsy-cart-action-area form.cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.etsy-cart-action-area .quantity {
    margin-bottom: 4px;
}

.etsy-cart-action-area button.single_add_to_cart_button,
.etsy-cart-action-area .single_add_to_cart_button {
    background-color: #2b2738 !important; /* Etsy dark charcoal purple */
    color: #ffffff !important;
    border-radius: 9999px !important;
    border: none !important;
    height: 50px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    width: 100% !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.1s ease !important;
}

.etsy-cart-action-area button.single_add_to_cart_button:hover {
    background-color: #1a1724 !important;
}

/* Accordions */
.etsy-accordions-group {
    border-top: 1px solid #e5e5e5;
}

.etsy-accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.etsy-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.etsy-acc-title {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}

.etsy-acc-arrow {
    color: #222222;
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
}

.etsy-accordion-item.is-open .etsy-acc-arrow {
    transform: rotate(180deg);
}

.etsy-accordion-body {
    padding-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
}

/* Highlights */
.etsy-highlights-block {
    margin-bottom: 16px;
}

.etsy-highlights-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
}

.etsy-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.etsy-highlights-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #222222;
}

.etsy-highlights-list svg {
    flex-shrink: 0;
    color: #222222;
}

.etsy-learn-more-link {
    background: none;
    border: none;
    padding: 0;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* Delivery block */
.etsy-delivery-headline {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.etsy-delivery-text {
    margin: 0 0 8px;
    font-size: 14px;
    color: #444;
}

.etsy-delivery-subtext {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Protection Block */
.etsy-protection-block {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.etsy-protection-icon {
    color: #2b2738;
    flex-shrink: 0;
    padding-top: 2px;
}

.etsy-protection-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.etsy-protection-info p {
    margin: 0;
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
}

.etsy-pill-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 9999px;
    border: 1.5px solid #222222;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.etsy-pill-outline-btn:hover {
    background: #222222;
    color: #ffffff;
}

/* Report link */
.etsy-report-row {
    margin: 32px 0 24px;
    display: flex;
    justify-content: center;
}

.etsy-report-link {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.etsy-report-link:hover {
    text-decoration: underline;
    color: #000;
}

/* 4. Reviews Section */
.etsy-reviews-section {
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    margin-top: 20px;
}

.etsy-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 16px;
}

.etsy-ai-summary-bar {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.etsy-ai-summary-label {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
}

.etsy-ai-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.etsy-ai-tag {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #222222;
}

/* Score Overview Row */
.etsy-score-overview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.etsy-score-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.etsy-score-big {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: #222222;
}

.etsy-score-star {
    font-size: 32px;
    color: #f59e0b;
}

.etsy-score-meta {
    display: flex;
    flex-direction: column;
    font-size: 13.5px;
    line-height: 1.3;
}

.etsy-score-circles {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.etsy-circle-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.etsy-stat-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #e08b26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #222222;
    background: #ffffff;
}

.etsy-circle-stat span {
    font-size: 12px;
    color: #444;
    max-width: 80px;
    line-height: 1.25;
}

/* Filter pills slider wrapper (Hình 3 & 4) */
.etsy-pills-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.etsy-review-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px;
    scroll-behavior: smooth;
    width: 100%;
}

.etsy-review-filter-pills::-webkit-scrollbar {
    display: none;
}

.etsy-pill-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: #222;
    transition: all 0.2s ease;
}

.etsy-pill-scroll-btn:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

.etsy-pill-scroll-prev {
    left: -14px;
}

.etsy-pill-scroll-next {
    right: -14px;
}

.etsy-filter-pill {
    background: #f1f1f1;
    border: none;
    border-radius: 9999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #222222;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.etsy-filter-pill:hover,
.etsy-filter-pill.is-active {
    background: #222222;
    color: #ffffff;
}

/* Reviews list (Giao diện chuẩn website bán mẫu website) */
.etsy-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Features checkmarks (Screenshot 1) */
.etsy-review-features-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}
.etsy-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
}

/* Review Cards on Page (Screenshot 1) */
.etsy-reviews-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.etsy-review-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ededed;
    border-radius: 0;
    padding: 20px 0;
    box-shadow: none;
    transition: background 0.15s ease;
}

.etsy-review-card:last-child {
    border-bottom: none;
}

.etsy-rev-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.etsy-rev-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.etsy-rev-stars-gold {
    font-size: 15px;
    color: #f59e0b;
    letter-spacing: 2px;
}

.etsy-rev-score-num {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
}

.etsy-rev-item-badge {
    background: transparent;
    border: 1px solid #757575;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #222222;
}

.etsy-verified-buyer-tag {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.etsy-rev-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #595959;
    margin-left: auto;
}

.etsy-rev-avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    color: #ffffff;
}

.etsy-rev-author-name {
    font-weight: 600;
    color: #222222;
}

.etsy-rev-pipe {
    color: #cccccc;
}

.etsy-rev-date {
    color: #595959;
}

.etsy-rev-comment {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #222222;
}

.etsy-reviews-empty {
    padding: 24px 0;
    color: #595959;
    font-size: 14px;
}

/* Footer: View all reviews row on page (Hình 1 & 2) */
.etsy-reviews-footer-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin-top: 24px;
    padding-top: 14px;
    position: relative;
}

/* Why these reviews? wrap & trigger */
.etsy-why-reviews-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.etsy-why-reviews-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #595959;
    font-size: 13.5px;
    font-weight: 500;
    cursor: default;
    user-select: none;
    outline: none;
    transition: color 0.15s ease;
}

.etsy-why-reviews-trigger:hover,
.etsy-why-reviews-trigger:focus {
    color: #222222;
}

.etsy-why-reviews-text {
    border-bottom: 1px dashed #757575;
    padding-bottom: 1px;
}

.etsy-why-reviews-trigger:hover .etsy-why-reviews-text,
.etsy-why-reviews-trigger:focus .etsy-why-reviews-text {
    border-bottom-color: #222222;
}

.etsy-why-icon {
    color: #595959;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.etsy-why-reviews-trigger:hover .etsy-why-icon,
.etsy-why-reviews-trigger:focus .etsy-why-icon {
    color: #222222;
}

/* Popover Tooltip khi hover (Hình 1) */
.etsy-why-reviews-popover {
    position: absolute;
    top: 50%;
    left: calc(100% + 14px);
    transform: translateY(-50%) translateX(6px);
    width: 320px;
    max-width: 82vw;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1), transform 0.2s cubic-bezier(0.2, 0, 0, 1), visibility 0.2s;
}

/* Arrow pointing left */
.etsy-popover-arrow {
    position: absolute;
    top: 50%;
    left: -7px;
    transform: translateY(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.etsy-popover-content {
    position: relative;
    z-index: 2;
    font-size: 13px;
    line-height: 1.5;
    color: #222222;
    font-weight: 400;
    text-align: left;
}

/* Show on Hover, Focus & Touch Active */
.etsy-why-reviews-wrap:hover .etsy-why-reviews-popover,
.etsy-why-reviews-wrap:focus-within .etsy-why-reviews-popover,
.etsy-why-reviews-wrap.is-active .etsy-why-reviews-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* View all reviews button: Compact, sleek (Hình 2) */
.etsy-btn-view-all-reviews {
    background: #ffffff;
    border: 1px solid #222222;
    border-radius: 9999px;
    padding: 7px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.etsy-btn-view-all-reviews:hover {
    background: #222222;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

@media (max-width: 640px) {
    .etsy-reviews-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .etsy-why-reviews-popover {
        top: calc(100% + 12px);
        left: 0;
        transform: translateY(6px);
    }

    .etsy-popover-arrow {
        top: -7px;
        left: 20px;
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: none;
    }

    .etsy-why-reviews-wrap:hover .etsy-why-reviews-popover,
    .etsy-why-reviews-wrap:focus-within .etsy-why-reviews-popover,
    .etsy-why-reviews-wrap.is-active .etsy-why-reviews-popover {
        transform: translateY(0);
    }
}

/* ==========================================================================
   Reviews Modal (Screenshots 2, 3, 4)
   ========================================================================== */
.etsy-reviews-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(34, 34, 34, 0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.etsy-reviews-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.etsy-reviews-modal-dialog {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 660px;
    max-height: 88vh;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.etsy-reviews-modal-backdrop.is-open .etsy-reviews-modal-dialog {
    transform: translateY(0) scale(1);
}

.etsy-rev-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid transparent;
}

.etsy-rev-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin: 0;
    letter-spacing: -0.3px;
}

.etsy-rev-modal-close-btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #222222;
    transition: background 0.2s ease;
    padding: 0;
}

.etsy-rev-modal-close-btn:hover {
    background: #f1f1f1;
}

.etsy-rev-modal-body {
    padding: 0 28px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Modal Rating Breakdown (Screenshot 2) */
.etsy-rev-modal-breakdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 24px;
    margin-bottom: 16px;
}

.etsy-rev-modal-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.etsy-rev-modal-big-star-score {
    display: flex;
    align-items: center;
    gap: 6px;
}

.etsy-rev-modal-big-star-score .etsy-rev-star-icon {
    color: #f5a623;
    font-size: 32px;
    line-height: 1;
}

.etsy-rev-modal-big-star-score .etsy-rev-score-text {
    font-size: 38px;
    font-weight: 700;
    color: #222222;
    line-height: 1;
}

.etsy-rev-ratings-count-dotted {
    font-size: 13px;
    color: #595959;
    border-bottom: 1.5px dotted #757575;
    margin-top: 6px;
    padding-bottom: 1px;
}

.etsy-rev-modal-bars-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.etsy-rev-bar-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #222222;
    cursor: pointer;
    padding: 1px 0;
}

.etsy-rev-bar-row:hover .etsy-rev-bar-label {
    text-decoration: underline;
}

.etsy-rev-bar-label {
    width: 45px;
    white-space: nowrap;
    font-size: 12.5px;
    color: #222222;
}

.etsy-rev-bar-track {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 999px;
    margin: 0 12px;
    overflow: hidden;
}

.etsy-rev-bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.etsy-rev-bar-pct {
    width: 36px;
    text-align: right;
    font-size: 12.5px;
    color: #595959;
}

/* Modal Filter Strip (Screenshot 3) */
.etsy-rev-modal-filters-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.etsy-rev-modal-filters-strip::-webkit-scrollbar {
    display: none;
}

.etsy-modal-dropdown-wrap {
    position: relative;
    flex-shrink: 0;
}

.etsy-modal-filter-btn {
    background: #f3f3f3;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.etsy-modal-filter-btn:hover {
    background: #e7e7e7;
}

.etsy-modal-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    min-width: 170px;
}

.etsy-modal-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13.5px;
    color: #222222;
    text-decoration: none;
    transition: background 0.15s ease;
}

.etsy-modal-dropdown-menu a:hover,
.etsy-modal-dropdown-menu a.is-selected {
    background: #f5f5f5;
    font-weight: 600;
}

.etsy-modal-aspect-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.etsy-modal-aspect-pill {
    background: #f3f3f3;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.etsy-modal-aspect-pill:hover {
    background: #e7e7e7;
}

.etsy-modal-aspect-pill.is-active {
    background: #222222;
    color: #ffffff;
}

/* Modal Reviews Cards */
.etsy-modal-reviews-list {
    display: flex;
    flex-direction: column;
}

.etsy-modal-review-card {
    padding: 18px 0;
    border-bottom: 1px solid #ededed;
}

.etsy-modal-review-card:last-child {
    border-bottom: none;
}

.etsy-modal-rev-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.etsy-modal-rev-stars {
    font-size: 14.5px;
    color: #222222;
    letter-spacing: 2px;
}

.etsy-modal-rev-recommends {
    font-size: 12.5px;
    font-weight: 600;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.etsy-modal-rev-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #595959;
    margin-bottom: 8px;
}

.etsy-modal-rev-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.etsy-modal-rev-name {
    font-weight: 600;
    color: #222222;
}

.etsy-modal-rev-pipe {
    color: #c4c4c4;
}

.etsy-modal-rev-date {
    color: #595959;
}

.etsy-modal-rev-comment-body {
    font-size: 14px;
    line-height: 1.55;
    color: #222222;
}

.etsy-modal-rev-comment-body p {
    margin: 0;
}

/* Modal Circular Pagination (Screenshot 4) */
.etsy-modal-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 24px;
    margin-top: 12px;
    border-top: 1px solid #ededed;
}

.etsy-page-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f3f3;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.etsy-page-circle-btn:hover:not(:disabled) {
    background: #e7e7e7;
}

.etsy-page-circle-btn.is-active {
    background: #ffffff;
    border-color: #222222;
    color: #222222;
}

.etsy-page-circle-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.etsy-page-ellipsis {
    width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #595959;
}

/* Photos from reviews */
.etsy-photos-from-reviews {
    margin: 32px 0;
}

.etsy-sub-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
}

.etsy-review-photos-grid {
    display: flex;
    gap: 14px;
}

.etsy-rev-photo-item {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f1f1;
}

.etsy-rev-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.etsy-rev-photo-item:hover img {
    transform: scale(1.05);
}

/* 5. Meet Your Seller Card */
.etsy-seller-profile-card {
    background: #fdfdfd;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    padding: 24px;
    margin: 36px 0;
}

.etsy-seller-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.etsy-seller-info-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.etsy-seller-avatar-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e5e5;
}

.etsy-seller-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etsy-seller-fullname {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.etsy-seller-location {
    font-size: 15px;
    color: #555555;
    margin: 0 0 5px;
    line-height: 1.4;
}

.etsy-seller-location .etsy-shop-link,
.etsy-seller-location strong {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
}

.etsy-seller-metrics {
    font-size: 13.5px;
    color: #222222;
    margin: 0;
    font-weight: 500;
}

.etsy-seller-actions-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

@media (max-width: 768px) {
    .etsy-seller-actions-right {
        align-items: flex-start;
        width: 100%;
    }
}

.etsy-response-time {
    font-size: 12px;
    color: #777;
}

/* 6. All reviews from this shop */
.etsy-shop-reviews-section {
    margin: 36px 0;
}

.etsy-shop-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.etsy-shop-reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .etsy-shop-reviews-slider {
        grid-template-columns: 1fr;
    }
}

.etsy-shop-rev-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.etsy-stars-small {
    font-size: 13px;
    letter-spacing: 2px;
    color: #222;
    margin-bottom: 8px;
}

.etsy-shop-rev-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 14px;
}

.etsy-shop-rev-footer {
    font-size: 12px;
    color: #666;
}

.etsy-purchased a {
    color: #222;
    text-decoration: underline;
}

/* 7. More from this shop */
.etsy-more-from-shop-section {
    margin: 40px 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
}

.etsy-more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.etsy-visit-shop-link {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 8. Related Searches / Tags */
.etsy-related-searches-section {
    margin-top: 40px;
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
}

.etsy-serif-title {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    color: #222222;
    margin: 0 0 20px;
}

.etsy-search-preview-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 1024px) {
    .etsy-search-preview-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .etsy-search-preview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.etsy-preview-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    transition: all 0.2s ease;
}

.etsy-preview-card:hover {
    border-color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.etsy-preview-card img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.etsy-preview-card span {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

.etsy-tag-cloud-title {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 14px;
}

.etsy-tag-chips-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.etsy-chip {
    background: #f1f1f1;
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 13.5px;
    color: #222222;
    text-decoration: none;
    transition: all 0.2s ease;
}

.etsy-chip:hover {
    background: #222222;
    color: #ffffff;
}

.etsy-bottom-meta-row {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    font-size: 13px;
    color: #666;
}

.etsy-fav-count-link {
    color: #222;
    text-decoration: underline;
}

.etsy-bottom-breadcrumbs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.etsy-bottom-breadcrumbs a {
    color: #666;
    text-decoration: underline;
}

/* ==========================================================================
   Video Player & Scroll-on-Hover Mockup Styles
   ========================================================================== */

/* Video Container & Player */
.etsy-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.etsy-main-video {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

/* Hide native controls in all WebKit & Chromium browsers */
.etsy-main-video::-webkit-media-controls,
.etsy-main-video::-webkit-media-controls-enclosure,
.etsy-main-video::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
}

/* Scroll Container & Mockup Hover Physics */
.etsy-img-scroll-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.etsy-img-scroll-container.is-scrollable {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: grab;
    border-radius: 8px;
}

.etsy-img-scroll-container.is-scrollable .etsy-main-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateY(0);
    will-change: transform;
}

/* Scroll Hint Bar (Đặt DƯỚI NGOÀI khung ảnh lớn, nằm TRÊN nút Report - Hình 2) */
.etsy-scroll-hint-bar {
    width: 100%;
    margin: 12px 0 18px 0;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.etsy-scroll-hint-bar:hover {
    background: #f0f9ff;
    border-color: #0284c7;
}

.etsy-scroll-hint-icon {
    font-size: 15px;
    font-weight: bold;
    color: #0284c7;
    line-height: 1;
    /* Không chạy animation nhảy bounce để cố định gọn đẹp */
}

/* Thumbnail scroll badge */
.etsy-thumb-scroll-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(34, 34, 34, 0.85);
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Mini seller bio in Accordion 5 */
.etsy-seller-mini-bio {
    margin-bottom: 12px;
    font-size: 13.5px;
    color: #444;
}

.etsy-seller-mini-bio strong {
    color: #222;
    font-size: 14.5px;
}

.etsy-seller-mini-bio p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}

/* Review / Comment Form (WordPress Integration) */
.etsy-add-review-container {
    margin-top: 36px;
    padding: 30px 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.05), 0 2px 8px -2px rgba(15, 23, 42, 0.02);
}

.etsy-review-form-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.etsy-review-form-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.5;
}

.etsy-rating-picker-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    flex-wrap: wrap;
}

.etsy-rating-label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.etsy-star-picker {
    display: inline-flex;
    gap: 3px;
}

.etsy-picker-star {
    background: none;
    border: none;
    padding: 0 1px;
    font-size: 26px;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.etsy-picker-star:hover {
    transform: scale(1.18);
}

.etsy-picker-star.is-active {
    color: #f59e0b;
}

.etsy-rating-status {
    font-size: 13.5px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 12px;
    border-radius: 9999px;
    margin-left: 6px;
    letter-spacing: 0.01em;
}

.etsy-comment-form .etsy-form-group {
    margin-bottom: 18px;
}

.etsy-comment-form textarea,
.etsy-comment-form input[type="text"],
.etsy-comment-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    line-height: 1.6;
}

.etsy-comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

.etsy-comment-form textarea:focus,
.etsy-comment-form input[type="text"]:focus,
.etsy-comment-form input[type="email"]:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.etsy-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .etsy-form-row-2 {
        grid-template-columns: 1fr;
    }
}

.etsy-logged-in-notice {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 18px;
}

.etsy-logged-in-notice a {
    color: #2563eb;
    text-decoration: underline;
}

.etsy-form-submit-line {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.etsy-submit-review-btn {
    padding: 14px 44px;
    font-size: 15px;
    font-weight: 700;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.2);
}

.etsy-submit-review-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -2px rgba(15, 23, 42, 0.28);
}

.etsy-submit-review-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Aspect Rating System & Login Required Notification (Screenshots 3 & 4)
   ========================================================================== */

/* Login Required Box */
.etsy-login-required-container {
    margin-top: 36px;
    padding: 24px 28px;
    background: #fdfdfd;
    border: 1.5px dashed #d5d5d5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.etsy-login-req-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    flex-shrink: 0;
}

.etsy-login-req-body {
    flex: 1;
    min-width: 240px;
}

.etsy-login-req-body h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.etsy-login-req-body p {
    margin: 0;
    font-size: 13.5px;
    color: #666;
    line-height: 1.5;
}

.etsy-btn-login-to-review {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
    font-weight: 600;
    white-space: nowrap;
    padding: 10px 24px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.etsy-btn-login-to-review:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Aspect Selection Section */
.etsy-aspects-section {
    margin-bottom: 24px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

.etsy-aspects-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.etsy-aspect-hint {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.etsy-aspect-chips-select {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 4px 0 16px;
}

.etsy-aspect-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    user-select: none;
}

.etsy-aspect-chip:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.etsy-aspect-chip.is-selected {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px -1px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

/* Sub Star Rating Grid: 2-Column Responsive Layout */
.etsy-aspect-ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.etsy-aspect-rating-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 11px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.etsy-aspect-rating-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}

.etsy-aspect-rating-item.is-highlighted {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1.5px solid #0f172a;
    box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.08);
    padding: 16px 20px;
}

.etsy-aspect-rating-item.is-hidden {
    display: none !important;
}

.etsy-aspect-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.etsy-aspect-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
}

.etsy-aspect-highlight-badge {
    font-size: 10.5px;
    font-weight: 700;
    background: #0f172a;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: none;
}

.etsy-aspect-rating-item.is-highlighted .etsy-aspect-highlight-badge {
    display: inline-block;
}

.etsy-sub-star-picker {
    display: inline-flex;
    gap: 3px;
}

.etsy-sub-star-picker button {
    background: none;
    border: none;
    padding: 0 1px;
    font-size: 19px;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.etsy-sub-star-picker button:hover {
    transform: scale(1.22);
}

.etsy-sub-star-picker button.is-active {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .etsy-add-review-container {
        padding: 20px 16px;
    }
    .etsy-aspect-ratings-grid {
        grid-template-columns: 1fr;
    }
    .etsy-aspect-chips-select {
        gap: 6px;
    }
    .etsy-aspect-chip {
        padding: 6px 12px;
        font-size: 11.5px;
    }
}

/* Aspect badge in review card */
.etsy-rev-item-badge {
    background: #f1f1f1;
    border: 1px solid #e4e4e4;
    border-radius: 9999px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Khám phá các tìm kiếm liên quan (Hình 1)
   ========================================================================== */
.etsy-explore-related-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid #e8e8e8;
}

.etsy-explore-heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.etsy-explore-heading-sub {
    font-size: 20px;
    margin: 32px 0 16px;
}

.etsy-related-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.etsy-related-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 16px 8px 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.etsy-related-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
    color: #000000;
}

.etsy-related-card-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.etsy-related-card-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.etsy-related-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.etsy-related-tag-pill {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.etsy-related-tag-pill:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

/* ==========================================================================
   Wishlist / Favorite Items Modal (Hình 2 & 3)
   ========================================================================== */
.etsy-wishlist-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.etsy-wishlist-modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 1140px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 36px 44px;
    box-shadow: 0 25px 60px -15px rgba(0,0,0,0.35);
    position: relative;
    animation: etsyWishlistSlideIn 0.25s ease-out;
}

@keyframes etsyWishlistSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.etsy-wishlist-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.etsy-wishlist-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.etsy-wishlist-modal-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.2;
}

.etsy-wishlist-signin-btn {
    border: 1px solid #222;
    border-radius: 999px;
    padding: 5px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.etsy-wishlist-signin-btn:hover {
    background: #222;
    color: #fff;
}

.etsy-wishlist-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.etsy-wishlist-head-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s;
}

.etsy-wishlist-head-action-btn:hover {
    background: #e2e8f0;
}

.etsy-wishlist-head-icon-btn,
.etsy-wishlist-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.etsy-wishlist-head-icon-btn:hover,
.etsy-wishlist-close-btn:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* Alert Banner (Hình 2) */
.etsy-wishlist-alert-banner {
    background: #fffdf5;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 0 28px;
}

.etsy-wishlist-alert-icon {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.etsy-wishlist-alert-body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 2px;
}

.etsy-wishlist-alert-body p {
    margin: 0;
    font-size: 13px;
    color: #b45309;
    line-height: 1.5;
}

/* Favorite Items Grid */
.etsy-wishlist-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.etsy-fave-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.etsy-fave-img-box {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.etsy-fave-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.etsy-fave-card:hover .etsy-fave-img-box img {
    transform: scale(1.04);
}

.etsy-fave-heart-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e63946;
    transition: transform 0.15s;
    z-index: 2;
}

.etsy-fave-heart-btn svg {
    fill: #e63946;
    stroke: #e63946;
}

.etsy-fave-heart-btn:hover {
    transform: scale(1.15);
}

.etsy-fave-info {
    padding: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.etsy-fave-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.etsy-fave-seller {
    font-size: 12px;
    color: #64748b;
}

.etsy-fave-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    flex-wrap: wrap;
}

.etsy-fave-old-price {
    font-size: 12.5px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}

.etsy-fave-discount {
    font-size: 12.5px;
    color: #059669;
    font-weight: 600;
}

.etsy-fave-digital {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #2563eb;
    font-weight: 500;
    margin-top: 3px;
}

.etsy-wishlist-empty-msg {
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Similar to this collection (Hình 3) */
.etsy-similar-collection-section {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
}

.etsy-similar-collection-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
}

.etsy-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.etsy-similar-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.etsy-similar-img-box {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.etsy-similar-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.etsy-similar-card:hover .etsy-similar-img-box img {
    transform: scale(1.04);
}

.etsy-card-heart-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #222222;
    transition: all 0.15s;
    z-index: 2;
}

.etsy-card-heart-btn:hover {
    transform: scale(1.15);
}

.etsy-card-heart-btn.is-faved {
    color: #e63946;
}

.etsy-card-heart-btn.is-faved svg {
    fill: #e63946;
    stroke: #e63946;
}

.etsy-similar-info {
    padding: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.etsy-similar-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.etsy-similar-seller {
    font-size: 12px;
    color: #64748b;
}

.etsy-similar-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    flex-wrap: wrap;
    margin-top: 2px;
}

.etsy-similar-old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}

.etsy-similar-discount {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

.etsy-similar-digital {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #2563eb;
    font-weight: 500;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .etsy-wishlist-modal-dialog {
        padding: 24px 18px;
    }
    .etsy-wishlist-modal-title {
        font-size: 26px;
    }
    .etsy-wishlist-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .etsy-similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ==========================================================================
   Etsy Product Image Lightbox Modal (Phóng to như Hình 2)
   ========================================================================== */
body.etsy-lightbox-open {
    overflow: hidden !important;
}

.etsy-main-img-viewport,
.etsy-main-img,
.etsy-img-scroll-container {
    cursor: zoom-in !important;
}

.etsy-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.etsy-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.etsy-lightbox-close-btn {
    position: absolute;
    top: 22px;
    right: 26px;
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s;
}

.etsy-lightbox-close-btn:hover {
    background: #f5f5f5;
    transform: scale(1.08);
}

.etsy-lightbox-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    pointer-events: none;
}

/* Center Stage */
.etsy-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    height: 100%;
    max-width: 900px;
    pointer-events: auto;
}

.etsy-lightbox-nav {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s;
    z-index: 5;
}

.etsy-lightbox-nav:hover {
    transform: scale(1.1);
    background: #f8f8f8;
}

.etsy-lightbox-media-box {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.etsy-lb-image-holder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    cursor: zoom-in;
    position: relative;
    transition: all 0.25s ease;
}

.etsy-lb-img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    display: block;
    margin: auto;
    user-select: none;
    transition: transform 0.25s ease, opacity 0.15s ease;
}

/* Zoomed in state */
.etsy-lb-image-holder.is-zoomed {
    cursor: zoom-out !important;
    display: block !important;
    overflow: auto !important;
}

.etsy-lb-image-holder.is-zoomed .etsy-lb-img {
    max-width: none !important;
    max-height: none !important;
    width: 170% !important;
    margin: 0 auto;
    cursor: zoom-out !important;
}

/* Video Holder */
.etsy-lb-video-holder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.etsy-lb-video {
    max-width: 100%;
    max-height: 86vh;
    outline: none;
}

/* "Click to zoom" Pill Button (Hình 2) */
.etsy-lb-zoom-pill {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.2s ease, background-color 0.2s, color 0.2s;
}

.etsy-lb-zoom-pill:hover {
    background: #ffffff;
    transform: translateX(-50%) scale(1.05);
}

.etsy-lb-zoom-pill.is-zoomed {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
}

.etsy-lb-zoom-pill.is-zoomed svg {
    stroke: #ffffff;
}

/* Right Thumbnails Strip (2-Column Grid as in Screenshot 2) */
.etsy-lightbox-thumbs-sidebar {
    width: 290px;
    max-width: 300px;
    height: 86vh;
    max-height: 86vh;
    overflow-y: auto;
    pointer-events: auto;
    padding-right: 6px;
}

.etsy-lightbox-thumbs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.etsy-lightbox-thumbs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
}

.etsy-lightbox-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: start;
}

.etsy-lb-thumb-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.etsy-lb-thumb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.etsy-lb-thumb-card.is-active {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px #ffffff, 0 4px 16px rgba(0,0,0,0.5);
    transform: translateY(-1px);
}

.etsy-lb-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.etsy-lb-thumb-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Mobile & Tablet Responsive for Lightbox */
@media (max-width: 900px) {
    .etsy-lightbox-container {
        flex-direction: column;
        height: 94vh;
        gap: 14px;
        width: 96vw;
    }

    .etsy-lightbox-stage {
        max-height: 72vh;
        width: 100%;
        max-width: 100%;
    }

    .etsy-lightbox-thumbs-sidebar {
        width: 100%;
        max-width: 100%;
        height: 85px;
        max-height: 85px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 4px;
    }

    .etsy-lightbox-thumbs-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .etsy-lb-thumb-card {
        width: 75px;
        height: 75px;
        min-width: 75px;
        flex-shrink: 0;
    }

    .etsy-lightbox-close-btn {
        top: 12px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
}


