/* =========================================================================
   PREMIUM UX STYLES (Offcanvas Cart, Quick View, Live Search, AJAX Filters)
   ========================================================================= */

html, body {
    overflow-x: clip;
    max-width: 100%;
}

/* --- 1. Offcanvas Cart --- */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.82, 0.085, 0.395, 0.895);
    max-width: 100vw;
}

.offcanvas-cart.open {
    right: 0;
}

.offcanvas-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offcanvas-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-offcanvas-btn {
    background: #f8fafc;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.close-offcanvas-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #fdfdfd;
}

.offcanvas-cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offcanvas-cart-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.offcanvas-cart-item .item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
}

.offcanvas-cart-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offcanvas-cart-item .item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offcanvas-cart-item h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.offcanvas-cart-item .item-price {
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #f73266;
    font-size: 0.9rem;
}

.offcanvas-cart-item .qty-label {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 12px;
}

.btn-remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-remove-item:hover {
    color: #ef4444;
}

.offcanvas-cart-footer {
    padding: 24px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #334155;
    font-weight: 600;
}

.cart-subtotal .total-amount {
    font-size: 1.3rem;
    color: #0f172a;
    font-weight: 800;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-view-cart {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.btn-view-cart:hover {
    background: #e2e8f0;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    background: #f73266;
    color: white;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(247, 50, 102, 0.3);
    transition: all 0.2s ease;
}

.btn-checkout:hover {
    background: #e81d50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 50, 102, 0.4);
}

.offcanvas-empty {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.offcanvas-empty .empty-icon {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.offcanvas-empty h3 {
    margin: 0 0 10px 0;
    color: #0f172a;
}

.offcanvas-empty p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.9rem;
}


/* --- 2. Live Search --- */
.nav-search-container {
    position: relative;
    margin: 0 20px;
    flex: 1;
    max-width: 350px;
}

.nav-search-input {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.nav-search-input:focus {
    border-color: #f73266;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(247, 50, 102, 0.1);
}

.nav-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    pointer-events: none;
}

.live-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.live-search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ls-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    cursor: pointer;
}

.ls-item:last-child {
    border-bottom: none;
}

.ls-item:hover {
    background: #f8fafc;
}

.ls-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f5f9;
}

.ls-info {
    display: flex;
    flex-direction: column;
}

.ls-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.ls-price {
    font-size: 0.8rem;
    color: #f73266;
    font-weight: 700;
}

.ls-loading {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.ls-empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}


/* --- 3. Quick View Modal --- */
.quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal {
    background: #fff;
    width: 900px;
    max-width: 95vw;
    border-radius: 24px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
}

.quick-view-overlay.active .quick-view-modal {
    transform: scale(1) translateY(0);
}

.btn-close-qv {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.btn-close-qv:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.quick-view-content {
    display: flex;
    width: 100%;
}

.qv-image-side {
    width: 45%;
    position: relative;
    background: #f8fafc;
}

.qv-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.qv-details-side {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.qv-details-side h2 {
    font-size: 2rem;
    color: #0f172a;
    margin: 10px 0 20px 0;
    font-weight: 800;
    line-height: 1.2;
}

.qv-details-side .product-price {
    font-size: 1.5rem;
    color: #f73266;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.qv-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1rem;
}

.qv-meta {
    margin-bottom: 30px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-badge.in-stock {
    background: #ecfdf5;
    color: #10b981;
}

.stock-badge.out-stock {
    background: #fef2f2;
    color: #ef4444;
}

.qv-actions a.btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    justify-content: center;
    border-radius: 16px;
}

/* AJAX Filter Loading Overlay */
#product-grid-container {
    position: relative;
    min-height: 200px;
    transition: opacity 0.3s ease;
}

#product-grid-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Override product-action-overlay for Home/Boutique if needed */
.product-card .product-action-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter background, no blur */
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-action-overlay {
    opacity: 1;
    visibility: visible;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .action-btn {
    transform: translateY(0);
}

.product-card:hover .action-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.action-btn:hover {
    background: #f73266;
    color: #fff;
    transform: translateY(-5px) !important;
}

.action-btn.disabled {
    cursor: not-allowed;
    color: #94a3b8;
}

.action-btn.disabled:hover {
    background: #fff;
    color: #94a3b8;
    transform: none !important;
}

/* Badge Animation */
@keyframes badgeBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
        background-color: #ff1e56;
    }

    100% {
        transform: scale(1);
    }
}

.badge-bounce {
    animation: badgeBounce 0.4s ease-out;
}


.cart-badge {
    display: inline-block;
}


.item-qty-actions {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: max-content;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 2px;
    margin-top: 5px;
}

.item-qty-actions .qty-btn {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.item-qty-actions .qty-btn:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #f73266;
}

.item-qty-actions .qty-value {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: #0f172a;
}


/* Premium Cart Footer */
.shipping-progress-container {
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
}

.shipping-msg {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: #475569;
    text-align: center;
}

.shipping-msg.success {
    color: #10b981;
}

.shipping-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f73266, #ff7b9c);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.shipping-progress-fill.success {
    background: #10b981;
}

