:root {
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark: #9A7A2E;
    --cream: #FAF6EE;
    --dark: #4b4a49;
    --charcoal: #444240;
    --muted: #7A6E62;
    --border: #E8DFD0;
    --white: #FFFFFF;
    --danger: #E05C5C;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: white;
    color: var(--dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

/* BREADCRUMB */
.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .sep {
    color: var(--border);
}

.breadcrumb .active {
    color: var(--gold);
}

/* MAIN LAYOUT - Merged and Cleaned */
.product-page {
    background-color: rgb(247, 245, 245);
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 40px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 16px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* GALLERY */
.gallery-wrap {
    position: sticky;
    top: 24px;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin-left: 112px;
    /* Default desktop margin */
}

.product-zoom-container {
    display: flex;
    position: relative;
    margin-bottom: 15px;
}

.thumbnails-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.thumb {
    width: calc(16.66% - 9px);
    min-width: 80px;
    aspect-ratio: 1 / 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.thumb.active {
    border-color: #C9A84C;
    box-shadow: 0 0 5px rgba(201, 168, 76, 0.5);
}

.thumb img,
.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 2;
    pointer-events: none;
}

.main-image-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s ease;
    background: #fff;
}

.img-zoom-lens {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid #ccc;
    visibility: hidden;
    pointer-events: none;
}

.img-zoom-result {
    width: 500px;
    height: 500px;
    position: absolute;
    top: 0;
    left: 92%;
    z-index: 5;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    background-repeat: no-repeat;
}

/* PRODUCT INFO */
.product-info {
    padding-top: 8px;
    position: relative;
    z-index: 1;
    /* Note: z-index changed from -1 to 1 to prevent click blocking issues */
    margin-right: 80px;
}

.badge-certified {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--dark);
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
}

.badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s;
    flex-shrink: 0;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e8d8c0;
}

.thumb:hover,
.thumb.active {
    border-color: var(--gold);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

#productMainVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

#productMainImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
}

.thumb video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.product-title {
    margin-bottom: 5px;
}

.product-sku {
    font-size: 13px;
    color: #8D817A;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-sku span {
    font-weight: 600;
    color: #4A403A;
    letter-spacing: 0.5px;
    background-color: #FEF7F3;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #D5C9C1;
}

.product-category {
    font-size: 15px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 26px;
}

/* REVIEWS */
.review-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    color: var(--gold);
    font-size: 16px;
}

.star.empty {
    color: var(--border);
}

.review-count {
    font-size: 13px;
    color: var(--muted);
}

.write-review {
    font-size: 13px;
    color: black;
    text-decoration: none;
    border-bottom: 1px dashed black;
    margin-left: auto;
    cursor: pointer;
    transition: color .2s;
}

.write-review:hover {
    color: black;
}

.review-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.review-modal-card {
    background: #fff;
    width: 92%;
    max-width: 420px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    animation: slideUp 0.4s forwards cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.close-btn {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-btn:hover {
    background: #eee;
    color: #000;
}

.star-input-container {
    text-align: center;
    margin-bottom: 25px;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 8px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 42px;
    color: #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.star-rating-input label:hover {
    transform: scale(1.15);
}

.star-rating-input input:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: #D4AF37;
}

#ratingLabel {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #D4AF37;
    min-height: 20px;
}

.form-field {
    margin-top: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
    color: #444;
}

.form-field textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    background: #fafafa;
    transition: 0.3s;
}

.form-field textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.submit-review-btn {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    margin-top: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}

