/* Custom Modal Styles */

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.active {
    display: flex;
    opacity: 1;
    z-index: 999999999;
}

.custom-modal-content {
    background: #000000;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.custom-modal.active .custom-modal-content {
    transform: translateY(0);
}

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

.custom-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.custom-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-modal-close:hover {
    background: #e5e5e5;
    transform: rotate(90deg);
}

.custom-modal-close::before,
.custom-modal-close::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: #333;
}

.custom-modal-close::before {
    transform: rotate(45deg);
}

.custom-modal-close::after {
    transform: rotate(-45deg);
}

.custom-modal-body {
    padding: 30px;
}

.custom-form-group {
    margin-bottom: 25px;
}

.custom-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
}

.custom-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.custom-form-control:focus {
    border-color: #c9a961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    outline: none;
}

.custom-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.custom-form-file {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.custom-form-file input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.custom-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.custom-file-label:hover {
    background: #f0f0f0;
    border-color: #c9a961;
}

.custom-file-label i {
    font-size: 24px;
    margin-right: 10px;
    color: #101a22;
}

.custom-file-text {
    color: #666;
}

.custom-form-row {
    display: flex;
    gap: 20px;
}

.custom-form-col {
    flex: 1;
}

.newsletter-form-col {
    flex: 1;
}

.custom-form-submit {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.custom-form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 169, 97, 0.2);
}

.custom-form-hint {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Newsletter Popup Form Styles */
.newsletter-popup-form {
    padding: 20px;
}

.newsletter-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.newsletter-form-group {
    margin-bottom: 15px;
}

.newsletter-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.newsletter-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form-control:focus {
    border-color: #c9a961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    outline: none;
}

.newsletter-form-textarea {
    min-height: 80px;
    resize: vertical;
}

.newsletter-form-file {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    margin-bottom: 5px;
    height: 100%;
}

.newsletter-form-file input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.newsletter-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    height: 100%;
}

.newsletter-file-label:hover {
    background: #f0f0f0;
    border-color: #101a22;
}

.newsletter-file-label i {
    font-size: 18px;
    margin-right: 8px;
    color: #101a22;
}

.newsletter-file-text {
    color: #666;
    font-size: 14px;
}

.newsletter-form-hint {
    font-size: 12px;
    color: #666;
}

.newsletter-form-submit {
    background: linear-gradient(135deg, #c9a961 0%, #e5c17a 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.newsletter-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.2);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .custom-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .custom-modal-header {
        padding: 20px;
    }

    .custom-modal-body {
        padding: 20px;
    }

    .custom-form-row {
        flex-direction: column;
        gap: 0;
    }
    .custom-form-group {
    margin-bottom: 0px;
}
}

/* ================================================================
   QUICK VIEW MODAL — Clean self-contained styles (no theme conflicts)
   ================================================================ */

/* Backdrop — JS sets display:flex to show, display:none to hide */
.quickview-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    background: rgba(15, 12, 8, 0.72) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* Override theme opacity/visibility hiding so popup shows when display:flex */
    opacity: 1 !important;
    visibility: visible !important;
    /* theme's width/height/transform overrides */
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    margin: 0 !important;
    top: 0 !important;
    left: 0 !important;
}