.cart-summary-premium {
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #475569;
}

.summary-val {
    font-weight: 600;
    color: #0f172a;
}

.summary-line.total-line {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.total-line small {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: normal;
}

.text-success {
    color: #10b981;
    font-weight: 700;
}

.secure-checkout-badges {
    margin-top: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


.btn-continue-shopping {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 5px;
}

.btn-continue-shopping:hover {
    color: #f73266;
    text-decoration: underline;
}


/* Wishlist Specific Styles */
.wishlist-icon {
    position: relative;
}

.wishlist-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f73266;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 700;
}

.offcanvas-wishlist-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    position: relative;
    margin-bottom: 15px;
}

.btn-remove-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-remove-wishlist:hover {
    color: #ef4444;
}

.btn-add-from-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #f73266;
    text-decoration: none;
    font-weight: 600;
}

/* Related Products in Quick View */
.qv-related-products {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.qv-related-products h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.related-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

.related-info {
    display: flex;
    flex-direction: column;
}

.related-name {
    font-size: 0.75rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

/* Empty Cart Suggestions */
.empty-cart-suggestions {
    margin-top: 30px;
    width: 100%;
}

.suggestion-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #334155;
    text-align: left;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.suggestion-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: transform 0.2s;
}

.suggestion-item:hover img {
    transform: scale(1.05);
}

.suggestion-name {
    font-size: 0.7rem;
    color: #64748b;
    text-align: center;
}

/* Wishlist Heart Icon Style */
.wishlist-btn {
    position: relative;
}

.wishlist-btn.active i {
    color: #f73266;
    font-weight: 800;
}


/* Fix Wishlist Image Size */
.offcanvas-wishlist-item .item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
}

.offcanvas-wishlist-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offcanvas-wishlist-item h4 {
    margin: 0 0 3px 0;
    font-size: 0.9rem;
    color: #0f172a;
}

.offcanvas-wishlist-item .item-price {
    margin: 0;
    font-weight: 700;
    color: #f73266;
    font-size: 0.85rem;
}


/* --- 5. Premium Product Details Page (LX Design) --- */
.product-page-premium {
    background: #fff;
    padding: 20px 0 80px 0;
    font-family: 'Poppins', sans-serif;
}

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

.lx-breadcrumb {
    margin-bottom: 30px;
}

.lx-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lx-back-btn:hover {
    color: #f73266;
    transform: translateX(-5px);
}

.lx-product-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    margin-bottom: 80px;
}

.lx-gallery-section {
    flex: 1;
    min-width: 400px;
}

.lx-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: #f8fafc;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.lx-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.lx-main-image:hover img {
    transform: scale(1.1);
}

.lx-out-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lx-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.lx-thumb {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    background: #f8fafc;
    flex-shrink: 0;
}

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

.lx-thumb.active {
    border-color: #f73266;
    transform: scale(0.95);
}

.lx-details-section {
    flex: 1;
    min-width: 400px;
    position: relative;
}

.lx-cat {
    display: block;
    color: #f73266;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.lx-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.lx-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.stars {
    color: #d4af37;
    font-size: 1.2rem;
}

.lx-rating .count {
    color: #94a3b8;
    font-size: 0.9rem;
}

.lx-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 40px;
}

.lx-price .currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
}

.lx-price .amount {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
}

.lx-description {
    margin-bottom: 40px;
}