.submit-review-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.modal-share {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.modal-share p {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.share-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.s-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.s-btn:hover {
    background: #f9f9f9;
    border-color: #ddd;
}

/* WISHLIST BUTTON */
.wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid grey;
    background: #f8f8f8;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.wishlist-btn svg {
    width: 18px;
    height: 18px;
    fill: transparent;
    stroke: #666;
    transition: all 0.3s ease;
}

.wishlist-btn.active svg {
    fill: #fd8787;
    stroke: #fff;
}

.wishlist-btn:active {
    transform: scale(0.96);
}

/* KARAT */
.section-label {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.karat-options {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.karat-btn {
    padding: 10px 24px;
    border: 2.5px solid var(--border);
    background: var(--white);
    border-radius: 2px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    color: var(--dark);
    text-align: center;
}

.karat-btn:hover {
    border-color: var(--gold-dark);
    color: black;
}

.karat-btn:hover:not(.active) {
    border-color: #ccc;
    background: #f9f9f9;
}

.karat-btn.active {
    border-color: #c9a84c;
    background: #fef9f3;
}

.karat-btn.active .karat-label {
    color: #7a5c1e;
}

.karat-btn .kp {
    display: block;
    font-size: 11px;
    font-weight: 300;
    margin-top: 2px;
    opacity: .75;
}

/* QTY */
.qty-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 44px;
    background: var(--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark);
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--cream);
}

.qty-input {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 500;
    background: var(--white);
    color: var(--dark);
    outline: none;
}

.stock-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    margin: 15px 0;
    display: inline-block;
}

.stock-in {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stock-low {
    background-color: #ffebee;
    color: #c62828;
    animation: pulse 2s infinite;
}

.stock-making {
    background-color: #f5f5f5;
    color: #616161;
    border: 1px dashed #bdbdbd;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.total-price-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--dark);
}

.total-price-display .currency {
    font-size: 18px;
    font-weight: 300;
    color: var(--muted);
}

/* CTA */
.cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 32px;
}

.btn-cart {
    padding: 16px;
    background: #070000;
    border: 2px solid #000000;
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-cart:hover {
    color: #000000 !important;
    border: 2px solid black;
}

.btn-cart:hover::before {
    width: 100%;
}

.zayyora-cart-popup {
    border-radius: 4px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12) !important;
}

.zayyora-timer-bar {
    background: #c9a84c !important;
    height: 2px !important;
}

.btn-buynow {
    padding: 16px;
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn-buynow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #000000;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-buynow:hover {
    color: #ffffff;
}

.btn-buynow:hover::before {
    width: 100%;
}

/* DIVIDER & BREAKDOWN */
.ornament-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--gold);
    font-size: 18px;
}

