/* ====================================================
   MB BEAUTY STUDIO - PROFESSIONAL REDESIGN 2.0
==================================================== */

/* ====================================================
   GLOBAL RESET & BASE STYLES
==================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ====================================================
   PAGE LOADER ANIMATION
==================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-content {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.loader-content {
    text-align: center;
    transform: translateY(-50px);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(232, 162, 192, 0.2);
    border-top: 4px solid #e8a2c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-content p {
    font-size: 16px;
    font-weight: 500;
    color: #888;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Loader fade out animation */
.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.page-content.active {
    display: block;
    animation: contentFadeIn 0.8s ease forwards;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================================
   PROFESSIONAL NAVBAR - SMALLER & CLEANER
==================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f5f5f5;
    padding: 12px 0 !important;
    transition: all 0.3s ease;
    height: 70px;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem !important;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 0.5px;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    height: 40px !important;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #555;
    padding: 8px 16px;
    margin: 0 4px;
    position: relative;
    font-size: 14px;
}

/* Cart and Account Icons */
.cart-icon,
.account-icon {
    font-size: 16px;
    color: #555;
}

.cart-count {
    font-size: 10px;
    width: 16px;
    height: 16px;
}

/* ====================================================
   LANDSCAPE HERO SLIDER - ENHANCED AUTO ANIMATION
==================================================== */
.hero-slider-landscape {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(135deg, #fff9fb 0%, #fff 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    padding: 60px 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Enhanced content animations */
.hero-slide .hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    padding: 0 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #2c2c2c;
}

.hero-title span {
    color: #e8a2c0;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.7;
}

/* Enhanced image container */
.hero-slide .hero-image-container {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-slide.active .hero-image-container {
    opacity: 1;
    transform: translateX(0);
}

.hero-image-container {
    padding: 0;
    height: 70vh;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 6s ease;
}

/* Subtle Ken Burns effect */
.hero-slide.active .hero-image {
    transform: scale(1.08);
}

/* Hide arrow controls - auto animation only */
.slider-controls {
    display: none !important;
}

.hero-arrow {
    display: none !important;
}

/* Slide progress indicator at bottom */
.hero-slider-landscape::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8a2c0, #d489ad);
    animation: slideProgress 5s linear infinite;
    z-index: 10;
}

@keyframes slideProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Hide dots - not needed for auto slide */
.hero-dots {
    display: none;
}

.dot {
    display: none;
}

/* ====================================================
   SINGLE LINE FEATURES
==================================================== */
.features-single-line {
    padding: 40px 0;
    background: white;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fff9fb;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
    color: #e8a2c0;
    background: rgba(232, 162, 192, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h6 {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ====================================================
   CATEGORY NAVIGATION BAR - Reference Design
==================================================== */
.category-nav-section {
    background: #fafafa;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.category-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.category-link:hover {
    color: #e8a2c0;
    background: rgba(232, 162, 192, 0.08);
}

.category-link.active {
    background: #e8a2c0;
    color: white;
}

.category-link.active:hover {
    background: #d489ad;
    color: white;
}

.nav-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-badge.sale {
    background: #ff4757;
    color: white;
}

.nav-badge.new {
    background: #2ed573;
    color: white;
}

@media (max-width: 768px) {
    .category-nav {
        gap: 8px;
    }

    .category-link {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ====================================================
   REDESIGNED CATEGORIES WITH PRODUCTS
==================================================== */
.categories-products-section {
    padding: 100px 0;
    background: #fafafa;
}

.category-display {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 40px;
    align-items: start;
}

.category-left {
    position: sticky;
    top: 100px;
}

.category-main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    margin-bottom: 20px;
}

.category-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-main-image:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.category-overlay h3 {
    font-size: 1.8rem;
    color: white;
    margin: 0;
}

.category-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.category-arrow {
    background: white;
    border: 1px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-arrow:hover {
    background: #e8a2c0;
    color: white;
    border-color: #e8a2c0;
}

.category-counter {
    font-size: 14px;
    color: #666;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(232, 162, 192, 0.15);
}

.product-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-hover-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-product-card:hover .product-hover-actions {
    opacity: 1;
}

.btn-view-detail {
    background: white;
    color: #e8a2c0;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-detail:hover {
    background: #e8a2c0;
    color: white;
}

.btn-add-to-cart {
    background: #e8a2c0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 140px;
}

.btn-add-to-cart:hover {
    background: #d489ad;
}

.product-info {
    padding: 15px;
}

.product-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.product-info .price {
    font-size: 16px;
    font-weight: 600;
    color: #e8a2c0;
}

/* ====================================================
   UNIQUE BEST SELLERS DESIGN
==================================================== */
.best-sellers-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.view-all {
    color: #e8a2c0;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #d489ad;
    transform: translateX(5px);
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.best-seller-card {
    background: white;
    border: none;
    border-radius: 0;
    /* Sharp corners for luxury feel */
    overflow: visible;
    /* Allow shadow to spread */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    padding-bottom: 20px;
}

.best-seller-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: #000;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 320px;
    /* Taller image for airy feel */
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.best-seller-card:hover .product-image img {
    transform: scale(1.08);
}

.product-content {
    padding: 25px 15px 10px;
    text-align: center;
    background: white;
}

.product-content h3 {
    font-family: 'Playfair Display', serif;
    /* Elegant font */
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.product-desc {
    display: none;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.product-footer .price {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-footer .price del {
    color: #999;
    font-size: 13px;
}

.product-footer .price del+span,
.product-footer .sale-price {
    color: #e8a2c0;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
    opacity: 0;
    /* Hidden by default */
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.best-seller-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================
   PREMIUM BUTTON STYLES
==================================================== */
.btn-add-to-cart-main {
    background: #000;
    color: white;
    border: 1px solid #000;
    padding: 0 20px;
    height: 40px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
}

.btn-add-to-cart-main:hover {
    background: transparent;
    color: #000;
    transform: none;
    box-shadow: none;
}

.btn-add-to-cart-main i {
    font-size: 12px;
}

.best-seller-card .btn-quick-view {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    color: #000;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.best-seller-card .btn-quick-view:hover {
    border-color: #000;
    background: #000;
    color: white;
}

.btn-add-to-cart-main:active,
.best-seller-card .btn-quick-view:active {
    transform: scale(0.95);
}

/* ====================================================
   FIXED: CATEGORY SECTION IMPROVEMENTS
==================================================== */
.category-products .add-cart-form {
    margin: 0;
}

.category-products .btn-add-to-cart {
    background: #e8a2c0;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.category-products .btn-add-to-cart:hover {
    background: #d489ad;
}

.category-products .btn-view-detail {
    background: white;
    color: #e8a2c0;
    border: 1px solid #e8a2c0;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.category-products .btn-view-detail:hover {
    background: #e8a2c0;
    color: white;
}

/* ====================================================
   NOTIFICATION ANIMATIONS
==================================================== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    animation: slideIn 0.3s ease;
}

.notification.slide-out {
    animation: slideOut 0.3s ease;
}

/* ====================================================
   FIXED CART NOTIFICATION
==================================================== */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
    border-left: 4px solid #4CAF50;
    display: none;
}

.cart-notification.show {
    transform: translateX(0);
    display: block;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    background: rgba(76, 175, 80, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-text h5 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
    font-weight: 600;
}

.notification-text p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* ====================================================
   UNIQUE SALE COUNTDOWN DESIGN
==================================================== */
.sale-countdown-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff0f7 0%, #fff9fb 100%);
    position: relative;
    overflow: hidden;
}

.sale-countdown-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 162, 192, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.sale-content-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 35% 40% 25%;
    gap: 40px;
    align-items: center;
}

.sale-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.sale-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.sale-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.sale-subtitle strong {
    color: #ff4757;
}

.sale-desc {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-sale-modern {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-sale-modern:hover {
    background: #ff3742;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
    color: white;
}

.countdown-modern {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.countdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

.countdown-timer-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 25px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.time-unit .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c2c2c;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.time-unit .label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.separator {
    font-size: 2rem;
    color: #e8a2c0;
    font-weight: 300;
    margin-top: -15px;
}

.sale-progress {
    margin-top: 25px;
}

.progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e8a2c0, #ff4757);
    border-radius: 3px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 12px;
    color: #888;
    text-align: center;
}

.sale-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sale-product {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
}

.sale-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sale-product:hover img {
    transform: scale(1.1);
}

.sale-product .discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ====================================================
   MODERN INSTAGRAM SECTION
==================================================== */
.instagram-modern {
    padding: 100px 0;
    background: white;
}

.instagram-grid-modern {
    display: grid;
    grid-template-columns: 50% 25% 25%;
    grid-template-rows: 250px 250px;
    gap: 15px;
    margin: 40px 0;
}

.insta-post {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.insta-post.large {
    grid-row: span 2;
}

.insta-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.insta-media {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.insta-media img,
.insta-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.insta-link:hover .insta-media img,
.insta-link:hover .insta-media video {
    transform: scale(1.1);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-link:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay i {
    font-size: 30px;
    margin-bottom: 10px;
}

.insta-overlay span {
    font-size: 14px;
    font-weight: 500;
}

.insta-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.insta-link:hover .insta-info {
    transform: translateY(0);
}

.insta-info p {
    color: white;
    font-size: 14px;
    margin-bottom: 5px;
}

.insta-date,
.insta-likes {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.instagram-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    padding: 14px 30px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(131, 58, 180, 0.3);
    color: white;
}

.btn-instagram i {
    font-size: 20px;
}

/* ====================================================
   ADD TO CART FIXES
==================================================== */
.add-cart-form button[type="submit"] {
    background: #e8a2c0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.add-cart-form button[type="submit"]:hover {
    background: #d489ad;
}

/* ====================================================
   LOADING STATES
==================================================== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* ====================================================
   NO PRODUCTS MESSAGE
==================================================== */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.no-products p {
    color: #666;
    font-size: 16px;
}

/* ====================================================
   RESPONSIVE DESIGN
==================================================== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-display {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .category-left {
        position: relative;
        top: 0;
    }

    .best-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sale-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .hero-slider-landscape {
        min-height: 70vh;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .category-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .instagram-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .insta-post.large {
        grid-row: span 1;
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0 !important;
        height: 60px;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
    }

    .navbar-brand img {
        height: 30px !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        justify-content: center;
        text-align: center;
    }

    .hero-slider-landscape {
        min-height: 60vh;
    }

    .hero-image-container {
        height: 40vh;
    }

    .category-products {
        grid-template-columns: 1fr;
    }

    .best-sellers-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .instagram-grid-modern {
        grid-template-columns: 1fr;
    }

    .best-seller-card .product-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-add-to-cart-main,
    .best-seller-card .btn-quick-view {
        width: 100%;
        justify-content: center;
    }

    .best-seller-card .product-footer {
        align-items: stretch;
    }
}

@media (max-width: 576px) {
    .best-sellers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .best-seller-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ====================================================
   SALE COUNTDOWN TIMER BAR
==================================================== */
.sale-countdown-bar {
    background: linear-gradient(135deg, #e8a2c0 0%, #d4789f 50%, #c45687 100%);
    padding: 10px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.sale-countdown-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.countdown-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-text i {
    font-size: 1.2rem;
    animation: pulse-fire 1s infinite;
}

@keyframes pulse-fire {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.countdown-title {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-discount {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.countdown-timer {
    display: flex;
    gap: 12px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 50px;
}

.countdown-value {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Inter', monospace;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.countdown-btn {
    display: inline-block;
    background: white;
    color: #c45687;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.countdown-btn:hover {
    background: #fff9fb;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #c45687;
}

/* Responsive countdown */
@media (max-width: 768px) {
    .countdown-wrapper {
        gap: 15px;
    }

    .countdown-text {
        justify-content: center;
        width: 100%;
    }

    .countdown-timer {
        gap: 8px;
    }

    .countdown-item {
        padding: 4px 8px;
        min-width: 40px;
    }

    .countdown-value {
        font-size: 1rem;
    }

    .countdown-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .sale-countdown-bar {
        padding: 8px 0;
    }

    .countdown-wrapper {
        gap: 10px;
    }

    .countdown-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* ====================================================
   HOMEPAGE PRODUCT VARIANT SWATCHES
==================================================== */
.product-image {
    position: relative;
    /* Ensure positioning context */
}

.card-variant-swatches {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    padding: 10px 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through if hidden */
}

.best-seller-card:hover .card-variant-swatches,
.category-product-card:hover .card-variant-swatches {
    opacity: 1;
    pointer-events: auto;
}

.card-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, border-color 0.2s;
    background: white;
}

.card-swatch:hover {
    transform: scale(1.2);
    border-color: #e8a2c0;
    box-shadow: 0 4px 8px rgba(232, 162, 192, 0.4);
}

.card-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====================================================
   LONGINES-INSPIRED PRODUCT CARDS
   Clean, minimal, luxury aesthetic
==================================================== */

/* Grid Layout */
.longines-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .longines-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .longines-product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Longines Product Card */
.longines-card {
    background: #ffffff;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.longines-card:hover {
    transform: translateY(-5px);
}

/* Product Image */
.longines-card .product-image-container {
    position: relative;
    background: #f8f8f8;
    padding: 30px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.longines-card .product-image-container img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.longines-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Variant Badge */
.longines-card .variants-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Sale Badge */
.longines-card .sale-badge-minimal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e8a2c0;
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Product Info */
.longines-card .product-details {
    padding: 25px 15px 20px;
    text-align: left;
}

.longines-card .product-name {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.longines-card .product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.longines-card .product-name a:hover {
    color: #e8a2c0;
}

.longines-card .product-specs {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 400;
}

.longines-card .product-price-display {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    margin-top: 15px;
}

.longines-card .product-price-display .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
    margin-right: 8px;
}

.longines-card .product-price-display .sale-price {
    color: #e8a2c0;
    font-weight: 600;
}

/* Variant Swatches (Inline) - Longines Style */
.longines-card .inline-variants {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.longines-card .variant-thumb {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    padding: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.longines-card .variant-thumb:hover,
.longines-card .variant-thumb.active {
    border-color: #1a1a1a;
}

.longines-card .variant-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Action Buttons - Text Style */
.longines-card .card-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.longines-card .btn-text-action {
    background: none;
    border: none;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.longines-card .btn-text-action::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.longines-card .btn-text-action:hover {
    color: #1a1a1a;
}

.longines-card .btn-text-action:hover::after {
    width: 100%;
}

.longines-card .btn-text-action.primary {
    color: #e8a2c0;
}

.longines-card .btn-text-action.primary::after {
    background: #e8a2c0;
}

.longines-card .btn-text-action i {
    font-size: 12px;
}

/* Section Header - Longines Style */
.longines-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.longines-section-header h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.longines-section-header p {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.5px;
}

.longines-section-header .view-all-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.3s ease;
}

.longines-section-header .view-all-link:hover {
    color: #e8a2c0;
    border-color: #e8a2c0;
}

/* Best Sellers Section Wrapper */
.best-sellers-longines {
    padding: 80px 0;
    background: #ffffff;
}

/* Quick View Overlay for Longines Cards */
.longines-card .quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.longines-card:hover .quick-view-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.03);
    pointer-events: auto;
}

/* Products Page Update - Longines Style Grid */
.products-grid.longines-style {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .products-grid.longines-style {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .products-grid.longines-style {
        grid-template-columns: 1fr;
    }
}

/* Catalogue Page - Longines Style */
.catalogue-section .product-card.longines-style {
    background: white;
    border: none;
    box-shadow: none;
    text-align: center;
}

.catalogue-section .product-card.longines-style .product-image {
    background: #f8f8f8;
    padding: 25px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalogue-section .product-card.longines-style .product-info {
    padding: 20px 10px;
    text-align: left;
}

/* Cart Page - Variant Selector */
.cart-variant-select {
    margin-top: 8px;
}

.cart-variant-select select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.cart-variant-select select:focus {
    outline: none;
    border-color: #e8a2c0;
}

/* View All Variants Link in Cards */
.longines-card .more-variants-link {
    font-size: 11px;
    color: #888;
    text-decoration: none;
    margin-left: 5px;
}

.longines-card .more-variants-link:hover {
    color: #e8a2c0;
    text-decoration: underline;
}

/* ====================================================
   PRODUCT DETAILS PAGE - Longines Style Updates
==================================================== */

/* Updated Action Buttons */
.product-details-page .action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.product-details-page .add-to-cart-btn {
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    padding: 15px 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.product-details-page .add-to-cart-btn:hover {
    background: transparent;
    color: #1a1a1a;
}

.product-details-page .add-to-cart-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.product-details-page .buy-now-btn {
    background: #e8a2c0;
    color: white;
    border: 1px solid #e8a2c0;
    padding: 15px 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.product-details-page .buy-now-btn:hover {
    background: transparent;
    color: #e8a2c0;
}

/* Updated Variant Swatches - Product Details */
.product-details-page .variant-swatch {
    width: 70px;
    height: 70px;
    border: 2px solid #e0e0e0;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.product-details-page .variant-swatch:hover {
    border-color: #1a1a1a;
}

.product-details-page .variant-swatch.active {
    border-color: #1a1a1a;
    box-shadow: none;
}

/* Related Products - Longines Grid */
.related-products {
    padding: 80px 0;
    background: #fafafa;
}

.related-products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.related-products .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.related-products .view-all {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.3s ease;
}

.related-products .view-all:hover {
    color: #e8a2c0;
    border-color: #e8a2c0;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .related-products .products-grid {
        grid-template-columns: 1fr;
    }
}

.related-products .product-card {
    background: white;
    text-align: center;
    transition: transform 0.3s ease;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
}

.related-products .product-card .product-image {
    position: relative;
    background: #f8f8f8;
    padding: 25px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-products .product-card .product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.related-products .product-card:hover .product-image img {
    transform: scale(1.05);
}

.related-products .product-card .product-info {
    padding: 20px 15px;
    text-align: left;
}

.related-products .product-card .product-category {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.related-products .product-card .product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-products .product-card .product-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-products .product-card .product-name a:hover {
    color: #e8a2c0;
}

.related-products .product-card .product-price {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.related-products .product-card .product-price .current-price {
    font-weight: 500;
}

.related-products .product-card .product-price .original-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 13px;
}

.related-products .product-card .view-details-btn {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.related-products .product-card .view-details-btn:hover {
    border-bottom-color: #1a1a1a;
}