.lx-description h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
}

.lx-description p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1.05rem;
}

.lx-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.lx-qty {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 5px;
}

.q-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #fff;
    color: #0f172a;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.q-btn:hover {
    background: #f73266;
    color: #fff;
}

.lx-qty input {
    width: 60px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.lx-add-btn {
    flex-grow: 1;
    height: 60px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 30px;
}

.lx-add-btn:hover {
    background: #f73266;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(247, 50, 102, 0.3);
}

.lx-wish-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lx-wish-btn.active {
    border-color: #f73266;
    color: #f73266;
    background: #fff5f7;
}

.lx-trust-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
}

.lx-trust-item {
    text-align: center;
}

.lx-trust-item i {
    font-size: 2rem;
    color: #f73266;
    margin-bottom: 10px;
}

.lx-trust-item p {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin: 0;
}

.lx-related {
    padding-top: 80px;
    border-top: 2px solid #f8fafc;
}

.lx-sec-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
}

.lx-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.lx-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
}

.lx-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.lx-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.lx-card:hover .lx-card-img img {
    transform: scale(1.1);
}

.lx-card-info {
    padding: 0 4px 4px 4px;
}

.lx-card-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e293b;
}

.lx-card-info p {
    font-weight: 800;
    color: #f73266;
    margin: 0;
}

@media (max-width: 992px) {
    .lx-product-wrapper {
        gap: 40px;
    }

    .lx-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .lx-gallery-section,
    .lx-details-section {
        flex: 1 1 100%;
        min-width: auto;
    }

    .lx-title {
        font-size: 1.75rem;
    }

    .lx-price .amount {
        font-size: 2rem;
    }

    .lx-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .lx-qty {
        width: 100%;
        justify-content: space-between;
    }

    .lx-thumb {
        width: 70px;
        height: 70px;
        border-radius: 10px;
    }

    .lx-grid {
        gap: 16px;
    }

    .lx-sec-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .lx-trust-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 30px;
    }

    .lx-trust-item {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .lx-trust-item i {
        font-size: 1.75rem;
        margin-bottom: 0;
    }

    .lx-trust-item p {
        font-size: 0.80rem;
    }
}


/* Product Link Styles in Grid */
.product-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-title-link {
    text-decoration: none;
    transition: color 0.2s;
}

.product-title-link h3 {
    margin: 0;
}

.product-title-link:hover h3 {
    color: #f73266;
}

/* =========================================================================
   RESPONSIVE HEADER & FOOTER (PREMIUM APPLE-STYLE)
   ========================================================================= */

/* Desktop defaults for elements that should not show on desktop */
.hamburger-menu {
    display: none;
}

.mobile-nav-overlay {
    display: none;
}

.footer-chevron {
    display: none;
}

/* Base Hamburger Line Styles */
.hamburger-menu {
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10003;
    transition: transform 0.3s ease;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: #0f172a;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center;
}

/* Hamburger active transformation to "X" */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #ffffff;
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #ffffff;
}