.ornament-divider::before,
.ornament-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.price-breakdown {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pb-header {
    background: var(--dark);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.pb-header h3 {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: white;
    font-weight: 500;
}

.toggle-icon {
    color: white;
    font-size: 20px;
    transition: transform .3s;
    line-height: 1;
    display: inline-block;
}

.pb-header.open .toggle-icon {
    /* No rotation needed since JS changes the text content from plus to minus */
}

.pb-body {
    display: none;
}

.pb-body.open {
    display: block;
}

.pb-table {
    width: 100%;
    border-collapse: collapse;
}

.pb-table tr {
    border-bottom: 1px solid var(--border);
}

.pb-table tr:last-child {
    border-bottom: none;
}

.pb-table td {
    padding: 13px 20px;
    font-size: 14px;
    color: var(--charcoal);
}

.pb-table td:first-child {
    color: var(--muted);
}

.pb-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.sub-note {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

.pb-table tr.product-total-row {
    background: var(--cream);
}

.pb-table tr.product-total-row td {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.pb-table tr.product-total-row td:first-child {
    color: var(--dark);
}

.toast {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    transform: translateX(-50%) translateY(0) !important;
    background: #062037 !important;
    color: #ffffff !important;
    padding: 14px 24px !important;
    border-radius: 26px !important;
    font-size: 13px;
    letter-spacing: .06em;
    max-width: clamp(280px, 92vw, 520px) !important;
    width: auto !important;
    opacity: 0;
    transition: opacity .35s, transform .35s;
    z-index: 99999 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.toast.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.product-info>* {
    animation: fadeUp .5s ease forwards;
    opacity: 0;
}

.product-info>*:nth-child(1) {
    animation-delay: .05s
}

.product-info>*:nth-child(2) {
    animation-delay: .10s
}

.product-info>*:nth-child(3) {
    animation-delay: .15s
}

.product-info>*:nth-child(4) {
    animation-delay: .20s
}

.product-info>*:nth-child(5) {
    animation-delay: .25s
}

.product-info>*:nth-child(6) {
    animation-delay: .30s
}

.product-info>*:nth-child(7) {
    animation-delay: .35s
}

.product-info>*:nth-child(8) {
    animation-delay: .40s
}

.product-info>*:nth-child(9) {
    animation-delay: .45s
}

.product-info>*:nth-child(10) {
    animation-delay: .50s
}

.product-info>*:nth-child(11) {
    animation-delay: .55s
}

/* SIZE CHART MODAL */
.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.size-guide-link {
    font-size: 13px;
    color: black;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.size-guide-link:hover {
    color: black;
    text-decoration: underline;
}

.size-dropdown {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.size-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
}

.size-modal-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.size-modal-card {
    background: #fff;
    width: 92%;
    max-width: 450px;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.size-modal-overlay.active .size-modal-card {
    opacity: 1;
    transform: translateY(0);
}

.size-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 12px 5px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    font-size: 13px;
    transition: 0.3s;
}

.tab-btn.active {
    color: black;
    border-bottom: 2px solid black;
}

.table-container {
    max-height: 280px;
    overflow-y: auto;
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.size-chart-table th {
    padding: 12px;
    background: #fafafa;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.size-chart-table td {
    padding: 14px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #333;
}

.size-chart-table tr.highlight {
    background: rgba(212, 175, 55, 0.05);
    font-weight: 700;
    color: #D4AF37;
}

.measure-info {
    margin-top: 20px;
    padding: 12px;
    background: #fdfaf0;
    border-radius: 12px;
    font-size: 12px;
    color: #8a6d3b;
    text-align: center;
}

/* SIMILAR PRODUCTS SECTION */
.similar-products-wrapper {
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.section-headerr {
    text-align: center;
    margin-bottom: 40px !important;
}

.section-title {
    font-size: 24px;
    color: #4A403A;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.title-underline {
    width: 60px;
    height: 2px;
    background-color: #D6A4AB;
    margin: 0 auto;
}

.similar-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.zayyora-product-card {
    cursor: pointer;
    background: #fff;
    transition: transform 0.3s ease;
    border-radius: 8px;
    padding-bottom: 25px;
}

.zayyora-product-card:hover {
    transform: translateY(-5px);
}

.card-image-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #FDF7F8;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.zayyora-product-card:hover .card-image-box img {
    transform: scale(1.08);
}

.heart-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8D817A;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: color 0.3s, transform 0.2s;
}

.heart-wishlist:hover {
    color: #D6A4AB;
    transform: scale(1.1);
}

.hover-action {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.zayyora-product-card:hover .hover-action {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-btn {
    background: #fff;
    color: #4A403A;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 80%;
    transition: background 0.3s;
}

.quick-add-btn:hover {
    background: #FDF7F8;
}

.card-details {
    text-align: center;
    padding: 0 10px;
}

.card-category {
    font-size: 11px;
    color: #8D817A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
}

.card-name {
    font-size: 14px;
    color: #4A403A;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.card-price {
    font-size: 15px;
    color: #4A403A;
    font-weight: 700;
    margin: 0;
}

/* TRUST BADGES SECTION */
.zayyora-trust-section {
    background-color: #ffffff;
    padding: 60px 20px;
    margin-top: 40px;
    border-top: 1px solid #EBE4E5;
    border-bottom: 1px solid #EBE4E5;
}

.trust-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.zayyora-trust-section .trust-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 15px;
    gap: 0 !important;
}

.zayyora-trust-section .trust-item::after {
    display: none !important;
    content: none !important;
}

.zayyora-trust-section .trust-icon {
    font-size: 32px;
    color: #062037 !important;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zayyora-trust-section .trust-icon img {
    filter: brightness(0) saturate(100%) invert(8%) sepia(50%) saturate(2758%) hue-rotate(198deg) brightness(97%) contrast(101%) !important;
}

.zayyora-trust-section .trust-icon i {
    color: #062037 !important;
}

.zayyora-trust-section .trust-fallback-emoji {
    color: #062037 !important;
}

.zayyora-trust-section .trust-item:hover .trust-icon {
    transform: translateY(-5px) scale(1.1);
}

.zayyora-trust-section .trust-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #4A3B3D;
    margin: 0 0 8px 0;
}

.zayyora-trust-section .trust-item p {
    font-size: 13px;
    color: #7A6E62;
    line-height: 1.5;
    margin: 0;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* REVIEWS SECTION */
.zayyora-reviews-section {
    padding: 100px 0;
    background-color: #fdfaf9;
    overflow: hidden;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-title-area {
    text-align: center;
    margin-bottom: 60px;
}

.sub-heading {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    color: #b38b6d;
    margin-bottom: 10px;
    font-weight: 600;
}

.main-heading {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: #2c2624;
    margin-bottom: 20px;
}

.luxury-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.luxury-divider .line {
    width: 40px;
    height: 1px;
    background: #d6c4b5;
}

.divider-gem {
    font-size: 12px;
    color: #d6c4b5;
}

.reviews-slider-wrapper {
    position: relative;
    padding: 20px 0;
}

.reviews-slider-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
}

.reviews-slider-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc(33.333% - 20px);
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 15px 45px rgba(138, 90, 68, 0.05);
    scroll-snap-align: center;
    position: relative;
    border: 1px solid #f2ebe6;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: #e2d1c3;
}

.quote-watermark {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #f9f3f0;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: #2c2624;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.review-card-top {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-info h4 {
    font-size: 16px;
    color: #2c2624;
    margin-bottom: 3px;
}

.verified-badge {
    font-size: 10px;
    color: #8aab9b;
    margin-left: 5px;
    text-transform: uppercase;
}

.review-stars {
    color: #d4af37;
    font-size: 12px;
    margin-bottom: 15px;
}

.review-title {
    font-size: 17px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c2624;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #6b6360;
    margin-bottom: 25px;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f0ed;
    padding-top: 20px;
    font-size: 12px;
}

.helpful-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #b38b6d;
    font-weight: 600;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.slider-arrow:hover {
    background: #2c2624;
    color: #fff;
}

.prev-arrow {
    left: -25px;
}

.next-arrow {
    right: -25px;
}

.slider-progress-container {
    width: 150px;
    height: 2px;
    background: #eee;
    margin: 40px auto 0;
    position: relative;
    border-radius: 2px;
}

.slider-progress-bar {
    position: absolute;
    height: 100%;
    width: 33%;
    background: #b38b6d;
    transition: left 0.3s ease;
    left: 0;
}


/* ==========================================
   RESPONSIVE STYLES
========================================== */

/* --- Laptop View --- */
@media (max-width: 1440px) {
    .gallery-wrap {
        margin-left: 0;
    }
    .product-info {
        margin-right: 0;
    }
}

/* --- Tablet View --- */
@media (max-width: 1024px) {
    .product-page {
        padding: 20px 24px 32px;
        column-gap: 40px;
        row-gap: 16px;
    }

    .gallery-wrap {
        margin-left: 0;
        /* Remove hard margin */
        max-width: 100%;
    }

    .product-info {
        margin-right: 0;
        /* Remove hard margin */
    }

    /* Hide side zoom on tablet to save space */
    .img-zoom-result,
    .img-zoom-lens {
        display: none !important;
    }

    .main-image-frame {
        cursor: grab;
        /* Change cursor since side-zoom is gone */
    }

    .similar-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-grid {
        gap: 20px;
    }

    .review-card {
        flex: 0 0 calc(50% - 15px);
        /* 2 cards visible */
    }

    .slider-arrow {
        display: none;
        /* Hide arrows, use swipe */
    }
}

/* --- Mobile View --- */
@media (max-width: 768px) {
    .breadcrumb-bar {
        padding: 12px 16px;
    }

    .product-page {
        grid-template-columns: 1fr;
        /* Stack layout */
        padding: 24px 16px;
        gap: 24px;
    }

    /* .size-selection{
        margin-right: 10px;
    } */
    .gallery-wrap {
        position: static;
        /* Remove sticky on mobile */
        max-width: 100%;
    }

    .main-image-frame {
        max-width: 100%;
    }

    .product-info {
        z-index: 1;
        /* Fix potential click issues */
    }

    .product-title {
        font-size: 28px;
        /* Smaller title */
    }

    .cta-group {
        grid-template-columns: 1fr;
        /* Stack buttons */
        gap: 10px;
    }

    .qty-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .similar-product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
        gap: 15px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
        gap: 30px 15px;
    }

    .zayyora-reviews-section {
        padding: 60px 0;
    }

    .main-heading {
        font-size: 28px;
    }

    .review-card {
        flex: 0 0 85vw;
        /* 1 card mostly visible, peek next */
    }

    .size-modal-card {
        width: 95%;
        padding: 20px;
    }

    .pincode-card {
        padding: 16px !important;
    }
    .pincode-field {
        gap: 8px !important;
    }
    .pincode-field input {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    .pincode-field button {
        padding: 0 20px !important;
        font-size: 14px !important;
    }
}

/* --- Small Mobile View --- */
@media (max-width: 480px) {
    .product-title {
        font-size: 24px;
    }

    .product-category {
        font-size: 12px;
    }

    .total-price-display {
        font-size: 26px;
    }

    .thumb {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .karat-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .karat-btn .kp {
        font-size: 10px;
    }

    .pb-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        /* 1 column on very small screens */
    }

    .pincode-card {
        padding: 12px !important;
    }
    .pincode-field {
        gap: 6px !important;
    }
    .pincode-field input {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    .pincode-field button {
        padding: 0 14px !important;
        font-size: 13px !important;
    }
}

/* ===== BACK NAVIGATION BUTTON ===== */
.back-navigation {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.back-btn:hover {
    border-color: #C9A84C;
    color: #C9A84C;
    background: #fff;
    transform: translateX(-2px);
    box-shadow: 0 4px 10px rgba(201, 168, 76, 0.12);
}

.back-btn:hover svg {
    stroke: #C9A84C;
    transform: translateX(-2px);
}

.back-btn svg {
    transition: transform 0.25s ease, stroke 0.25s ease;
    stroke: #4a5568;
}

/* ===== MOBILE STICKY BACK BUTTON ===== */
@media (max-width: 768px) {
    .back-navigation {
        position: sticky;
        top: 0;
        z-index: 100;

        /* Pull out of parent padding to span full width */
        margin: -24px -16px 12px;
        padding: 12px 16px;

        /* Match product page background so content doesn't show through */
        background: #f7f5f5;
        border-bottom: 1px solid #eee;
    }

    .back-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
        border-radius: 8px;
        background: #fff;
        border-color: #eee;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 480px) {
    .back-navigation {
        margin: -24px -12px 12px;
        padding: 10px 12px;
    }

    .back-btn {
        padding: 7px 14px;
        font-size: 11px;
    }
}

/* Pincode Checker Card */
.zayyora-pincode-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.zayyora-pincode-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.zayyora-pincode-header .pin-icon {
    font-size: 20px;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--cream);
    border-radius: 50%;
}

.zayyora-pincode-header h4 {
    font-size: 16px;
    margin: 0;
    color: var(--dark);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
}

.zayyora-pincode-header span {
    font-size: 12px;
    color: var(--muted);
}

.zayyora-pincode-form {
    display: flex;
    gap: 8px;
}

.zayyora-pincode-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.zayyora-pincode-form input:focus {
    border-color: var(--gold);
}

.zayyora-pincode-form button {
    padding: 10px 20px;
    background-color: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}

.zayyora-pincode-form button:hover {
    background-color: var(--charcoal);
}

.zayyora-pincode-result {
    margin-top: 12px;
    font-size: 13px;
}

.zayyora-pincode-result p {
    margin: 0;
    font-weight: 600;
}

.zayyora-pincode-result #location-text {
    color: var(--dark);
}

.zayyora-pincode-result #delivery-text {
    color: #2e7d32;
    margin-top: 4px;
}

.zayyora-pincode-result .error {
    color: var(--danger);
}