/* Modal card */
.qv-modal-card {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.42);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: qvSlideIn 0.28s ease;
}
@keyframes qvSlideIn {
    from { transform: translateY(22px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Scrollable body */
.qv-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 0;
}
.qv-body::-webkit-scrollbar { width: 5px; }
.qv-body::-webkit-scrollbar-track { background: #f5f3ef; }
.qv-body::-webkit-scrollbar-thumb { background: #c8a96e; border-radius: 3px; }

/* Close button */
.qv-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f0e8;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qv-close:hover { background: #c8a96e; transform: rotate(90deg); }
.qv-close::before,
.qv-close::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background: #6b5b3e;
    border-radius: 1px;
}
.qv-close:hover::before,
.qv-close:hover::after { background: #fff; }
.qv-close::before { transform: rotate(45deg); }
.qv-close::after  { transform: rotate(-45deg); }

/* ── Image column ── */
.qv-image-col {
    background: #f8f5f0;
    border-radius: 14px 0 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 20px;
    gap: 12px;
    overflow: hidden;
}
.qv-image-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.qv-main-img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.2s;
}
.qv-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.qv-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.65;
}
.qv-thumb:hover,
.qv-thumb.active { border-color: #c8a96e; opacity: 1; }
.qv-video-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #c8a96e, #e5c17a);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.qv-video-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(200,169,110,0.4); }

/* ── Info column ── */
.qv-info-col {
    padding: 32px 26px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qv-info-col::-webkit-scrollbar { width: 4px; }
.qv-info-col::-webkit-scrollbar-thumb { background: #e0d8ce; border-radius: 3px; }

/* Badges */
.qv-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.qv-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
}
.qv-badge-gold  { background: #b8960c; }
.qv-badge-teal  { background: #1a8a4a; }
.qv-badge-red   { background: #e53935; }

/* Title */
.qv-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
    padding-right: 36px;
}
.qv-title a { color: inherit; text-decoration: none; }
.qv-title a:hover { color: #c8a96e; }

/* Rating */
.qv-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.qv-review-count { color: #aaa; }

/* Price */
.qv-price { display: flex; align-items: baseline; gap: 8px; }
.qv-old-price { color: #aaa; font-size: 13px; text-decoration: line-through; }
.qv-new-price { color: #c8a96e; font-size: 22px; font-weight: 700; text-decoration: none; }

/* Stock */
.qv-stock-in  { color: #1a8a4a; font-size: 12px; font-weight: 600; }
.qv-stock-out { color: #c0392b; font-size: 12px; font-weight: 600; }

/* Description */
.qv-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Variants */
.qv-variants { display: flex; flex-direction: column; gap: 8px; }
.qv-variant-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qv-variant-label { font-size: 12px; font-weight: 700; color: #555; text-transform: capitalize; min-width: 56px; }
.qv-variant-values { display: flex; gap: 5px; flex-wrap: wrap; }
.qv-color-swatch {
    display: inline-block; width: 20px; height: 20px;
    border-radius: 50%; border: 2px solid rgba(0,0,0,0.12); cursor: pointer;
}
.qv-size-chip {
    display: inline-block; padding: 2px 10px; border: 1px solid #ddd;
    border-radius: 3px; font-size: 11px; color: #444; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.qv-size-chip:hover { border-color: #c8a96e; background: #fdf8f0; }

/* Specs table */
.qv-specs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.qv-spec-label { padding: 4px 0; color: #888; font-weight: 700; width: 46%; }
.qv-spec-val   { padding: 4px 0; color: #333; }

/* Certifications */
.qv-certs { display: flex; gap: 5px; flex-wrap: wrap; }
.qv-cert-badge {
    display: inline-block; background: #f5f0e8; border: 1px solid #d4b87a;
    border-radius: 3px; padding: 2px 9px; font-size: 11px; color: #7a5c00;
}

/* Cart form */
.qv-cart-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.qv-cart-row  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Qty stepper */
.qv-qty {
    display: flex;
    border: 1.5px solid #e0d8ce;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}
.qv-qty-btn {
    width: 36px; height: 42px;
    border: none; background: #f5f0e8;
    font-size: 18px; font-weight: 600;
    cursor: pointer; color: #6b5b3e;
    transition: background 0.2s;
    line-height: 1;
}
.qv-qty-btn:hover { background: #e8dece; }
.qv-qty-input {
    width: 50px; height: 42px;
    border: none; text-align: center;
    font-size: 15px; font-weight: 600;
    outline: none; color: #1a1a1a;
    -moz-appearance: textfield;
}
.qv-qty-input::-webkit-inner-spin-button,
.qv-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Add to cart */
.qv-add-cart-btn {
    flex: 1; min-width: 120px; height: 42px;
    background: linear-gradient(135deg, #c8a96e, #e5c17a);
    color: #fff; border: none; border-radius: 7px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.qv-add-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200,169,110,0.35);
}
.qv-add-cart-btn.qv-in-cart { background: #1a8a4a; }
.qv-add-cart-disabled { background: #ddd !important; color: #999 !important; cursor: not-allowed !important; }

/* View full details link */
.qv-view-full {
    display: block; text-align: center;
    padding: 9px 16px;
    border: 1.5px solid #c8a96e; color: #c8a96e;
    border-radius: 7px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    text-decoration: none; transition: background 0.2s, color 0.2s;
}
.qv-view-full:hover { background: #c8a96e; color: #fff; }

/* Compatibility: video modal inside quickview-popup still uses quickview-container */
.quickview-popup .quickview-container {
    position: relative !important;
    inset: unset !important;
    z-index: 1 !important;
}
.quickview-popup .quickview-close {
    position: absolute !important;
    top: -12px !important;
    right: -12px !important;
    width: 34px !important;
    height: 34px !important;
    background: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}
.quickview-popup .quickview-close::before,
.quickview-popup .quickview-close::after {
    content: '' !important;
    position: absolute !important;
    width: 14px !important;
    height: 2px !important;
    background: #333 !important;
    border-radius: 1px !important;
}
.quickview-popup .quickview-close::before { transform: rotate(45deg) !important; }
.quickview-popup .quickview-close::after  { transform: rotate(-45deg) !important; }

/* ── Quick View Responsive ── */
@media (max-width: 820px) {
    .quickview-popup { padding: 0; align-items: flex-end; }
    .qv-modal-card {
        max-width: 100%;
        max-height: 93vh;
        border-radius: 18px 18px 0 0;
        animation: qvSlideUp 0.28s ease;
    }
    @keyframes qvSlideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .qv-body { grid-template-columns: 1fr; }
    .qv-image-col {
        border-radius: 18px 18px 0 0;
        min-height: 220px;
        max-height: 260px;
        padding: 16px;
    }
    .qv-info-col { padding: 20px 18px 28px; }
    .qv-title { font-size: 17px; }
}
@media (max-width: 480px) {
    .qv-image-col { min-height: 180px; max-height: 210px; }
    .qv-info-col { padding: 16px 14px 24px; gap: 8px; }
    .qv-title { font-size: 15px; }
    .qv-cart-row { gap: 8px; }
    .qv-add-cart-btn { min-width: 0; font-size: 12px; }
}


/* ================================================================
   COMPARE POPUP — Full override for scroll + styling + responsive
   ================================================================ */

/* Backdrop */
.compare-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(15, 12, 8, 0.70) !important;
    /* display is controlled by JS — do NOT put display:flex here, it overrides style="display:none" */
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Inner wrapper */
.compare-popup-inner {
    width: 100% !important;
    max-width: 1100px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    height: 100% !important;
    max-height: calc(100vh - 48px) !important;
}

/* Table card */
.compare-popup .compare-table {
    background: #fff !important;
    border-radius: 14px !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.40) !important;
    padding: 0 !important;
    margin: 0 !important;
    left: unset !important;
    position: relative !important;
}

/* Scrollable inner */
.compare-popup .compare-table-inner {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    position: relative !important;
    padding: 0 !important;
}
.compare-popup .compare-table-inner::before { display: none !important; }
.compare-popup .compare-table-inner::-webkit-scrollbar { width: 6px; height: 6px; }
.compare-popup .compare-table-inner::-webkit-scrollbar-track { background: #f5f3ef; }
.compare-popup .compare-table-inner::-webkit-scrollbar-thumb { background: #c8a96e; border-radius: 4px; }

/* Sticky header bar at top of compare modal */
.compare-popup-header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border-bottom: 2px solid #f5f0e8 !important;
    background: #fff !important;
    flex-shrink: 0 !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.compare-popup-header-bar h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    flex: 1 !important;
}

/* Close button */
.compare-popup .compare-table-close {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    width: 34px !important;
    height: 34px !important;
    background: #f5f0e8 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s !important;
    flex-shrink: 0 !important;
}
.compare-popup .compare-table-close:hover {
    background: #c8a96e !important;
    transform: rotate(90deg) !important;
}
.compare-table-close-icon {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    position: relative !important;
}
.compare-table-close-icon::before,
.compare-table-close-icon::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: #6b5b3e !important;
    border-radius: 1px !important;
}
.compare-popup .compare-table-close:hover .compare-table-close-icon::before,
.compare-popup .compare-table-close:hover .compare-table-close-icon::after { background: #fff !important; }
.compare-table-close-icon::before { transform: rotate(45deg) !important; }
.compare-table-close-icon::after  { transform: rotate(-45deg) !important; }

/* Compare table */
.compare-popup #compare-product-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 13px !important;
    table-layout: auto !important;
}

/* Sticky thead */
.compare-popup #compare-product-table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: #fff !important;
}
.compare-popup #compare-product-table thead tr th {
    background: #fff !important;
    padding: 18px 16px !important;
    border-bottom: 2px solid #f0ebe2 !important;
    vertical-align: top !important;
    min-width: 180px !important;
    max-width: 240px !important;
}
.compare-popup #compare-product-table thead tr th:first-child {
    width: 150px !important;
    min-width: 130px !important;
    background: #faf7f2 !important;
    font-size: 12px !important;
    color: #999 !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 6 !important;
    border-right: 1px solid #f0ebe2 !important;
}

/* Product name link in thead */
.compare-popup #compare-product-table thead tr th a {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}
.compare-popup #compare-product-table thead tr th a:hover { color: #c8a96e !important; }

/* Remove btn in thead */
.compare-popup .cmp-remove-btn {
    background: none !important;
    border: 1px solid #e8e0d0 !important;
    border-radius: 4px !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    cursor: pointer !important;
    color: #999 !important;
    transition: border-color 0.2s, color 0.2s !important;
    white-space: nowrap !important;
}
.compare-popup .cmp-remove-btn:hover {
    border-color: #e53935 !important;
    color: #e53935 !important;
}

/* Sticky label column */
.compare-popup #compare-product-table tbody tr td:first-child {
    position: sticky !important;
    left: 0 !important;
    background: #faf7f2 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
    border-right: 1px solid #f0ebe2 !important;
    z-index: 4 !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid #f5f1ea !important;
}
.compare-popup #compare-product-table tbody tr td {
    padding: 10px 16px !important;
    border-bottom: 1px solid #f5f1ea !important;
    vertical-align: middle !important;
    background: #fff !important;
    color: #000000 !important;
}
.compare-popup #compare-product-table tbody tr:hover td { background: #fffdf9 !important; }
.compare-popup #compare-product-table tbody tr:hover td:first-child { background: #f5f0e8 !important; }

/* Image row */
.compare-popup #compare-product-table tbody tr.tr-image td { vertical-align: top !important; padding-top: 16px !important; }

/* Add to cart button in compare */
.compare-popup .cmp-add-cart {
    padding: 7px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    background: linear-gradient(135deg, #c8a96e, #e5c17a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    white-space: nowrap !important;
}
.compare-popup .cmp-add-cart:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(200,169,110,0.35) !important;
}
.compare-popup .cmp-add-cart:disabled {
    background: #ddd !important;
    color: #aaa !important;
    cursor: not-allowed !important;
}

/* Clear all button */
#cmp-clear-all {
    background: none !important;
    margin-right: 50px !important;
    border: 1px solid #e0d8ce !important;
    border-radius: 5px !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    color: #888 !important;
    transition: border-color 0.2s, color 0.2s !important;
    white-space: nowrap !important;
}
#cmp-clear-all:hover { border-color: #e53935 !important; color: #e53935 !important; }

/* Empty / loading states */
#compare-loading, #compare-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
}
#compare-loading .cmp-spin {
    width: 36px; height: 36px;
    border: 3px solid #f0ebe2;
    border-top-color: #c8a96e;
    border-radius: 50%;
    animation: cmpSpin 0.8s linear infinite;
    margin: 0 auto 14px;
}
@keyframes cmpSpin { to { transform: rotate(360deg); } }

/* ── Compare Mobile Cards ── */
.compare-cards-mobile { display: none !important; }

.compare-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0ebe2;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.compare-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #faf7f2;
    border-bottom: 1px solid #f0ebe2;
    gap: 10px;
}
.compare-card-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}
.compare-card-title a { color: #1a1a1a; text-decoration: none; }
.compare-card-title a:hover { color: #c8a96e; }
.compare-card-remove {
    background: none !important;
    border: 1px solid #e0d8ce !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    color: #999 !important;
    flex-shrink: 0 !important;
    transition: border-color 0.2s, color 0.2s !important;
}
.compare-card-remove:hover { border-color: #e53935 !important; color: #e53935 !important; }
.compare-card-body { padding: 12px 14px; }
.compare-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f1ea;
    font-size: 12px;
}
.compare-card-row:last-child { border-bottom: none; }
.compare-card-row-label {
    width: 110px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 1px;
}
.compare-card-row-value { flex: 1; color: #333; line-height: 1.5; }
.compare-card-row-image { padding: 10px 0; }
.compare-card-price ins { color: #c8a96e; font-weight: 700; text-decoration: none !important; }
.compare-card-price del { color: #bbb; font-size: 11px; }

/* ── Compare Responsive ── */
@media (max-width: 860px) {
    .compare-popup { padding: 0 !important; align-items: flex-end !important; }
    .compare-popup-inner {
        max-height: 92vh !important;
        align-items: flex-end !important;
    }
    .compare-popup .compare-table {
        border-radius: 18px 18px 0 0 !important;
        max-height: 92vh !important;
    }
    .compare-popup .compare-table-desktop { display: none !important; }
    .compare-cards-mobile {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        padding: 16px !important;
        overflow-y: auto !important;
        max-height: calc(92vh - 80px) !important;
    }
    .compare-cards-mobile::-webkit-scrollbar { width: 4px; }
    .compare-cards-mobile::-webkit-scrollbar-thumb { background: #c8a96e; border-radius: 3px; }
}
@media (max-width: 480px) {
    .compare-popup-header-bar { padding: 12px 14px !important; }
    .compare-popup-header-bar h4 { font-size: 13px !important; }
    .compare-card-row-label { width: 90px; }
}

/* body lock when modal open */
body.quickview-open { overflow: hidden !important; }