/* Media Query: Tablet & Mobile (Header & Overlay) */
@media (max-width: 992px) {

    /* Hide desktop nav links & desktop appointment button */
    .nav-links {
        display: none !important;
    }

    .btn-icon-rendez-vous {
        display: none !important;
    }

    /* Show hamburger menu */
    .hamburger-menu {
        display: flex !important;
    }

    /* Header padding and branding tweaks for Tablet/Mobile */
    header {
        padding: 14px 20px !important;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    header nav {
        padding: 0 !important;
    }

    .logo-container a {
        gap: 10px !important;
    }

    .logo-container img {
        width: 44px !important;
        height: 44px !important;
    }

    .logo-container span {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
        transition: color 0.3s ease;
    }

    .nav-actions {
        gap: 20px !important;
    }

    /* Hide top header actions except Cart and Hamburger on mobile */
    .nav-actions>button:not(#hamburger-menu-btn),
    .nav-actions .user-menu-wrapper,
    .nav-actions .wishlist-icon {
        display: none !important;
    }

    /* Increase cart button and hamburger size on mobile/tablet */
    .nav-actions .cart-icon {
        font-size: 26px !important;
    }

    .nav-actions .cart-icon .nav-action-btn {
        font-size: 26px !important;
    }

    .nav-actions .cart-icon .cart-badge {
        font-size: 11px !important;
        padding: 2px 6px !important;
        border-radius: 12px !important;
        top: -8px !important;
        right: -8px !important;
        background-color: #f73266 !important;
        box-shadow: 0 2px 5px rgba(247, 50, 102, 0.2);
    }

    .hamburger-menu {
        width: 28px !important;
        height: 20px !important;
    }

    .hamburger-menu .bar {
        height: 2.5px !important;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg) !important;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg) !important;
    }

    /* Header Active state when mobile navigation overlay is open */
    header.mobile-menu-active {
        background-color: transparent !important;
        box-shadow: none !important;
        z-index: 10003 !important;
        /* Stack above overlay (10002) */
    }

    header.mobile-menu-active .logo-container a {
        color: #ffffff !important;
        /* Turn brand text white against dark background */
    }

    header.mobile-menu-active .hamburger-menu .bar {
        background-color: #ffffff !important;
        /* Make hamburger bars white */
    }

    /* Fade out other icons to focus on close button during overlay */
    header.mobile-menu-active .nav-action-btn:not(#hamburger-menu-btn),
    header.mobile-menu-active .wishlist-icon,
    header.mobile-menu-active .cart-icon {
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.25s ease;
    }

    /* Mobile Nav Overlay (Glassmorphism & premium design) */
    .mobile-nav-overlay {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.92);
        /* Rich Dark Apple-like overlay */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: 10002;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-content {
        width: 100%;
        max-width: 420px;
        padding: 40px 24px;
        display: flex;
        flex-direction: column;
        gap: 35px;
        text-align: center;
    }

    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Stagger fade-in animations for links */
    .mobile-nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-nav-overlay.active .mobile-nav-links li {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .mobile-nav-overlay.active .mobile-nav-links li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .mobile-nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
        color: #ffffff;
        text-decoration: none;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        display: block;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        color: #f73266;
        transform: scale(1.05);
    }

    /* Appointment button inside mobile overlay menu */
    .mobile-nav-btn-rdv {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, #f73266 0%, #d4af37 100%) !important;
        color: white !important;
        font-size: 1.15rem !important;
        padding: 14px 28px !important;
        border-radius: 50px !important;
        font-weight: 700 !important;
        box-shadow: 0 8px 24px rgba(247, 50, 102, 0.3) !important;
        margin-top: 10px;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    .mobile-nav-btn-rdv:hover {
        transform: scale(1.03) !important;
        box-shadow: 0 10px 28px rgba(247, 50, 102, 0.45) !important;
    }

    .mobile-nav-actions-footer {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
    }

    .mobile-nav-overlay.active .mobile-nav-actions-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-footer-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: white;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .mobile-footer-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .mobile-footer-btn.logout-btn {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.25);
    }

    .mobile-footer-btn.logout-btn:hover {
        background: rgba(239, 68, 68, 0.25);
    }
}

/* Media Query: Extra Small Mobile Screens */
@media (max-width: 480px) {
    header {
        padding: 10px 14px !important;
    }

    header nav {
        padding: 0 !important;
    }

    .logo-container span {
        font-size: 1.05rem !important;
        white-space: nowrap !important;
        font-weight: 800 !important;
    }

    .logo-container img {
        width: 38px !important;
        height: 38px !important;
    }

    .logo-container a {
        gap: 8px !important;
    }

    .nav-actions {
        gap: 16px !important;
    }

    .nav-actions .cart-icon {
        font-size: 24px !important;
    }

    .nav-actions .cart-icon .nav-action-btn {
        font-size: 24px !important;
    }

    .nav-actions .cart-icon .cart-badge {
        font-size: 10px !important;
        padding: 1.5px 5.5px !important;
        top: -7px !important;
        right: -7px !important;
    }

    .hamburger-menu {
        width: 26px !important;
        height: 18px !important;
    }

    .hamburger-menu .bar {
        height: 2.2px !important;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }
}

/* Media Query: Extremely Narrow Screens (Avoid brand text overflow) */
@media (max-width: 375px) {
    .logo-container span {
        display: none !important;
        /* Hide brand text on tiny screens to avoid overflow */
    }
}

/* Media Query: Mobile Accordion (Footer) */
@media (max-width: 768px) {

    /* Stack footer content columns vertically */
    footer .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    footer .footer-column {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 15px;
        margin-bottom: 5px;
    }

    /* Column 1 does not collapse as an accordion, but needs styling */
    footer .footer-column:first-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 20px;
    }

    /* Accordion headers */
    .footer-column-title {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0 !important;
        cursor: pointer;
        padding: 8px 0;
        user-select: none;
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 1px;
    }

    /* Show the chevrons on mobile */
    .footer-chevron {
        display: inline-block !important;
        font-size: 1.3rem;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        color: rgba(255, 255, 255, 0.6);
    }

    /* Collapsible content wrapper */
    .footer-column-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.45s ease;
        margin-top: 0;
    }

    /* Expanded Accordion state */
    .footer-column.active .footer-column-content {
        max-height: 350px;
        /* Generous height that fits any column content */
        opacity: 1;
        margin-top: 15px;
    }

    /* Rotate chevron when column is open */
    .footer-column.active .footer-chevron {
        transform: rotate(180deg);
        color: #f73266;
        /* Accent color when active */
    }

    /* Bottom alignments */
    footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-top: 30px;
    }

    /* Prevent watermarks from causing overflow */
    .footer-watermark {
        font-size: 11vw !important;
        letter-spacing: 3px !important;
        max-width: 100%;
        overflow: hidden;
        opacity: 0.03 !important;
    }
}

/* =========================================================================
   BOTTOM NAVIGATION TAB BAR (OPTION A - iOS STYLE) & USER SHEET
   ========================================================================= */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 992px) {

    /* Show bottom tab bar on mobile/tablet */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.05);
    }

    .mobile-bottom-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        gap: 3px;
        height: 100%;
        transition: all 0.25s ease;
        position: relative;
    }

    .mobile-bottom-tab i {
        font-size: 24px;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-tab:active i {
        transform: scale(0.85);
    }

    .mobile-bottom-tab.active,
    .mobile-bottom-tab:hover {
        color: #f73266;
    }

    /* Floating Center Button (Prendre RDV) */
    .mobile-bottom-tab-center {
        position: relative;
        width: 60px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-bottom-btn-rdv {
        position: absolute;
        top: -22px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f73266 0%, #d4af37 100%);
        color: #ffffff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        box-shadow: 0 8px 20px rgba(247, 50, 102, 0.4);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 10000;
        border: 4px solid #ffffff;
    }

    .mobile-bottom-btn-rdv:active {
        transform: scale(0.9) translateY(2px);
        box-shadow: 0 4px 10px rgba(247, 50, 102, 0.3);
    }

    /* Wishlist Badge inside bottom tab bar */
    .mobile-bottom-tab .wishlist-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background: #f73266;
        color: #ffffff;
        font-size: 9px;
        font-weight: 800;
        padding: 1px 5px;
        border-radius: 10px;
        line-height: 1.2;
        border: 1.5px solid #ffffff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Space out the page body bottom to avoid footer/tabbar overlap */
    body {
        padding-bottom: 75px !important;
    }

    /* Slide-up User Action Sheet */
    .mobile-bottom-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 10004;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .mobile-bottom-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-user-sheet {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-radius: 24px 24px 0 0;
        padding: 24px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        z-index: 10005;
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .mobile-user-sheet.active {
        bottom: 0;
    }

    .mobile-user-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-user-sheet-header h3 {
        margin: 0;
        font-size: 1.2rem;
        color: #0f172a;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
    }

    .close-sheet-btn {
        background: #f8fafc;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #64748b;
    }

    .mobile-user-sheet-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-user-sheet-links a,
    .mobile-user-sheet-links button {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px 20px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        border-radius: 12px;
        color: #334155;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        transition: all 0.2s ease;
        text-align: left;
        cursor: pointer;
    }

    .mobile-user-sheet-links a:active,
    .mobile-user-sheet-links button:active {
        background: rgba(247, 50, 102, 0.05);
        color: #f73266;
        border-color: rgba(247, 50, 102, 0.1);
    }

    .mobile-logout-btn {
        background: rgba(239, 68, 68, 0.05) !important;
        border-color: rgba(239, 68, 68, 0.1) !important;
        color: #ef4444 !important;
    }
}