
/* ============================================
   PREMIUM MODERN WEBSITE STYLES
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #8B7355;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;
    
    /* Typography */
    --font-primary: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}
/* CRITICAL: Prevent horizontal scroll on all devices */
html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

* {
    max-width: 100%;
}
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   2. MODERN HEADER STYLES
   ============================================ */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.24);
    transition: all var(--transition-base);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid transparent;
	backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modern-header.scrolled {
    background-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  /*  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);*/
    border-bottom-color: rgba(0, 0, 0, 0.05);
    padding: var(--spacing-xs) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition-base);
    font-size: 17px;
}

.social-link:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* Logo */
.logo-center {
    flex: 0 0 auto;
}

.main-logo {
    height: 50px;
    width: auto;
    transition: var(--transition-base);
}

.modern-header.scrolled .main-logo {
    height: 40px;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    justify-content: flex-end;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-base);
    position: relative;
    border-radius: 50%;
}

.header-icon:hover {
    background-color: var(--light-gray);
    transform: scale(1.1);
}

.cart-icon .cart-count {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: #8e1717;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-xs);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-lg);
    font-size: 15px;
    transition: var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition-base);
}

.search-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ============================================
   3. NAVIGATION STYLES
   ============================================ */



.main-navigation.scrolled .nav-link {
    padding: 14px 20px;  /* ADD THIS - reduce link padding on scroll */
    font-size: 13px;
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-xs);
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 24px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 24px;
    right: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-menu > li:hover > .nav-link::after {
    transform: scaleX(1);
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    list-style: none;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.sub-dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all var(--transition-base);
    list-style: none;
}

.sub-dropdown:hover > .sub-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* ============================================
   4. HERO SECTION / SLIDER
   ============================================ */
.hero-section {
    margin-top: 148px;
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.carousel.bs-slider {
    height: 100%;
    width: 100%;
}

.carousel-inner {
    position: relative !important;
    height: 100%;
}

.carousel-inner > .item {
    display: none !important;
}

.carousel-inner > .item.active {
    display: block !important;
}

.carousel-inner > .item.next,
.carousel-inner > .item.prev {
    display: block !important;
}

.menu-container{
	font-size: 0; 
}

.bs-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}


/* Carousel Controls */
.carousel-control {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition-base);
}

.carousel-control:hover {
    opacity: 1;
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.left {
    left: 30px;
}

.carousel-control.right {
    right: 30px;
}

.carousel-control .fa {
    font-size: 24px;
    color: var(--primary-color);
}

/* Carousel Indicators */
/* Modern Carousel Indicators - COMPLETE */
.carousel-indicators {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    width: auto;
    z-index: 15;
}

.carousel-indicators li {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-indent: -999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background: white;
    width: 60px;
}

.carousel-indicators li:hover {
    background: rgba(255, 255, 255, 0.8);
}
/* ============================================
   5. BANNER SECTIONS
   ============================================ */
.promo-banner {
    position: relative;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

.promo-banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    color: white;
    max-width: 600px;
}

.banner-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 350;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banner-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-description {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
}

.btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 40px 16px 0;
    background: transparent !important;
    border: none;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-banner::after {
    content: '→';
    font-size: 28px;
    font-weight: 300;
    transition: transform var(--transition-base);
}

.btn-banner:hover {
    color: white !important;
    gap: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-banner:hover::after {
    transform: translateX(10px);
}
 
/* ============================================
   6. PRODUCT SECTIONS
   ============================================ */
.product {
    /*padding: var(--spacing-xxl) 0;*/
}

.product.bg-gray {
    background-color: var(--light-gray);
}

.headline {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.headline h2 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.headline h3 {
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
}


.product-card:hover .product-image {
    transform: scale(1.08);
}
/* Hover Actions */
.hover-actions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 3;
    width: calc(100% - 40px);
}

.product-card:hover .hover-actions {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
    text-decoration: none;
}

.add-cart-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}
.register-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.out-of-stock-btn {
    background: rgba(44, 41, 41, 0.95);
    color: white;
    cursor: not-allowed;
    opacity: 0.9;
}

.out-of-stock-btn:hover {
    background: rgba(17, 16, 16, 0.95);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
    padding: 4px 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Card Content */
.card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-bottom: var(--spacing-sm);
    flex: 1;
}

.product-title h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: visible !important;
    min-height: 44px; /* 2 lines minimum */
}

.product-title a {
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.product-title a:hover {
    color: var(--accent-color);
}

/* Product Price */
.product-price {
    margin-top: auto;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.price-left {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}




/* ============================================
   8. OWL CAROUSEL CUSTOMIZATION
   ============================================ */
.owl-carousel .owl-stage-outer {
    overflow: visible;
}

.owl-carousel .owl-nav {
    margin-top: var(--spacing-lg);
}

.owl-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white !important;
    box-shadow: var(--shadow-md);
    color: var(--primary-color) !important;
    font-size: 24px !important;
    transition: all var(--transition-base);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.owl-carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.owl-carousel .owl-nav .owl-prev {
    left: -25px;
}

.owl-carousel .owl-nav .owl-next {
    right: -25px;
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.owl-carousel .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--medium-gray) !important;
    margin: 0 6px;
    transition: all var(--transition-base);
}

.owl-carousel .owl-dot.active {
    width: 30px;
    border-radius: 10px;
    background: var(--primary-color) !important;
}

/* ============================================
   9. FOOTER STYLES
   ============================================ */
.footer-bottom {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-widget {
    margin-bottom: var(--spacing-lg);
}

.footer-widget .main-logo {
    height: 50px;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
}

.footer-widget h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition-base);
}

.footer-social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-widget form {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.footer-widget input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.footer-widget input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-widget input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.footer-widget button[type="submit"] {
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-base);
}

.footer-widget button[type="submit"]:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   10. MOBILE MENU STYLES
   ============================================ */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    border-radius: 50%;
    transition: var(--transition-base);
}

.mobile-menu-toggle:hover {
    background-color: var(--light-gray);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: white;
    z-index: 1999;
    transition: right var(--transition-base);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--medium-gray);
    background: var(--light-gray);
}

.mobile-nav-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.mobile-nav-close:hover {
    background: white;
    color: var(--primary-color);
}

.mobile-nav-menu {
    list-style: none;
    padding: var(--spacing-sm);
}

.mobile-nav-menu > li {
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-menu > li > a {
    display: block;
    padding: 14px 16px;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.mobile-nav-menu > li > a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.mobile-dropdown-toggle {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.mobile-dropdown-toggle:hover {
    background: var(--light-gray);
}

.mobile-dropdown,
.mobile-sub-dropdown {
    position: relative;
}

.mobile-dropdown-menu,
.mobile-sub-dropdown-menu {
    list-style: none;
    padding-left: var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.mobile-dropdown-menu.active,
.mobile-sub-dropdown-menu.active {
    max-height: 1000px;
}

.mobile-dropdown-menu li a,
.mobile-sub-dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition-fast);
}

.mobile-dropdown-menu li a:hover,
.mobile-sub-dropdown-menu li a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.mobile-nav-actions {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--medium-gray);
}

.mobile-nav-action {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.mobile-nav-action:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

/* ============================================
   11. CUSTOMER DROPDOWN
   ============================================ */
.customer-dropdown {
    position: relative;
}

.customer-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--light-gray);
    border-radius: 30px;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-base);
    font-size: 14px;
}

.customer-toggle:hover {
    background: var(--medium-gray);
}

.customer-toggle i:first-child {
    font-size: 16px;
}

.customer-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    overflow: hidden;
    z-index: 1000;
}

.customer-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-md);
}

.dropdown-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.dropdown-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.dropdown-body {
    padding: var(--spacing-xs);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--medium-gray);
    margin: var(--spacing-xs) 0;
}

.logout-item {
    color: #e74c3c;
}

.logout-item:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

/* ============================================
   12. FLOATING SIDEBAR
   ============================================ */
.floating-sidebar-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all var(--transition-base);
}

.floating-sidebar-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.floating-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    max-width: 90%;
    height: 100%;
    background: white;
    z-index: 1999;
    transition: right var(--transition-base);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.floating-sidebar.active {
    right: 0;
}

.floating-sidebar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
}

.floating-sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.floating-sidebar-close:hover {
    background: white;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.user-details p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.floating-sidebar-menu {
    padding: var(--spacing-md);
}

.sidebar-section {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-weight: 500;
}

.sidebar-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-item i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.sidebar-item.logout {
    color: #e74c3c;
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--medium-gray);
    padding-top: var(--spacing-md);
}

.sidebar-item.logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

/* ============================================
   13. SCROLL TO TOP BUTTON
   ============================================ */
.scrollup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 998;
    box-shadow: var(--shadow-md);
}

.scrollup.show {
    opacity: 1;
    visibility: visible;
}

.scrollup:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

/* Large Tablets and Small Desktops */
@media (max-width: 1199px) {
    .nav-link {
        padding: 18px 18px;
        font-size: 13px;
    }
    
    .owl-carousel .owl-nav .owl-prev {
        left: -15px;
    }
    
    .owl-carousel .owl-nav .owl-next {
        right: -15px;
    }
}

/* Tablets */
@media (max-width: 991px) {
    :root {
        --spacing-lg: 32px;
        --spacing-xl: 48px;
        --spacing-xxl: 60px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        margin-top: 82px;
        height: 70vh;
        min-height: 500px;
    }
    
    .promo-banner {
        min-height: 400px;
    }
    
    .banner-title {
        font-size: clamp(28px, 4vw, 42px);
    }
    
    .social-icons {
        display: none;
    }
    
    .product {
        padding: var(--spacing-xl) 0;
    }
    
    .owl-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 20px !important;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    :root {
        --spacing-md: 20px;
        --spacing-lg: 28px;
        --spacing-xl: 40px;
        --spacing-xxl: 48px;
    }
    
    .modern-header {
        padding: 12px 0;
    }
    
    .modern-header.scrolled {
        padding: 8px 0;
    }
    
    .main-logo {
        height: 40px;
    }
    
    .modern-header.scrolled .main-logo {
        height: 35px;
    }
    
    .header-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
	.header-icon.cart-icon{
		font-size: 14px;
	}
	.header-icon.cart-icon .cart-count{
		top: -2px;
		right: -2px;
		width: 18px;
		height: 18px;
		font-size: 11px;
	}
    
    .hero-section {
        margin-top: 66px;
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-text {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .carousel-control {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control.left {
        left: 15px;
    }
    
    .carousel-control.right {
        right: 15px;
    }
    
    .carousel-control .fa {
        font-size: 18px;
    }
    
    .promo-banner {
        min-height: unset;
        height: 0;
        padding-top: 100%; /* 1:1 aspect ratio */
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
        position: relative;
        display: block;
    }
    
    .promo-banner .container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .promo-banner .row {
        width: 100%;
        margin: 0;
    }
    
    .banner-content {
        padding: var(--spacing-sm);
        text-align: center;
    }
    
    .headline {
        margin-bottom: var(--spacing-lg);
    }
    
    .product-carousel {
        margin: 0 -10px;
    }
    
    .product-carousel .item {
        padding: 0 10px;
    }
    
    .card-content {
        padding: var(--spacing-sm);
    }
    
    .product-title h3 {
        font-size: 14px;
        min-height: 40px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .old-price {
        font-size: 14px;
    }
    
    .discount-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .owl-carousel .owl-nav button {
        display: none !important;
    }
    
    .footer-bottom {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-widget {
        margin-bottom: var(--spacing-lg);
    }
    
    .floating-sidebar-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .scrollup {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* Small Mobile Devices */
@media (max-width: 575px) {
    .header-icons {
        gap: 4px;
    }
    
    .hero-section {
        min-height: 350px;
    }
    
    .slide-text h1 {
        font-size: clamp(28px, 8vw, 42px);
    }
    
    .slide-text p {
        font-size: 14px;
    }
    
    .slide-text .btn-primary {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .promo-banner {
        padding-top: 100%; /* Keep 1:1 */
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .banner-label {
        font-size: 10px;
        padding: 6px 14px;
    }
    
    .btn-banner {
        font-size: 14px;
        padding: 12px 30px 12px 0;
    }
    
    .banner-label {
        font-size: 10px;
        padding: 6px 14px;
    }
    
    .btn-banner {
        font-size: 14px;
        padding: 12px 30px 12px 0;
    }
    
    .headline h2 {
        font-size: 24px;
    }
    
    .headline h3 {
        font-size: 12px;
    }
    
    .customer-toggle span {
        display: none;
    }
    
    .footer-widget form {
        flex-direction: column;
    }
    
    .footer-widget button[type="submit"] {
        width: 100%;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .main-logo {
        height: 35px;
    }
    
    .hero-section {
        min-height: 300px;
    }
    
    .promo-banner {
        padding-top: 100%; /* Keep 1:1 */
    }
    
    .banner-content {
        padding: var(--spacing-xs);
    }
    
    .card-image-container {
        padding-top: 125%; /* Slightly less tall on very small screens */
    }
}

/* ADD this to both header.php <style> and final.css */
@media (max-width: 768px) {
    .banner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }
    
    .banner-content {
        position: relative;
        z-index: 2;
    }
}

/* ============================================
   15. UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ============================================
   16. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease;
}

.animate-slide-up {
    animation: slideInUp 0.8s ease;
}

/* ============================================
   17. LOADING STATES
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   18. PRINT STYLES
   ============================================ */
@media print {
    .modern-header,
    .main-navigation,
    .footer-bottom,
    .scrollup,
    .floating-sidebar-toggle,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .hero-section {
        margin-top: 0;
    }
    
    body {
        background: white;
    }
}


/* ============================================
   FIXED SLIDER STYLES - SIDE-BY-SIDE SLIDES
   ============================================ */

.hero-section.bs-slider {
    margin-top: 120px;
    position: relative;
    width: 100%;
    height: 150vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background: #000;
}

.bs-slider .carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* CHANGED: Remove absolute positioning and opacity transitions */
.bs-slider .carousel-inner > .item {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
	background-repeat: no-repeat;
  background-size: cover;
}

.bs-slider .carousel-inner > .item.active {
    display: block;
}

/* Side-by-side slide transitions */
.bs-slider .carousel-inner > .item.next,
.bs-slider .carousel-inner > .item.prev {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.bs-slider .carousel-inner > .item.next {
    left: 100%;
}

.bs-slider .carousel-inner > .item.prev {
    left: -100%;
}

.bs-slider .carousel-inner > .item.next.left,
.bs-slider .carousel-inner > .item.prev.right {
    left: 0;
}

.bs-slider .carousel-inner > .item.active.left {
    left: -100%;
}

.bs-slider .carousel-inner > .item.active.right {
    left: 100%;
}

/* Slide overlay and content remain the same */
.bs-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.slide-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 75%;
	margin-top: 20%;
}

.slide-text h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-text p {
    font-size: clamp(16px, 2vw, 20px);
    color: white;
    margin-bottom: 40px;
    line-height: 1.6;
}

.slide-text .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background-color: white;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.slide-text .btn-primary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Modern Carousel Controls */
.bs-slider .carousel-control {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.bs-slider:hover .carousel-control {
    opacity: 1;
}

.bs-slider .carousel-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.bs-slider .carousel-control.left {
    left: 30px;
}

.bs-slider .carousel-control.right {
    right: 30px;
}

.bs-slider .carousel-control .fa {
    font-size: 24px;
    color: white;
}

/* Modern Carousel Indicators */
.bs-slider .carousel-indicators {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    width: auto;
    z-index: 10;
}

.bs-slider .carousel-indicators li {
    width: 50px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    margin: 0;
    text-indent: -999px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.bs-slider .carousel-indicators li.active {
    background: white;
    width: 70px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.bs-slider .carousel-indicators li:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    .hero-section.bs-slider {
        margin-top: 82px;
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-text {
        padding: 0 40px;
    }
    
    .bs-slider .carousel-control {
        width: 50px;
        height: 50px;
    }
    
    .bs-slider .carousel-control.left {
        left: 20px;
    }
    
    .bs-slider .carousel-control.right {
        right: 20px;
    }
}

@media (max-width: 767px) {
    .hero-section.bs-slider {
        margin-top: 66px;
        height: 60vh;
        min-height: 450px;
    }
    
    .slide-text {
        padding: 0 20px;
    }
    
    .bs-slider .carousel-control {
        width: 45px;
        height: 45px;
    }
    
    .bs-slider .carousel-control.left {
        left: 15px;
    }
    
    .bs-slider .carousel-control.right {
        right: 15px;
    }
    
    .bs-slider .carousel-control .fa {
        font-size: 20px;
    }
    
    .bs-slider .carousel-indicators {
        bottom: 30px;
        gap: 8px;
    }
    
    .bs-slider .carousel-indicators li {
        width: 40px;
    }
    
    .bs-slider .carousel-indicators li.active {
        width: 60px;
    }
}

@media (max-width: 575px) {
    .hero-section.bs-slider { 
        min-height: 400px;
    }
    
    .bs-slider .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .bs-slider .carousel-control .fa {
        font-size: 18px;
    }
    
    .bs-slider .carousel-indicators {
        bottom: 20px;
        gap: 6px;
    }
    
    .bs-slider .carousel-indicators li {
        width: 30px;
        height: 3px;
    }
    
    .bs-slider .carousel-indicators li.active {
        width: 50px;
    }
}
/* ============================================
   NAVIGATION FIXES - REMOVE "NAVIGATION" TEXT
   ============================================ */


/* Ensure no pseudo-elements are adding text */
.menu-container::before,
.menu-container::after,
.nav-content::before,
.nav-content::after {
    content: none !important;
}
/* Remove "Navigation" text */
.menu-container {
    font-size: 0 !important;
}

.menu-container::before,
.menu-container::after {
    content: none !important;
    display: none !important;
}

.nav-content::before,
.nav-content::after {
    content: none !important;
    display: none !important;
}

/* Reset font size for menu items */
.nav-menu {
    font-size: 16px;
}

.nav-menu li a {
    font-size: 14px;
}
/* ============================================
   NAVIGATION SCROLL BEHAVIOR - ENHANCED
   ============================================ */

.main-navigation {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.24);
    transition: all 0.3s ease;
   /* border-bottom: 1px solid #e0e0e0;*/
    padding: 0; /* Remove default padding */
	backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.main-navigation.scrolled {
    background-color: rgba(255, 255, 255, 0.24); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    top: 57px; /* Adjusted for scrolled header height */
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 20px 24px;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

/* Scrolled navigation - smaller */
.main-navigation.scrolled .nav-link {
    padding: 16px 20px;
    font-size: 13px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 24px;
    right: 24px;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navigation.scrolled .nav-link::after {
    bottom: 12px;
}

.nav-link:hover::after,
.nav-menu > li:hover > .nav-link::after {
    transform: scaleX(1);
}

/* ============================================
   RESPONSIVE SLIDER ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    .hero-section.bs-slider {
        margin-top: 82px;
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-text {
        padding: 0 40px;
    }
    
    .bs-slider .carousel-control {
        width: 50px;
        height: 50px;
    }
    
    .bs-slider .carousel-control.left {
        left: 20px;
    }
    
    .bs-slider .carousel-control.right {
        right: 20px;
    }
}

@media (max-width: 767px) {
    .hero-section.bs-slider {
        margin-top: 66px;
        height: 60vh;
        min-height: 450px;
    }
    
    .slide-text {
        padding: 0 20px;
    }
    
    .slide-text h1 {
        margin-bottom: 16px;
    }
    
    .slide-text p {
        margin-bottom: 24px;
    }
    
    .slide-text .btn-primary {
        padding: 14px 28px;
        font-size: 13px;
    }
    
    .bs-slider .carousel-control {
        width: 45px;
        height: 45px;
    }
    
    .bs-slider .carousel-control.left {
        left: 15px;
    }
    
    .bs-slider .carousel-control.right {
        right: 15px;
    }
    
    .bs-slider .carousel-control .fa {
        font-size: 20px;
    }
    
    .bs-slider .carousel-indicators {
        bottom: 30px;
        gap: 8px;
    }
    
    .bs-slider .carousel-indicators li {
        width: 40px;
    }
    
    .bs-slider .carousel-indicators li.active {
        width: 60px;
    }
}

@media (max-width: 575px) {
    .hero-section.bs-slider {
        min-height: 400px;
    }
    
    .slide-text .btn-primary {
        padding: 12px 24px;
        font-size: 12px;
        gap: 8px;
    }
    
    .bs-slider .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .bs-slider .carousel-control .fa {
        font-size: 18px;
    }
    
    .bs-slider .carousel-indicators {
        bottom: 20px;
        gap: 6px;
    }
    
    .bs-slider .carousel-indicators li {
        width: 30px;
        height: 3px;
    }
    
    .bs-slider .carousel-indicators li.active {
        width: 50px;
    }
}

@media (max-width: 400px) {
    .hero-section.bs-slider {
        min-height: 350px;
    }
}

/* ============================================
   ADDITIONAL CLEANUP
   ============================================ */

/* Remove any Bootstrap default text content */
.carousel::before,
.carousel::after,
.carousel-inner::before,
.carousel-inner::after {
    content: none !important;
}

/* Ensure smooth transitions */
.bs-slider .item {
    transition: opacity 1s ease-in-out;
}

/* Add a subtle animation to the active slide */
.bs-slider .item.active {
    animation: slideZoom 1s ease-in-out;
}

@keyframes slideZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

/* ============================================
   MOBILE PRODUCT CAROUSEL FIX
   Make products scroll horizontally on mobile
   ============================================ */

/* Mobile view fixes - Cards should scroll horizontally */
@media (max-width: 767px) {
    /* Container setup */
    .product-carousel {
        width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    /* Owl Carousel specific fixes */
    .product-carousel.owl-carousel {
        display: table-row !important;
    }
    
    .product-carousel .owl-stage-outer {
        overflow: hidden !important;
    }
    
    .product-carousel .owl-stage {
        display: flex !important;
    }
    
    /* Force single item to be fully visible */
    .product-carousel .owl-item {
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .product-carousel .owl-item.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .product-carousel .item {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Mobile Product Card - Compact Design */
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Image Container - Smaller on mobile */
    .card-image-container {
        padding-top: 120%; /* 5:6 ratio for mobile */
        margin-bottom: 12px;
    }
    
    /* Card Content - Compact */
    .card-content {
        padding: 15px;
    }
    
    /* Product Title - Smaller */
    .product-title h3 {
        font-size: 14px;
        min-height: 38px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    /* Price Section - Compact */
    .current-price {
        font-size: 18px;
    }
    
    .old-price {
        font-size: 14px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    /* Hover Actions - Adjusted for mobile */
    .hover-actions {
        bottom: 15px;
        width: calc(100% - 30px);
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    /* Hide ALL navigation */
    .owl-carousel .owl-nav,
    .owl-carousel .owl-dots {
        display: none !important;
    }
}

/* Small Mobile - Extra compact */
@media (max-width: 575px) {
    .product-carousel {
        padding: 0 10px;
    }
    
    .card-image-container {
        padding-top: 125%;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .product-title h3 {
        font-size: 13px;
        min-height: 36px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .old-price {
        font-size: 13px;
    }
}

/* Small Mobile - Single card at a time */
@media (max-width: 575px) {
    .product-carousel .item {
        padding: 0 15px;
    }
}

/* Desktop - Keep original behavior */
@media (min-width: 768px) {
    .product-carousel {
        margin: 0 -15px;
    }
    
    .product-carousel .owl-nav {
        display: block !important;
    }
}

/* ============================================
   ADDITIONAL TOUCH/SWIPE IMPROVEMENTS
   ============================================ */

/* Smooth scrolling for touch devices */
@media (max-width: 767px) {
    .owl-carousel .owl-stage {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection during swipe */
    .product-carousel .item {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Re-enable text selection for links */
    .product-carousel .item a {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    /* Improve touch target sizes */
    .product-card {
        min-height: 400px;
    }
    
    /* Better spacing for mobile dots */
    .owl-carousel .owl-dot {
        margin: 0 6px !important;
    }
}

/* ============================================
   FIX FOR OWL CAROUSEL MOBILE ISSUES
   ============================================ */

@media (max-width: 767px) {
    /* Ensure carousel items are properly sized */
    .owl-carousel .owl-item {
        float: left;
        -webkit-backface-visibility: hidden;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    /* Proper width calculation */
    .owl-carousel .owl-item.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Center single item on mobile */
    .owl-carousel.center-mobile .owl-stage {
        display: flex;
        align-items: center;
    }
}

/* ============================================
   PRODUCT CARD MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 767px) {
    /* Optimize card image for mobile */
    .card-image-container {
        padding-top: 130%; /* Slightly taller for mobile */
    }
    
    /* Better text sizing on mobile */
    .product-title h3 {
        font-size: 15px;
        min-height: 42px;
        line-height: 1.4;
    }
    
    /* Price sizing */
    .current-price {
        font-size: 20px;
    }
    
    .old-price {
        font-size: 15px;
    }
    
    /* Ensure buttons are touch-friendly */
    .btn-banner,
    .product-card a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   PREVENT HORIZONTAL PAGE SCROLL
   ============================================ */

@media (max-width: 767px) {
    /* Prevent page from scrolling horizontally */
    body {
        overflow-x: hidden;
    }
    
    /* Container should not cause horizontal scroll */
    .container {
        overflow-x: visible;
        max-width: 100%;
    }
    
    /* Product section should not overflow */
    .product {
        overflow: visible;
        width: 100%;
    }
    
    .product .container {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* ============================================
   SWIPE INDICATOR (OPTIONAL)
   ============================================ */

@media (max-width: 767px) {
    /* Add a subtle swipe hint on first load */
    .product-carousel::after {
        content: '← Swipe →';
        display: block;
        text-align: center;
        color: #999;
        font-size: 12px;
        margin-top: 10px;
        animation: fadeOut 3s forwards;
        animation-delay: 2s;
    }
    
    @keyframes fadeOut {
        to {
            opacity: 0;
            visibility: hidden;
        }
    }
    
    /* Hide swipe hint after user interacts */
    .product-carousel.owl-drag::after,
    .product-carousel.owl-grab::after {
        display: none;
    }
}


/* ============================================
   SLOWER CAROUSEL TRANSITIONS - ADD TO final.css
   ============================================ */

/* Slow down the slide transitions */
.bs-slider .carousel-inner > .item {
    transition: transform 3s ease-in-out !important;
}

/* Slow down the slide movement animations */
.bs-slider .carousel-inner > .item.next,
.bs-slider .carousel-inner > .item.prev {
    transition: transform 3s ease-in-out !important;
}

.bs-slider .carousel-inner > .item.next.left,
.bs-slider .carousel-inner > .item.prev.right {
    transition: transform 3s ease-in-out !important;
}

.bs-slider .carousel-inner > .item.active.left {
    transition: transform 3s ease-in-out !important;
}

.bs-slider .carousel-inner > .item.active.right {
    transition: transform 3s ease-in-out !important;
}

/* Optional: Slow down the zoom animation on slide entry */
@keyframes slideZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

.bs-slider .item.active {
    animation: slideZoom 3s ease-in-out;
}

/* Slow down text animations */
.slide-text h1[data-animation],
.slide-text p[data-animation],
.slide-text .btn-primary[data-animation] {
    animation-duration: 1.5s !important;
}



/* ============================================
   MODERN LOGIN PAGE STYLES
   ============================================ */

/* Page Banner */
.page-banner {
    position: relative;
  width: 100%;
  padding: 80px 0 40px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-top: 120px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner .inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner h1 {
    color: white;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Login Page Container */
.page {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 400px);
}

/* User Content Form Container */
.user-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 60px 20px;
    max-width: 65%;
    margin: 0 auto;
}

.user-content form {
    width: 100%;
}

.user-content .row {
    margin: 0;
}

.user-content .col-md-4:first-child,
.user-content .col-md-4:last-child {
    display: none;
}

.user-content .col-md-4:nth-child(2) {
    width: 100%;
    padding: 0 40px;
}

/* Form Heading */
.user-content .login-header {
    text-align: center;
    margin-bottom: 40px;
}

.user-content .login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.user-content .login-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Form Groups */
.user-content .form-group {
    margin-bottom: 25px;
}

.user-content .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Fields */
.user-content .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--light-gray);
    transition: all var(--transition-base);
}

.user-content .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.user-content .form-control::placeholder {
    color: var(--text-light);
}

/* Submit Button */
.user-content .btn-success {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-content .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-content .btn-success:active {
    transform: translateY(0);
}

/* Links */
.user-content a {
    display: block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: 12px;
}

.user-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.user-content a:first-of-type {
    margin-top: 20px;
}

/* Error and Success Messages */
.user-content .error,
.user-content .success {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

.user-content .error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.user-content .success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* Divider */
.user-content .form-group:last-of-type {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--medium-gray);
}

/* Additional Link Styling */
.user-content a[href*="registration"] {
    text-align: center;
    padding: 12px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    margin-top: 15px;
    display: block;
    color: var(--text-primary);
}

.user-content a[href*="registration"]:hover {
    background: var(--medium-gray);
    text-decoration: none;
}

/* Icon Enhancement (Optional - if you want to add icons) */
.user-content .form-group {
    position: relative;
}

.user-content .form-group input[type="email"]::before,
.user-content .form-group input[type="password"]::before {
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .page-banner {
        margin-top: 82px;
        padding: 80px 0 60px;
    }
}

@media (max-width: 767px) {
    .page-banner {
        margin-top: 66px;
        padding: 60px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .page {
        padding: 40px 0;
    }
    
    .user-content {
        padding: 40px 15px;
        border-radius: 12px;
    }
    
    .user-content .col-md-4:nth-child(2) {
        padding: 0 20px;
    }
    
    .user-content::before {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .user-content {
        padding: 30px 10px;
    }
    
    .user-content .col-md-4:nth-child(2) {
        padding: 0 15px;
    }
    
    .user-content .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .user-content .btn-success {
        padding: 14px 25px;
        font-size: 15px;
    }
}

/* ============================================
   LOADING STATE (Optional Enhancement)
   ============================================ */

.user-content .btn-success.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.user-content .btn-success.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FOCUS STATES FOR ACCESSIBILITY
   ============================================ */

.user-content .form-control:focus,
.user-content .btn-success:focus,
.user-content a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .page-banner,
    .user-content a {
        display: none;
    }
    
    .page {
        background: white;
    }
}/* ============================================
   MODERN LOGIN PAGE STYLES
   ============================================ */

/* Page Banner */
.page-banner {
    position: relative;
    width: 100%;
    padding: 100px 0 80px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin-top: 120px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner .inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner h1 {
    color: white;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Login Page Container */
.page {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 400px);
}

/* User Content Form Container */
.user-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.user-content form {
    width: 100%;
}

.user-content .row {
    margin: 0;
}

.user-content .col-md-4:first-child,
.user-content .col-md-4:last-child {
    display: none;
}

.user-content .col-md-4:nth-child(2) {
    width: 100%;
    padding: 0 40px;
}

/* Form Heading */
.user-content .login-header {
    text-align: center;
    margin-bottom: 40px;
}

.user-content .login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.user-content .login-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Form Groups */
.user-content .form-group {
    margin-bottom: 25px;
}

.user-content .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Fields */
.user-content .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--light-gray);
    transition: all var(--transition-base);
}

.user-content .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.user-content .form-control::placeholder {
    color: var(--text-light);
}

/* Submit Button */
.user-content .btn-success {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-content .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-content .btn-success:active {
    transform: translateY(0);
}

/* Links */
.user-content a {
    display: block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: 12px;
}

.user-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.user-content a:first-of-type {
    margin-top: 20px;
}

/* Error and Success Messages */
.user-content .error,
.user-content .success {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

.user-content .error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.user-content .success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* Divider */
.user-content .form-group:last-of-type {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--medium-gray);
}

/* Additional Link Styling */
.user-content a[href*="registration"] {
    text-align: center;
    padding: 12px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    margin-top: 15px;
    display: block;
    color: var(--text-primary);
}

.user-content a[href*="registration"]:hover {
    background: var(--medium-gray);
    text-decoration: none;
}

/* Icon Enhancement (Optional - if you want to add icons) */
.user-content .form-group {
    position: relative;
}

.user-content .form-group input[type="email"]::before,
.user-content .form-group input[type="password"]::before {
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .page-banner {
        margin-top: 82px;
        padding: 80px 0 60px;
    }
}

@media (max-width: 767px) {
    .page-banner {
        margin-top: 66px;
        padding: 60px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .page {
        padding: 40px 0;
    }
    
    .user-content {
        padding: 40px 15px;
        border-radius: 12px;
    }
    
    .user-content .col-md-4:nth-child(2) {
        padding: 0 20px;
    }
    
    .user-content::before {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .user-content {
        padding: 30px 10px;
    }
    
    .user-content .col-md-4:nth-child(2) {
        padding: 0 15px;
    }
    
    .user-content .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .user-content .btn-success {
        padding: 14px 25px;
        font-size: 15px;
    }
}

/* ============================================
   LOADING STATE (Optional Enhancement)
   ============================================ */

.user-content .btn-success.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.user-content .btn-success.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FOCUS STATES FOR ACCESSIBILITY
   ============================================ */

.user-content .form-control:focus,
.user-content .btn-success:focus,
.user-content a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .page-banner,
    .user-content a {
        display: none;
    }
    
    .page {
        background: white;
    }
}




/* ============================================
   MODERN REGISTRATION PAGE STYLES
   ============================================ */

/* Registration Page Container - Wider than login */
.page:has(form[action=""]:has([name="form1"]):has([name="cust_name"])) {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 400px);
}

/* Registration Form Container - Larger */
.page:has(form[action=""]:has([name="cust_name"])) .user-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Registration Header */
.page:has(form[action=""]:has([name="cust_name"])) .user-content::before {
    content: 'Create Your Account';
    display: block;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page:has(form[action=""]:has([name="cust_name"])) .user-content::after {
    content: 'Join us today and start shopping';
    display: block;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
}

/* Hide empty columns in registration */
.page:has(form[action=""]:has([name="cust_name"])) .col-md-2 {
    display: none;
}

.page:has(form[action=""]:has([name="cust_name"])) .col-md-8 {
    width: 100%;
    padding: 0;
}

/* Form Layout - Two Column Grid */
.page:has(form[action=""]:has([name="cust_name"])) .col-md-8 {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

/* Form Fields in Registration */
.page:has(form[action=""]:has([name="cust_name"])) .form-group {
    margin-bottom: 25px;
    width: 100%;
}

.page:has(form[action=""]:has([name="cust_name"])) .col-md-6.form-group {
    width: calc(50% - 10px);
}

.page:has(form[action=""]:has([name="cust_name"])) .col-md-12.form-group {
    width: 100%;
}

/* Labels */
.page:has(form[action=""]:has([name="cust_name"])) .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Fields */
.page:has(form[action=""]:has([name="cust_name"])) .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--light-gray);
    transition: all var(--transition-base);
}

.page:has(form[action=""]:has([name="cust_name"])) .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Select2 Dropdown */
.page:has(form[action=""]:has([name="cust_name"])) .select2-container {
    width: 100% !important;
}

.page:has(form[action=""]:has([name="cust_name"])) .select2-container .select2-selection--single {
    height: 50px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    background: var(--light-gray);
    transition: all var(--transition-base);
}

.page:has(form[action=""]:has([name="cust_name"])) .select2-container .select2-selection__rendered {
    line-height: 46px;
    padding-left: 18px;
    color: var(--text-primary);
}

.page:has(form[action=""]:has([name="cust_name"])) .select2-container .select2-selection__arrow {
    height: 48px;
    right: 10px;
}

.page:has(form[action=""]:has([name="cust_name"])) .select2-container--open .select2-selection--single {
    border-color: var(--primary-color);
    background: white;
}

/* Textarea */
.page:has(form[action=""]:has([name="cust_name"])) textarea.form-control {
    min-height: 70px;
    resize: vertical;
    padding: 14px 18px;
}

/* Password Fields Visual Distinction */
.page:has(form[action=""]:has([name="cust_name"])) input[type="password"] {
    font-family: Verdana, sans-serif;
    letter-spacing: 2px;
}

/* Submit Button */
.page:has(form[action=""]:has([name="cust_name"])) .btn-danger {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    margin-top: 10px;
}

.page:has(form[action=""]:has([name="cust_name"])) .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.page:has(form[action=""]:has([name="cust_name"])) .btn-danger:active {
    transform: translateY(0);
}

/* Submit Button Container */
.page:has(form[action=""]:has([name="cust_name"])) .form-group:has(.btn-danger) {
    width: 100%;
    margin-top: 20px;
    padding-top: 25px;
    border-top: 2px solid var(--light-gray);
}

.page:has(form[action=""]:has([name="cust_name"])) .form-group:has(.btn-danger) label {
    display: none;
}

/* Error and Success Messages */
.page:has(form[action=""]:has([name="cust_name"])) .error,
.page:has(form[action=""]:has([name="cust_name"])) .success {
    padding: 18px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    width: 100%;
}

.page:has(form[action=""]:has([name="cust_name"])) .error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.page:has(form[action=""]:has([name="cust_name"])) .success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #059669;
}

/* Field Icons (Optional Enhancement) */
.page:has(form[action=""]:has([name="cust_name"])) .form-group {
    position: relative;
}

/* Required Field Indicator */
.page:has(form[action=""]:has([name="cust_name"])) label:has(+ input:required)::after,
.page:has(form[action=""]:has([name="cust_name"])) label:has(+ textarea:required)::after,
.page:has(form[action=""]:has([name="cust_name"])) label:has(+ select:required)::after {
    content: ' *';
    color: #dc3545;
    font-weight: 700;
}

/* Form Section Divider */
.page:has(form[action=""]:has([name="cust_name"])) .form-group:nth-child(7) {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 2px solid var(--light-gray);
}

.page:has(form[action=""]:has([name="cust_name"])) .form-group:nth-child(7)::before {
    content: 'Password Information';
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .page:has(form[action=""]:has([name="cust_name"])) .user-content {
        padding: 50px 30px;
        max-width: 750px;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .user-content::before {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .page:has(form[action=""]:has([name="cust_name"])) {
        padding: 40px 0;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .user-content {
        padding: 40px 25px;
        border-radius: 12px;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .user-content::before {
        font-size: 24px;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .user-content::after {
        font-size: 14px;
    }
    
    /* Stack fields on mobile */
    .page:has(form[action=""]:has([name="cust_name"])) .col-md-6.form-group {
        width: 100%;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .col-md-8 {
        gap: 0;
    }
}

@media (max-width: 575px) {
    .page:has(form[action=""]:has([name="cust_name"])) .user-content {
        padding: 30px 20px;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .user-content::before {
        font-size: 22px;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .btn-danger {
        padding: 16px 30px;
        font-size: 15px;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .select2-container .select2-selection--single {
        height: 46px;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .select2-container .select2-selection__rendered {
        line-height: 42px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.page:has(form[action=""]:has([name="cust_name"])) .btn-danger.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.page:has(form[action=""]:has([name="cust_name"])) .btn-danger.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR (OPTIONAL)
   ============================================ */

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all var(--transition-base);
}

.password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

/* ============================================
   FOCUS STATES FOR ACCESSIBILITY
   ============================================ */

.page:has(form[action=""]:has([name="cust_name"])) .form-control:focus,
.page:has(form[action=""]:has([name="cust_name"])) .btn-danger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .page:has(form[action=""]:has([name="cust_name"])) {
        background: white;
    }
    
    .page:has(form[action=""]:has([name="cust_name"])) .btn-danger {
        display: none;
    }
}




/* ============================================
   MODERN PRODUCT PAGE STYLES
   ============================================ */

/* Remove/Replace these in your final.css */
.breadcrumb-container {
    display: none !important;
}

/* Modern Product Page Container */
.modern-product-page {
    padding: 140px 0 80px;
    background: #fff;
}

/* Simple Breadcrumb */
.product-breadcrumb {
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.product-breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-breadcrumb a:hover {
    color: #000;
}

.product-breadcrumb span {
    margin: 0 10px;
    color: #999;
}

.product-breadcrumb span:last-child {
    color: #999;
    font-weight: 400;
}

/* Product Main Grid */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* ============================================
   IMAGE GALLERY - LEFT SIDE
   ============================================ */
.product-gallery {
    position: sticky;
    top: 5px;
    height: fit-content;
}

/* Main Image */
.gallery-main {
    position: relative;
    width: 100%;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-main:hover .image-zoom {
    opacity: 1;
}

.image-zoom:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Thumbnail Grid */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumb-item {
    aspect-ratio: 3/4;
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #000;
}

/* ============================================
   PRODUCT INFO - RIGHT SIDE
   ============================================ */
.product-info-section {
    padding: 0;
}

/* Product Title */
.product-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #000;
}

/* Product Meta Info */
.product-meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.product-sku {
    color: #666;
    font-weight: 500;
}

.separator {
    color: #ddd;
}

.stock-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: #059669;
}

.stock-badge.out-stock {
    background: #fee2e2;
    color: #dc2626;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.product-rating .far {
    color: #d1d5db;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

.no-rating {
    color: #999;
    font-style: italic;
}

/* Price Section */
.product-price-section {
    margin-bottom: 30px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.p_current_price {
    font-size: 36px;
    font-weight: 700;
    color: #000;
}

.p_old_price {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
}

.p_discount-badge {
    background: #dc2626;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Short Description */
.product-short-desc {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.product-short-desc p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   PRODUCT FORM
   ============================================ */
.modern-product-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: #dc2626;
}

.size-guide-link {
    color: #666;
    font-size: 13px;
    text-decoration: underline;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.size-guide-link:hover {
    color: #000;
}

/* Size Selector - Horizontal */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    margin: 0;
    cursor: pointer;
}

.size-option input {
    display: none;
}

.size-option span {
    display: block;
    min-width: 60px;
    padding: 12px 20px;
    text-align: center;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.size-option:hover span {
    border-color: #999;
}

.size-option.active span,
.size-option input:checked + span {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Color Select */
.modern-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.modern-select:focus {
    outline: none;
    border-color: #000;
}

/* Quantity and Cart Row */
.quantity-cart-row {
    display: flex;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 45px;
    height: 50px;
    border: none;
    background: #000;
  color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #f3f4f6;
    color: #000;
}

.qty-input {
    width: 70px;
    height: 50px;
    border: none;
    border-left: 2px solid #e5e5e5;
    border-right: 2px solid #e5e5e5;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.qty-input:focus {
    outline: none;
}

/* Add to Cart Button */
.btn-add-to-cart {
    flex: 1;
    height: 54px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-add-to-cart.disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
}

.btn-add-to-cart.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Wishlist Button */
.btn-wishlist {
    width: 100%;
    height: 54px;
    background: #fff;
    color: #000;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-wishlist:hover {
    border-color: #000;
    background: #f9fafb;
}

.btn-wishlist i {
    font-size: 18px;
}

/* ============================================
   PRODUCT TABS
   ============================================ */
.product-tabs-section {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid #e5e5e5;
}

.tabs-header {
    display: flex;
    gap: 40px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 15px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #000;
}

.tab-btn.active {
    color: #000;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.tabs-content {
    max-width: 900px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.tab-pane ul,
.tab-pane ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.tab-pane li {
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .modern-product-page {
        padding: 100px 0 60px;
    }

    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 28px;
    }

    .current-price {
        font-size: 32px;
    }

    .tabs-header {
        gap: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .modern-product-page {
        padding: 80px 0 40px;
    }

    .product-breadcrumb {
        font-size: 13px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-meta-info {
        font-size: 13px;
        gap: 10px;
    }

    .current-price {
        font-size: 28px;
    }

    .old-price {
        font-size: 20px;
    }

    .quantity-cart-row {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }

    .qty-input {
        flex: 1;
    }

    .tabs-header {
        gap: 15px;
        padding-bottom: 10px;
    }

    .tab-btn {
        font-size: 14px;
        padding: 12px 0;
    }
}

@media (max-width: 575px) {
    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }

    .old-price {
        font-size: 18px;
    }

    .size-selector {
        gap: 8px;
    }

    .size-option span {
        min-width: 50px;
        padding: 10px 15px;
        font-size: 13px;
    }

    .btn-add-to-cart {
        font-size: 14px;
        height: 50px;
    }

    .btn-wishlist {
        height: 50px;
        font-size: 14px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .modern-product-page {
        padding: 0;
    }

    .product-breadcrumb,
    .btn-add-to-cart,
    .btn-wishlist,
    .image-zoom {
        display: none;
    }

    .product-main-grid {
        gap: 30px;
    }
}


/* ===========================
   SIDE CART STYLES
   =========================== */

/* Cart Toggle Button in Header */
.header-icon.cart-icon {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

.header-icon.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* ===========================
   SIDE CART STYLES - CRITICAL FIX
   =========================== */

/* Cart Toggle Button in Header */
.header-icon.cart-icon {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font-size: 20px;
}

.header-icon.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Cart Overlay - CRITICAL: No inline styles can override this */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.cart-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Side Cart Container - CRITICAL FIX */
.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 90%;
    height: 100vh;
    background: white;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-cart.active {
    transform: translateX(0) !important;
}

/* Cart Header */
.cart-header {
    padding: 25px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'League Spartan', sans-serif;
}

.cart-item-count {
    background: #000;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.cart-close {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.cart-close:hover {
    background: #000;
    color: white;
    transform: rotate(90deg);
}

/* Cart Items Container */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.empty-cart-icon {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: 'League Spartan', sans-serif;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

.empty-cart .btn {
    padding: 12px 30px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.empty-cart .btn:hover {
    background: #333 !important;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    font-family: 'League Spartan', sans-serif;
}

.item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 12px;
}

.item-remove:hover {
    background: #dc3545;
    color: white;
}

.item-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.item-meta-row {
    display: flex;
    gap: 15px;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    font-family: 'League Spartan', sans-serif;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.qty-btn:hover {
    border-color: #000;
    background: #000;
    color: white;
}

.qty-input {
    width: 50px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
    border-color: #000;
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
    font-family: 'League Spartan', sans-serif;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-actions .btn {
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    font-family: 'League Spartan', sans-serif;
}

.cart-actions .btn-primary {
    background: #000;
    color: white;
}

.cart-actions .btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cart-actions .btn-secondary {
    background: white;
    color: #000;
    border: 2px solid #000;
}

.cart-actions .btn-secondary:hover {
    background: #f5f5f5;
}

/* Continue Shopping Link */
.continue-shopping {
    text-align: center;
    margin-top: 15px;
}

.continue-shopping a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.continue-shopping a:hover {
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .side-cart {
        width: 100%;
        max-width: 100%;
    }
    
    .cart-header {
        padding: 20px 15px;
    }
    
    .cart-header h2 {
        font-size: 18px;
    }
    
    .cart-items {
        padding: 15px;
    }
    
    .item-image {
        width: 80px;
        height: 100px;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .cart-footer {
        padding: 15px;
    }
}

/* CRITICAL Z-INDEX FIX FOR CART */
.modern-header {
    z-index: 100 !important;
}

.main-navigation {
    z-index: 99 !important;
}

.cart-overlay {
    z-index: 9998 !important;
}

.side-cart {
    z-index: 9999 !important;
}

/* Ensure cart button is clickable */
.header-icon.cart-icon {
    position: relative;
    z-index: 1;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* ============================================
   MODERN CHECKOUT PAGE STYLES
   Save as: assets/css/checkout-modern.css
   ============================================ */

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-base: 0.3s ease;
}

.checkout-container {
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    padding: 0 20px;
}

.checkout-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.required {
    color: var(--danger-color);
}


/* ============================================
   MODERN CATEGORY PAGE STYLES - COMPLETE
   ============================================ */

/* Page Banner - Dark Background */
.page-banner {
    position: relative;
    width: 100%;
    height: 240px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.page-banner .inner {
    position: relative;
    z-index: 2;
    text-align: center;
	width: 100%;
}

.page-banner h1 {
    font-family: 'League Spartan', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Main Container */
.page {
    padding: 60px 0 80px;
    background: #f5f5f5;
}

.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Categories Sidebar */
.sidebar-category {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.sidebar-category h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    padding: 20px 25px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    background: #fff;
}

.category-list li a:hover,
.category-list li a.active {
    background: #f8f9fa;
    color: #e94560;
    padding-left: 30px;
}

.category-list li a i {
    font-size: 12px;
    opacity: 0.5;
}

/* Category Header Section */
.category-header-section {
    background: #ffffff0a;
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
   /* border-bottom: 2px solid #f0f0f0;*/
	width:100%;
}

.category-breadcrumb {
    display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
  margin-bottom: 15px;
  margin-left: 47%;
}

.category-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.category-breadcrumb a:hover {
    color: #e94560;
}

.category-header-section h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 3.7rem;
    font-weight: 600;
    color: #fdfdfd;
    margin: 0;
}

/* Product Toolbar */
.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 0 0 20px 0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.product-count {
    font-size: 14px;
    color: #666;
}

.product-count strong {
    color: #222;
    font-weight: 600;
}

.toolbar-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.view-toggle button {
    background: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    border-right: 1px solid #e0e0e0;
}

.view-toggle button:last-child {
    border-right: none;
}

.view-toggle button.active {
    background: #222;
    color: #fff;
}

.view-toggle button:hover:not(.active) {
    background: #f8f9fa;
}

/* Product Grid */
.product-cat {
    background: transparent;
}

.product-cat .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
}

/* Product Card - Matching Current Design */
.item-product-cat {
    padding: 0;
}

.item-product-cat .inner {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.item-product-cat .inner:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Product Image Container */
.item-product-cat .thumb {
    position: relative;
    overflow: hidden;
    padding-top: 125%;
    background: #fafafa;
}

.item-product-cat .photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.item-product-cat .inner:hover .photo {
    transform: scale(1.05);
}

/* Out of Stock Badge */
.out-of-stock-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff5757;
    color: #fff;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e94560;
    color: #fff;
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* Quick View Overlay */
.quick-view-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 4;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.item-product-cat .inner:hover .quick-view-overlay {
    transform: translateY(0);
}

.quick-view-btn {
    flex: 1;
    background: #fff;
    color: #222;
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-view-btn:hover {
    background: #e94560;
    color: #fff;
}

/* Product Text Content */
.item-product-cat .text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.item-product-cat .text h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 44px;
}

.item-product-cat .text h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-product-cat .text h3 a:hover {
    color: #e94560;
}

/* Price */
.item-product-cat .text h4 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-product-cat .text h4 del {
    font-size: 1rem;
    font-weight: 400;
    color: #999;
}

/* Rating */
.rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 15px;
    font-size: 13px;
}

.rating i {
    color: #ffc107;
}

.rating i.fa-star-o {
    color: #ddd;
}

.rating-count {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

/* Read More Button */
.item-product-cat .text p {
    margin-top: auto;
    margin-bottom: 0;
}

.item-product-cat .text p a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #808080;
    color: #fff;
    padding: 12px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.item-product-cat .text p a:hover {
    background: #666;
}

.item-product-cat .text p a i {
    font-size: 14px;
}

/* Out of Stock Overlay (Full Cover) */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Empty State */
.empty-products {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    grid-column: 1 / -1;
}

.empty-products i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-products h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.empty-products p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

.empty-products a {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 12px 30px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.empty-products a:hover {
    background: #d63851;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-cat .row {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .page-banner {
        height: 220px;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .product-cat .row {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .sidebar-category {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 180px;
    }
    
    .page-banner h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .page {
        padding: 40px 0 60px;
    }
    
    .category-header-section {
        padding: 20px;
    }
    
    .category-header-section h3 {
        font-size: 1.5rem;
    }
    
    .product-toolbar {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 15px;
    }
    
    .toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .product-cat .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .item-product-cat .text {
        padding: 15px;
    }
    
    .item-product-cat .text h3 {
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .item-product-cat .text h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .page-banner {
        height: 150px;
    }
    
    .page-banner h1 {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }
    
    .product-cat .row {
        gap: 12px;
    }
    
    .view-toggle {
        display: none;
    }
    
    .category-list li a {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .sidebar-category h3 {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
}

/* Loading State */
.product-loading {
    background: #f0f0f0;
    border-radius: 0;
    height: 400px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Filter Button & Sidebar Styles */
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-toggle-btn:hover {
    background: #f8f9fa;
    border-color: #222;
}

.filter-toggle-btn i {
    font-size: 16px;
}

/* Filter Sidebar Overlay */
.filter-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.filter-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Filter Sidebar */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.filter-sidebar.active {
    left: 0;
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.filter-sidebar-header h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.filter-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.filter-close-btn:hover {
    color: #222;
}

.filter-sidebar-content {
    padding: 0;
}

.filter-section {
    border-bottom: 1px solid #e0e0e0;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-section-header:hover {
    background: #f8f9fa;
}

.filter-section-header h4 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section-header i {
    font-size: 12px;
    transition: transform 0.3s;
}

.filter-section.active .filter-section-header i {
    transform: rotate(180deg);
}

.filter-section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-section.active .filter-section-body {
    max-height: 500px;
}

.filter-options {
    padding: 15px 25px 20px;
}

/* Price Range Filter */
.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input-group {
    position: relative;
}

.price-input-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 500;
}

.price-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

/* Category Filter */
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-item {
    margin-bottom: 8px;
}

.category-filter-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s;
}

.category-filter-item label:hover {
    color: #222;
}

.category-filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #222;
}

.category-filter-item .category-count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

/* Subcategory nested style */
.subcategory-list {
    list-style: none;
    padding-left: 30px;
    margin-top: 5px;
}

/* Filter Footer */
.filter-sidebar-footer {
    position: sticky;
    bottom: 0;
    padding: 20px 25px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-apply-filter,
.btn-clear-filter {
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-apply-filter {
    background: #222;
    color: #fff;
}

.btn-apply-filter:hover {
    background: #000;
}

.btn-clear-filter {
    background: #fff;
    color: #222;
    border: 1px solid #222;
}

.btn-clear-filter:hover {
    background: #f8f9fa;
}

/* Real-time Search Bar */
.product-search-container {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.product-search-wrapper {
    position: relative;
    max-width: 600px;
}

.product-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s;
}

.product-search-input:focus {
    outline: none;
    border-color: #222;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: none;
    font-size: 18px;
}

.search-clear-btn.active {
    display: block;
}

/* Active Filters Display */
.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 0;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
}

.active-filter-tag button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    padding: 0;
    margin-left: 5px;
}

.active-filter-tag button:hover {
    color: #222;
}

/* Sort & View Options */
.product-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.sort-dropdown {
    position: relative;
}

.sort-select {
    padding: 10px 40px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    appearance: none;
}

.sort-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Loading State */
.products-loading {
    text-align: center;
    padding: 60px 20px;
}

.products-loading i {
    font-size: 48px;
    color: #ddd;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-results i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .product-search-wrapper {
        max-width: 100%;
    }
}

/* ============================================
   MOBILE PRODUCT CARD FIXES - CRITICAL
   Add these rules to your final.css file
   ============================================ */

/* Disable ALL animations on mobile that could cause enlargement */
@media (max-width: 767px) {
    
    
	 /* CRITICAL: Enable transitions for carousel mechanism */
    .product-carousel.owl-carousel .owl-stage {
        transition: transform 0.3s ease !important;
        -webkit-transition: -webkit-transform 0.3s ease !important;
    }
    
    .product-carousel.owl-carousel .owl-item {
        transition: transform 0.3s ease !important;
        -webkit-transition: -webkit-transform 0.3s ease !important;
    }
    
    /* Enable touch events */
    .product-carousel.owl-carousel {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    /* Enable touch dragging */
    .product-carousel.owl-carousel.owl-drag .owl-item {
        -ms-touch-action: pan-y;
        touch-action: pan-y;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .product-carousel.owl-carousel.owl-grab {
        cursor: grab;
    }
    
    /* Keep product cards stable (no animations) */
   
    
    /* Prevent text selection during swipe */
    .product-carousel {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    /* Remove hover effects on mobile that could trigger enlargement 
    .product-card:hover,
    .product-card:hover .product-image {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }*/
    
    
    
    /* Remove the bounceIn and slideInUp animations on mobile 
    @keyframes bounceIn {
        0%, 100% { 
            transform: scale(1); 
            opacity: 1; 
        }
    }
    
    @keyframes slideInUp {
        0%, 100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeInUp {
        0%, 100% {
            opacity: 1;
            transform: translateY(0);
        }
    }*/
    
    /* ============================================
       CENTER PRODUCT CARDS ON MOBILE
       ============================================ */
    
    /* Container centering */
    .product {
        padding-left: 0;
        padding-right: 0;
    }
    
    .product .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Carousel wrapper centering */
    .product-carousel {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    
    /* Owl Carousel stage centering */
    .product-carousel.owl-carousel .owl-stage-outer {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .product-carousel.owl-carousel .owl-stage {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    
    /* Individual item centering */
    .product-carousel .owl-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 15px;
    }
    
    .product-carousel .owl-item.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .product-carousel .item {
        width: 100% !important;
        max-width: 400px; /* Maximum card width on mobile */
        margin: 0 auto;
        padding: 0 !important;
    }
    
    /* Product card fixed sizing */
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    /* Image container - fixed aspect ratio */
    .card-image-container {
        position: relative;
        width: 100%;
        padding-top: 125%; /* 4:5 aspect ratio */
        overflow: hidden;
        background: #f8f8f8;
    }
    
    .product-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Content area */
    .card-content {
        padding: 15px;
        background: #fff;
    }
    
    /* Remove any max-width that might be centering issues */
    .product-carousel .owl-item > div {
        width: 100%;
    }
    
   
    
    /* ============================================
       PREVENT LAYOUT SHIFTS
       ============================================ */
    
    /* Lock down all dimensions to prevent sudden changes */
    .product-carousel .item * {
        box-sizing: border-box;
    }
    
    
    
}

/* Extra small mobile devices (under 375px) */
@media (max-width: 374px) {
    .product-carousel .item {
        max-width: 320px;
    }
    
    .card-image-container {
        padding-top: 130%; /* Slightly taller on very small screens */
    }
}

/* Small mobile devices (375px - 575px) */
@media (min-width: 375px) and (max-width: 575px) {
    .product-carousel .item {
        max-width: 360px;
    }
}

/* Larger mobile devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .product-carousel .item {
        max-width: 380px;
    }
}

/* ============================================
   ENSURE OWL CAROUSEL WORKS PROPERLY ON MOBILE
   ============================================ */

@media (max-width: 767px) {
    /* Make sure carousel is initialized with correct settings */
    .product-carousel.owl-loaded {
        display: block !important;
    }
    
    .product-carousel .owl-stage {
        display: flex !important;
        align-items: stretch !important;
    }
    
    /* Only show active item */
    .product-carousel .owl-item:not(.active) {
        opacity: 0 !important;
        visibility: hidden !important;
        position: absolute !important;
    }
    
    .product-carousel .owl-item.active {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
}

/* ============================================
   DEBUG - Remove after testing
   ============================================ */

/* Uncomment these to see what's happening */
/*
@media (max-width: 767px) {
    .product-carousel .item {
        border: 2px solid red !important;
    }
    
    .product-card {
        border: 2px solid blue !important;
    }
    
    .card-image-container {
        border: 2px solid green !important;
    }
}
*/

    
    /* ============================================
       HEADLINE SPACING
       ============================================ */
    
    .headline {
        margin-bottom: 30px;
        padding: 0 15px;
        text-align: center;
    }
    
    .headline h2 {
        font-size: 24px;
        margin-bottom: 8px;
        text-transform: uppercase;
    }
    
    .headline h3 {
        font-size: 12px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #666;
    }
    
    /* ============================================
       PREVENT OVERFLOW
       ============================================ */
    
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    


/* ============================================
   SPECIFIC DEVICE SIZES
   ============================================ */

/* Small phones (320px - 374px) */
@media (max-width: 374px) {
    .product-carousel .item {
        max-width: 310px !important;
    }
    
    .card-content {
        padding: 14px;
    }
    
    .current-price {
        font-size: 18px;
    }
}

/* Standard phones (375px - 413px) */
@media (min-width: 375px) and (max-width: 413px) {
    .product-carousel .item {
        max-width: 360px !important;
    }
}

/* Large phones (414px - 575px) */
@media (min-width: 414px) and (max-width: 575px) {
    .product-carousel .item {
        max-width: 390px !important;
    }
}

/* Phablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .product-carousel .item {
        max-width: 420px !important;
    }
    
    .card-content {
        padding: 18px;
    }
}

/* ============================================
   TOUCH OPTIMIZATION
   ============================================ */

@media (max-width: 767px) {
    
    /* Smooth scrolling */
    .product-carousel {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Touch feedback */
    .product-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
    }
    
    .action-btn:active {
        background: #000;
        color: #fff;
        transform: scale(0.98);
        transition: all 0.1s ease !important;
    }
    
    /* Prevent text selection during swipe */
    .product-carousel * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Re-enable for links and buttons */
    .action-btn,
    .product-title a {
        -webkit-user-select: auto;
        -moz-user-select: auto;
        -ms-user-select: auto;
        user-select: auto;
    }
}

/* ============================================
   DEBUG MODE (Uncomment to troubleshoot)
   ============================================ */

/*
@media (max-width: 767px) {
    .product-carousel {
        border: 3px solid red !important;
    }
    
    .product-carousel .owl-item {
        border: 2px solid blue !important;
    }
    
    .product-carousel .item {
        border: 2px solid green !important;
    }
    
    .product-card {
        border: 2px solid orange !important;
    }
}
*/
 /* Hide dots on mobile */
    .product-carousel .owl-dots {
        display: none !important;
    }
	
	/* ============================================
   MOBILE CAROUSEL - ENABLE SWIPING FIX
   ============================================ */

@media (max-width: 767px) {
    
    /* Hide dots */
    .product-carousel .owl-dots {
        display: none !important;
    }
    
    /* CRITICAL: Re-enable carousel transitions for swiping */
    .product-carousel.owl-carousel .owl-stage {
        transition: transform 0.3s ease !important;
        -webkit-transition: -webkit-transform 0.3s ease !important;
    }
    
    .product-carousel.owl-carousel .owl-item {
        transition: transform 0.3s ease !important;
        -webkit-transition: -webkit-transform 0.3s ease !important;
    }
    /* Enable touch events */
    .product-carousel.owl-carousel {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    /* Enable touch dragging */
    .product-carousel.owl-carousel.owl-drag .owl-item {
        -ms-touch-action: pan-y;
        touch-action: pan-y;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .product-carousel.owl-carousel.owl-grab {
        cursor: grab;
    }
    
    
    /* Prevent text selection during swipe */
    .product-carousel {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Enable smooth scrolling */
    .product-carousel.owl-carousel {
        -webkit-overflow-scrolling: touch;
    }
}

 /* CRITICAL: Ensure owl-stage can transform for sliding */
    .product-carousel.owl-carousel .owl-stage {
        transform: translate3d(0px, 0px, 0px) !important;
        transition: transform 0.4s ease !important;
        -webkit-transition: -webkit-transform 0.4s ease !important;
        will-change: transform;
    }
    
    /* Ensure owl-items stay in position */
    .product-carousel.owl-carousel .owl-item {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
	
	
	
	/* ============================================
   MODERN PRODUCT PAGE - COMPLETE STYLES
   ============================================ */

/* Product Page Container */
.modern-product-page {
    padding: 140px 0 80px;
    background: #fff;
}

/* Breadcrumb */
.product-breadcrumb {
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.product-breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-breadcrumb a:hover {
    color: #000;
}

.product-breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* Product Main Grid */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* ============================================
   IMAGE GALLERY - LEFT SIDE
   ============================================ */
.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    width: 100%;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: crosshair;
}

.main-product-image {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #000;
    width: 150px;
    height: 150px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    background: rgba(255,255,255,0.3);
    z-index: 5;
}

.zoom-result {
    position: absolute;
    top: 0;
    right: -420px;
    width: 400px;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    background-repeat: no-repeat;
    display: none;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.gallery-main:hover .zoom-lens {
    opacity: 1;
}

.gallery-main:hover .zoom-result {
    display: block;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumb-item {
    aspect-ratio: 3/4;
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================================
   PRODUCT INFO - RIGHT SIDE
   ============================================ */
.product-info-section {
    padding: 0;
}

.product-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #000;
    font-family: 'League Spartan', sans-serif;
}

.product-meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.product-sku {
    color: #666;
    font-weight: 500;
}

.separator {
    color: #ddd;
}

.stock-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: #059669;
}

.stock-badge.out-stock {
    background: #fee2e2;
    color: #dc2626;
}

/* Price Section */
.product-price-section {
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.p_current_price {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    font-family: 'League Spartan', sans-serif;
}

.p_old_price {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
}

.p_discount-badge {
    background: #dc2626;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-short-desc {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #000;
}

.product-short-desc p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   PRODUCT FORM
   ============================================ */
.modern-product-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.required {
    color: #dc2626;
    margin-left: 3px;
}

.size-guide-link {
    color: #666;
    font-size: 13px;
    text-decoration: underline;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.3s;
}

.size-guide-link:hover {
    color: #000;
}

/* Size Selector */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    margin: 0;
    cursor: pointer;
}

.size-option input {
    display: none;
}

.size-option span {
    display: block;
    min-width: 60px;
    padding: 12px 20px;
    text-align: center;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
    user-select: none;
}

.size-option:hover span {
    border-color: #999;
    background: #f9fafb;
}

.size-option input:checked + span {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Color Select */
.modern-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.modern-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.modern-select:hover {
    border-color: #999;
}

/* Quantity and Cart Row */
.quantity-cart-row {
    display: flex;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 45px;
    height: 50px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f3f4f6;
    color: #000;
}

.qty-btn:active {
    background: #e5e7eb;
}

.qty-input {
    width: 70px;
    height: 50px;
    border: none;
    border-left: 2px solid #e5e5e5;
    border-right: 2px solid #e5e5e5;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    outline: none;
    background: #fff;
}

/* Add to Cart Button */
.btn-add-to-cart {
    flex: 1;
    height: 54px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'League Spartan', sans-serif;
}

.btn-add-to-cart:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart.disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.btn-add-to-cart.disabled:hover {
    background: #e5e5e5;
    transform: none;
    box-shadow: none;
}

/* Wishlist Button */
.btn-wishlist {
    width: 100%;
    height: 54px;
    background: #fff;
    color: #000;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-wishlist:hover {
    border-color: #000;
    background: #f9fafb;
}

.btn-wishlist i {
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-wishlist:hover i {
    transform: scale(1.2);
}

.btn-wishlist .fas {
    color: #dc2626;
}

/* Product Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.product-share span {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
}

/* ============================================
   PRODUCT TABS
   ============================================ */
.product-tabs-section {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 2px solid #e5e5e5;
}

.tabs-header {
    display: flex;
    gap: 40px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 15px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
    font-family: 'League Spartan', sans-serif;
}

.tab-btn:hover {
    color: #000;
}

.tab-btn.active {
    color: #000;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.tabs-content {
    max-width: 900px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.tab-pane ul,
.tab-pane ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.tab-pane li {
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related-products-section {
    margin-top: 80px;
}

.headline {
    text-align: center;
    margin-bottom: 50px;
}

.headline h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'League Spartan', sans-serif;
}

.headline h3 {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 1;
    transform: translateY(0);
    cursor: pointer; /* ADD THIS */
    position: relative; /* ADD THIS */
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.product-title h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #000;
}

.product-price {
    margin-top: auto;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.price-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    font-family: 'League Spartan', sans-serif;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.btn-load-more {
    padding: 16px 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'League Spartan', sans-serif;
}

.btn-load-more:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-load-more:active {
    transform: translateY(0);
}

/* ============================================
   MESSAGE MODAL
   ============================================ */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.message-overlay.show {
    display: flex;
}

.message-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: fadeIn 0.4s ;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}



.message-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.message-icon.success {
    color: #10b981;
}

.message-icon.error {
    color: #ef4444;
}

.message-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.message-close {
    padding: 14px 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-close:hover {
    background: #333;
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and Medium Devices */
@media (max-width: 992px) {
    .modern-product-page {
        padding: 100px 0 60px;
    }

    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .zoom-result {
        display: none !important;
    }

    .product-title {
        font-size: 28px;
    }

    .p_current_price {
        font-size: 32px;
    }

    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .tabs-header {
        gap: 25px;
    }

    .tab-btn {
        font-size: 15px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .modern-product-page {
        padding: 80px 0 40px;
    }

    .product-breadcrumb {
        font-size: 13px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-meta-info {
        font-size: 13px;
        gap: 10px;
    }

    .p_current_price {
        font-size: 28px;
    }

    .p_old_price {
        font-size: 20px;
    }

    .quantity-cart-row {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }

    .qty-input {
        flex: 1;
    }

    .tabs-header {
        gap: 20px;
        padding-bottom: 0;
    }

    .tab-btn {
        font-size: 14px;
        padding: 12px 0;
    }

    .tabs-content {
        max-width: 100%;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .headline h2 {
        font-size: 26px;
    }

    .headline h3 {
        font-size: 14px;
    }

    .message-modal {
        padding: 30px 20px;
    }

    .message-icon {
        font-size: 60px;
    }

    .message-text {
        font-size: 16px;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .product-title {
        font-size: 20px;
    }

    .p_current_price {
        font-size: 24px;
    }

    .p_old_price {
        font-size: 18px;
    }

    .size-selector {
        gap: 8px;
    }

    .size-option span {
        min-width: 50px;
        padding: 10px 15px;
        font-size: 13px;
    }

    .btn-add-to-cart {
        font-size: 14px;
        height: 50px;
    }

    .btn-wishlist {
        height: 50px;
        font-size: 14px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .btn-load-more {
        width: 100%;
        padding: 14px 30px;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .modern-product-page {
        padding: 70px 0 30px;
    }

    .product-title {
        font-size: 18px;
    }

    .p_current_price {
        font-size: 22px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ============================================
   RELATED PRODUCTS SECTION - COMPLETE STYLES
   ============================================ */

.related-products-section {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 2px solid #e5e5e5;
}

.headline {
    text-align: center;
    margin-bottom: 50px;
}

.headline h2 {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'League Spartan', sans-serif;
}

.headline h3 {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Related Products Grid */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* Product Card */
.product-card {
    background: #fff;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.product-card.hidden {
    display: none;
}

.product-card.show {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

/* Card Image Container */
.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 aspect ratio */
    overflow: hidden;
    background: #f8f8f8;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
    transform: scale(1.12);
}

/* Discount Badge */
.card-image-container .discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #910e01  100%);
    color: #fff;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 10px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Quick Action Buttons */
.product-card-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s;
    z-index: 3;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-view-btn,
.quick-wishlist-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.quick-view-btn:hover,
.quick-wishlist-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}

.quick-wishlist-btn.active {
    background: #dc2626;
    color: #fff;
}

.quick-wishlist-btn.active i {
    font-weight: 900;
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.out-of-stock-overlay span {
    background: #dc2626;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Content */
.card-content {
    padding: 20px;
}

.product-title h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #000;
}


.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    font-family: 'League Spartan', sans-serif;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* Product Meta */
.product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.in-stock-badge,
.out-stock-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.in-stock-badge {
    background: #d1fae5;
    color: #059669;
}

.out-stock-badge {
    background: #fee2e2;
    color: #dc2626;
}

/* Load More Button Container */
.load-more-container {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.btn-load-more {
    padding: 18px 50px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'League Spartan', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-load-more:active {
    transform: translateY(-1px);
}

.btn-load-more i {
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-load-more:hover i {
    transform: rotate(90deg);
}

#remainingCount {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 400;
}

/* No Related Products */
.no-related-products {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 80px;
}

.no-products-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 25px;
}

.no-related-products h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
    font-family: 'League Spartan', sans-serif;
}

.no-related-products p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
}

.btn-browse {
    display: inline-block;
    padding: 14px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-browse:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .related-products-section {
        margin-top: 60px;
        padding-top: 60px;
    }

    .headline h2 {
        font-size: 30px;
    }

    .headline h3 {
        font-size: 14px;
    }

    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .related-products-section {
        margin-top: 50px;
        padding-top: 50px;
    }

    .headline {
        margin-bottom: 35px;
    }

    .headline h2 {
        font-size: 26px;
    }

    .headline h3 {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        border-radius: 0px;
    }

    .card-content {
        padding: 16px;
    }

    .product-title h3 {
        font-size: 15px;
        min-height: 42px;
    }

    .current-price {
        font-size: 20px;
    }

    .old-price {
        font-size: 15px;
    }

    .btn-load-more {
        width: 100%;
        padding: 16px 40px;
    }

    .product-card-actions {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .headline h2 {
        font-size: 24px;
    }

    .product-title h3 {
        font-size: 14px;
        min-height: 40px;
    }

    .current-price {
        font-size: 19px;
    }

    .btn-load-more {
        padding: 14px 30px;
        font-size: 15px;
    }

    #remainingCount {
        display: block;
        margin-top: 5px;
    }
}

@media (max-width: 400px) {
    .card-image-container .discount-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .quick-view-btn,
    .quick-wishlist-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
	
	
	/* ============================================
   PRODUCT IMAGE ZOOM STYLES
   ============================================ */

/* Main image container - must be relative positioned */
.gallery-main {
    position: relative;
    width: 100%;
    overflow: visible; /* Changed from hidden */
    cursor: crosshair;
}

.main-product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

/* Zoom Lens - the small box that follows cursor */
.zoom-lens {
    position: absolute;
    border: 2px solid #333;
    width: 150px;
    height: 150px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: none;
    z-index: 10;
    display: none;
}

/* Zoom Result - the magnified view panel */
.zoom-result {
    position: absolute;
    right: -420px; /* Position to the right of main image */
    top: 0;
    width: 400px;
    height: 500px;
    border: 1px solid #ddd;
    background-color: #fff;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    border-radius: 8px;
}

/* Active states */
.gallery-main:hover .zoom-lens {
    opacity: 1;
    display: block;
}

.gallery-main:hover .zoom-result {
    opacity: 1;
    display: block;
}

/* Mobile - hide zoom on small screens */
@media (max-width: 991px) {
    .zoom-lens,
    .zoom-result {
        display: none !important;
    }
    
    .gallery-main {
        cursor: default;
    }
}

/* Tablet adjustments */
@media (min-width: 992px) and (max-width: 1199px) {
    .zoom-result {
        right: -320px;
        width: 300px;
        height: 400px;
    }
}

/* If there's not enough space on the right, show on left */
@media (min-width: 1200px) {
    .product-main-grid {
        position: relative;
    }
    
    /* Alternative: show zoom result on left side if needed */
    .gallery-main.zoom-left .zoom-result {
        right: auto;
        left: -420px;
    }
}

/* ============================================
   CLEAN QUANTITY SELECTOR STYLES
   ============================================ */

.quantity-cart-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 48px;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: #000;
  color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.qty-btn:hover {
    background: #548494;
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

.qty-input {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: white;
    outline: none;
    cursor: default;
    -moz-appearance: textfield; /* Remove number spinner in Firefox */
}

/* Remove number input spinners */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    flex: 1;
    min-width: 200px;
    height: 48px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart:hover {
    background: #548494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-add-to-cart.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .quantity-cart-row {
        flex-direction: column;
        width: 100%;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-to-cart {
        width: 100%;
        min-width: auto;
    }
}
	
	
	
	@media (max-width: 575px) {
    .user-content {
        padding: 30px 10px;
    }
    
    .user-content .col-md-4:nth-child(2) {
        padding: 0 15px;
    }
    
    .user-content .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .user-content .btn-success {
        padding: 14px 25px;
        font-size: 15px;
    }
}

/* ============================================
   MOBILE BANNER 1:1 ASPECT RATIO
   ============================================ */

@media (max-width: 767px) {
    .promo-banner {
        min-height: unset !important;
        height: 0 !important;
        padding-top: 100% !important; /* 1:1 aspect ratio */
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
        position: relative;
        display: block;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    /* Force mobile background image to override desktop */
    .promo-banner[data-mobile-bg]:not([data-mobile-bg=""]) {
        background-image: none !important;
    }
    
    .promo-banner .container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 20px !important;
    }
    
    .promo-banner .row {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .promo-banner .col-md-8,
    .promo-banner .col-lg-6 {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .banner-content {
        padding: var(--spacing-sm);
        text-align: center;
        width: 100% !important;
    }
    
    .banner-title {
        font-size: clamp(24px, 6vw, 32px) !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .banner-description {
        font-size: clamp(14px, 3.5vw, 16px) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .btn-banner {
        font-size: 14px !important;
        padding: 12px 30px 12px 0 !important;
    }
    
    /* Ensure banner overlay works on mobile */
    .banner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }
}

/* Extra small devices - keep 1:1 ratio */
@media (max-width: 575px) {
    .promo-banner {
        padding-top: 100% !important; /* Maintain 1:1 */
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .banner-content {
        padding: var(--spacing-xs);
    }
}

/* ============================================
   CHECKOUT CONTAINER - RESPONSIVE GRID
   ============================================ */
.checkout-container {
    max-width: 1400px;
    margin: 140px auto 40px;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    padding: 0 20px;
}

/* ============================================
   LEFT SECTION - FORMS
   ============================================ */
.checkout-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.checkout-section:hover {
    box-shadow: var(--shadow-md);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: 'League Spartan', sans-serif;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.required {
    color: var(--danger-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: white;
    transition: all var(--transition-base);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input:read-only {
    background: var(--light-gray);
    cursor: not-allowed;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ============================================
   PAYMENT METHOD SECTION
   ============================================ */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.payment-option:has(input:checked) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.payment-radio {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    transition: background var(--transition-base);
}

.payment-label:hover {
    background: var(--light-gray);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
}

.payment-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-check {
    width: 30px;
    height: 30px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.payment-radio:checked + .payment-label .payment-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.payment-details {
    padding: 20px;
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    display: none;
}

.payment-radio:checked ~ .payment-details {
    display: block;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'League Spartan', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

/* ============================================
   RIGHT SECTION - ORDER SUMMARY
   ============================================ */
.checkout-right {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.order-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.summary-header {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    font-family: 'League Spartan', sans-serif;
}

/* ============================================
   CART ITEMS IN SUMMARY
   ============================================ */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 3px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--light-gray);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.item-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

/* ============================================
   DISCOUNT SECTION
   ============================================ */
.discount-section {
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    margin: 20px 0;
}

.discount-form {
    display: flex;
    gap: 10px;
}

.discount-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    text-transform: uppercase;
}

.discount-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.discount-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.discount-btn:hover {
    background: #1a1a1a;
}

/* ============================================
   PRICE SUMMARY
   ============================================ */
.price-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.price-row.total {
    font-size: 20px;
    font-weight: 700;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--medium-gray);
    font-family: 'League Spartan', sans-serif;
}

.price-label {
    color: var(--text-secondary);
}

.price-row.total .price-label,
.price-row.total .price-value {
    color: var(--text-primary);
}

.price-value {
    font-weight: 600;
}

/* ============================================
   CONTINUE SHOPPING LINK
   ============================================ */
.continue-shopping {
    text-align: center;
    margin-top: 20px;
}

.continue-shopping a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-base);
}

.continue-shopping a:hover {
    color: var(--primary-color);
}

/* ============================================
   MESSAGES
   ============================================ */
.message-success,
.message-error {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ============================================
   RESPONSIVE DESIGN - TABLETS
   ============================================ */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr 400px;
        gap: 25px;
    }
    
    .checkout-section {
        padding: 25px;
    }
    
    .order-summary {
        padding: 25px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        margin: 80px auto 30px;
        gap: 20px;
    }
    
    .checkout-right {
        position: static;
        order: -1; /* Show summary first on mobile */
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: row;
        text-align: left;
    }
    
    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .cart-items {
        max-height: 300px;
    }
    
    .item-image {
        width: 70px;
        height: 85px;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .item-meta {
        font-size: 12px;
    }
    
    .payment-label {
        padding: 15px;
    }
    
    .payment-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .payment-name {
        font-size: 15px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ============================================ */
@media (max-width: 576px) {
    .checkout-container {
        padding: 0 15px;
        margin: 70px auto 20px;
    }
    
    .checkout-section {
        padding: 15px;
        border-radius: var(--radius-md);
    }
    
    .order-summary {
        padding: 15px;
        border-radius: var(--radius-md);
    }
    
    .section-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .section-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .summary-header {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .cart-item {
        gap: 12px;
        padding: 12px 0;
    }
    
    .item-image {
        width: 60px;
        height: 75px;
    }
    
    .item-name {
        font-size: 13px;
    }
    
    .item-price {
        font-size: 15px;
    }
    
    .discount-form {
        flex-direction: column;
    }
    
    .discount-btn {
        width: 100%;
    }
    
    .price-row {
        font-size: 14px;
    }
    
    .price-row.total {
        font-size: 18px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .checkout-left {
        display: none;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .btn,
    .discount-section,
    .continue-shopping {
        display: none;
    }
}

/* ============================================
   HERO SLIDER & BANNER BUTTON ALIGNMENT FIX
   Buttons align with text based on slide position
   ============================================ */

/* Default button styling */
.btn-banner,
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 40px;
    background: white !important;
    border: 2px solid white;
    color: #000 !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

/*.btn-banner:hover,
.btn-primary:hover {
    background: transparent !important;
    color: white !important;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}*/

/* ============================================
   HERO SLIDER ALIGNMENT CLASSES
   ============================================ */

/* LEFT ALIGNED TEXT & BUTTON */
.slide_style_left {
    text-align: left;
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
}

.slide_style_left h1,
.slide_style_left p {
    text-align: left;
}

.slide_style_left .btn-primary {
    align-self: flex-start; /* Button stays on left */
    margin-left: 0;
    margin-right: auto;
}

/* CENTER ALIGNED TEXT & BUTTON */
.slide_style_center {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center everything */
}

.slide_style_center h1,
.slide_style_center p {
    text-align: center;
}

.slide_style_center .btn-primary {
    align-self: center; /* Button stays centered */
    margin-left: auto;
    margin-right: auto;
}

/* RIGHT ALIGNED TEXT & BUTTON */
.slide_style_right {
    text-align: right;
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align items to the right */
}

.slide_style_right h1,
.slide_style_right p {
    text-align: right;
}

.slide_style_right .btn-primary {
    align-self: flex-end; /* Button stays on right */
    margin-left: auto;
    margin-right: 0;
}

/* ============================================
   BANNER SECTION BUTTON ALIGNMENT
   ============================================ */

/* Banner arrow button styling */
.btn-banner {
    padding: 16px 40px 16px 0;
    background: transparent !important;
    border: none;
    color: white !important;
}

.btn-banner::after {
    content: '→';
    font-size: 28px;
    font-weight: 300;
    transition: transform var(--transition-base);
}

.btn-banner:hover {
    color: white !important;
    gap: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-banner:hover::after {
    transform: translateX(10px);
}

/* Default: Left aligned */
.promo-banner .banner-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.promo-banner .banner-content .btn-banner {
    align-self: flex-start;
}

/* Center aligned - add class .text-center to banner-content */
.promo-banner .banner-content.text-center {
    text-align: center;
    align-items: center;
}

.promo-banner .banner-content.text-center .btn-banner {
    align-self: center;
}

/* Right aligned - add class .text-right to banner-content */
.promo-banner .banner-content.text-right {
    text-align: right;
    align-items: flex-end;
}

.promo-banner .banner-content.text-right .btn-banner {
    align-self: flex-end;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
    /* On mobile, default to center alignment */
    .slide_style_left,
    .slide_style_center,
    .slide_style_right {
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
        align-items: center;
    }
    
    .slide_style_left h1,
    .slide_style_left p,
    .slide_style_center h1,
    .slide_style_center p,
    .slide_style_right h1,
    .slide_style_right p {
        text-align: center;
    }
    
    .slide_style_left .btn-primary,
    .slide_style_center .btn-primary,
    .slide_style_right .btn-primary {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Banner content centered on mobile */
    .promo-banner .banner-content,
    .promo-banner .banner-content.text-right {
        text-align: center;
        align-items: center;
    }
    
    .promo-banner .banner-content .btn-banner,
    .promo-banner .banner-content.text-right .btn-banner {
        align-self: center;
    }
}

@media (max-width: 991px) {
    .slide_style_left {
        padding-left: 40px;
    }
    
    .slide_style_right {
        padding-right: 40px;
    }
}

/* ============================================
   PRODUCT CAROUSEL - ANIMATION FIX
   CRITICAL: Remove animation blockers
   ============================================ */

/* ============================================
   BASE CAROUSEL STYLES
   ============================================ */

.product-carousel {
    width: 100%;
    margin: 0 -15px;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-carousel .item {
    padding: 0 15px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure proper initialization */
.product-carousel.owl-loaded {
    display: block !important;
}

.product-carousel .owl-stage-outer {
    overflow: visible;
    position: relative;
}

.product-carousel .owl-stage {
    display: flex !important;
    /* CRITICAL: Allow transform for sliding */
    will-change: transform;
}

.product-carousel .owl-item {
    opacity: 1 !important;
    visibility: visible !important;
    backface-visibility: hidden;
    /* CRITICAL: Allow transform */
    will-change: transform;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.product-carousel .owl-nav {
    margin-top: 0;
}

.product-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: #000 !important;
    font-size: 24px !important;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
}

.product-carousel .owl-nav button:hover {
    background: #000 !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.product-carousel .owl-nav .owl-prev {
    left: -25px;
}

.product-carousel .owl-nav .owl-next {
    right: -25px;
}

/* ============================================
   DESKTOP DOTS
   ============================================ */

.product-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
    padding: 0;
}

.product-carousel .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0 !important;
    margin: 0 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.product-carousel .owl-dot.active {
    width: 30px;
    border-radius: 10px;
    background: #000 !important;
}

.product-carousel .owl-dot:hover {
    background: #999 !important;
}

/* ============================================
   MOBILE CAROUSEL - CRITICAL FIXES
   ============================================ */

@media (max-width: 767px) {
    
    /* Container setup */
    .product {
        width: 100%;
        overflow-x: hidden;
    }
    
    .product .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .product-carousel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    /* Owl Carousel mobile fixes */
    .product-carousel.owl-carousel {
        width: 100% !important;
    }
    
    .product-carousel .owl-stage-outer {
        width: 100% !important;
        overflow: hidden !important;
    }
    
    /* CRITICAL: Enable transform animation on owl-stage */
    .product-carousel .owl-stage {
        width: 100% !important;
        display: flex !important;
        /* MUST HAVE: Allow CSS transform for sliding */
        transition: transform 0.5s ease !important;
        -webkit-transition: -webkit-transform 0.5s ease !important;
        transform: translate3d(0px, 0px, 0px) !important;
        will-change: transform !important;
    }
    
    /* Item sizing - CRITICAL */
    .product-carousel .owl-item {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        /* CRITICAL: Allow transform */
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .product-carousel .item {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    /* Product card - NO ANIMATION BLOCKERS */
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        /* Remove animation blockers */
        animation: none;
        transform: none;
    }
    
    /* CRITICAL: Keep card content stable (no animations) */
    .product-card .card-image-container,
    .product-card .card-content,
    .product-card .product-image {
        animation: none !important;
    }
    
    /* But allow hover effects on buttons */
    .action-btn {
        transition: all 0.3s ease !important;
    }
    
    /* Hide navigation buttons on mobile */
    .product-carousel .owl-nav {
        display: none !important;
    }
    
    /* Show dots on mobile */
    .product-carousel .owl-dots {
        display: block !important;
        margin-top: 25px;
    }
    
    /* Mobile dots styling */
    .product-carousel .owl-dot {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }
    
    .product-carousel .owl-dot.active {
        width: 24px;
    }
    
    /* CRITICAL: Enable touch dragging */
    .product-carousel.owl-carousel {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    .product-carousel.owl-carousel.owl-drag .owl-item {
        touch-action: pan-y;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .product-carousel.owl-carousel.owl-grab {
        cursor: grab;
    }
    
    /* Prevent layout shifts during swipe */
    .product-carousel .item {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* ============================================
   SPECIFIC MOBILE SIZES
   ============================================ */

/* Small phones (320px - 374px) */
@media (max-width: 374px) {
    .product-carousel .item {
        max-width: 310px !important;
    }
}

/* Standard phones (375px - 413px) */
@media (min-width: 375px) and (max-width: 413px) {
    .product-carousel .item {
        max-width: 360px !important;
    }
}

/* Large phones (414px - 575px) */
@media (min-width: 414px) and (max-width: 575px) {
    .product-carousel .item {
        max-width: 390px !important;
    }
}

/* Phablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .product-carousel .item {
        max-width: 420px !important;
    }
}

/* ============================================
   PREVENT HORIZONTAL SCROLL
   ============================================ */

@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .product,
    .product * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ============================================
   SMOOTH TRANSITIONS FOR OWL STAGE ONLY
   ============================================ */

.product-carousel .owl-stage {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ============================================
   LOADING STATE
   ============================================ */

.product-carousel.loading {
    min-height: 400px;
    position: relative;
}

.product-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.product-carousel .owl-nav button:focus,
.product-carousel .owl-dot:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}
/* ============================================
   ENSURE ONLY ONE SET OF PRODUCTS VISIBLE
   ============================================ */

/* Make sure carousels don't duplicate items */
.product-carousel.owl-loaded .owl-item {
    display: none; /* Hide all items by default */
}

.product-carousel.owl-loaded .owl-item.active {
    display: block; /* Show only active items */
}

/* Desktop: Show multiple items */
@media (min-width: 768px) {
    .product-carousel.owl-loaded .owl-item.active {
        display: block;
    }
}

/* Mobile: Ensure proper stage animation */
@media (max-width: 767px) {
    .product-carousel .owl-stage {
        transition: transform 0.5s ease !important;
        -webkit-transition: -webkit-transform 0.5s ease !important;
        will-change: transform !important;
        transform: translate3d(0px, 0px, 0px) !important;
    }
    
    /* Prevent item duplication */
    .product-carousel.owl-loaded .owl-item:not(.active) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .product-carousel.owl-loaded .owl-item.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        justify-content: center;
    }
}

/* Fix cloning issue */
.product-carousel .owl-item.cloned {
    display: none !important;
}

.product-carousel.owl-loaded .owl-item.cloned.active {
    display: block !important;
}

@media (max-width: 767px) {
    .product-carousel.owl-loaded .owl-item.cloned.active {
        display: flex !important;
    }
}

.slide_style_left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left alignment */
}

.slide_style_center {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center alignment */
}

.slide_style_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right alignment */
}

/* ============================================
   FIX: Remove empty "BEFORE" space in product grid
   ============================================ */

#productsGrid::before,
.product-cat .row::before,
.product .row::before {
    content: none !important;
    display: none !important;
}

#productsGrid::after,
.product-cat .row::after,
.product .row::after {
    content: none !important;
    display: none !important;
}

/* Also remove any clearfix or Bootstrap row pseudo-elements */
.row::before,
.row::after {
    content: none !important;
    display: none !important;
}

/* Ensure clean grid layout */
#productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Remove any inherited Bootstrap row styles */
.product-cat .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.product-cat .row::before,
.product-cat .row::after {
    display: none !important;
}

/* Card Content - REDUCED PADDING */
.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-bottom: 8px;
    flex: 1;
}

.product-title h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px; /* 2 lines minimum */
}

/* EMERGENCY FIX - Add to final.css */
.product-carousel * {
    box-sizing: border-box !important;
}

.product-carousel .owl-item > div {
    width: 100% !important;
}

.product-card {
    max-width: 100% !important;
}
/* ============================================
   COMPLETE PRODUCT CARD RESPONSIVE FIX
   Add this to your final.css file
   ============================================ */

/* ============================================
   1. RESET ALL PRODUCT CARDS - BASE STYLES
   ============================================ */

/* Reset the product carousel and items */
.product-carousel {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.product-carousel .item {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* ============================================
   2. PRODUCT CARD - FIXED STRUCTURE
   ============================================ */

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ============================================
   3. IMAGE CONTAINER - FIXED ASPECT RATIO
   ============================================ */

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 aspect ratio (always consistent) */
    overflow: hidden;
    background: #f8f8f8;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* ============================================
   4. CARD CONTENT - CONSISTENT SPACING
   ============================================ */

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Takes remaining space */
    min-height: 0; /* Important for flex children */
}

/* ============================================
   5. PRODUCT TITLE - FIXED HEIGHT
   ============================================ */

.product-title {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.product-title h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    
    /* Fixed height for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px; /* 2 lines at 15px font size */
    max-height: 42px;
}

.product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #8B7355;
}

/* ============================================
   6. PRICE SECTION - CONSISTENT LAYOUT
   ============================================ */

.product-price {
    margin-top: auto; /* Push to bottom */
    padding-top: 10px;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.price-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.old-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: #e74c3c;
    color: #fff;
    font-weight: 700;
}

/* Wishlist Button */
.wishlist-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    border-color: #ff4757;
    background: #fff5f7;
}

.wishlist-btn i {
    font-size: 16px;
    color: #666;
}

/* ============================================
   7. HOVER ACTIONS - OVERLAY BUTTONS
   ============================================ */

.hover-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
    width: calc(100% - 30px);
}

.product-card:hover .hover-actions {
    opacity: 1;
    visibility: visible;
    bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background: #000;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   8. DESKTOP - MULTIPLE COLUMNS
   ============================================ */

@media (min-width: 1200px) {
    .product-carousel .owl-item {
        width: 25% !important; /* 4 items per row */
    }
    
    .card-content {
        padding: 18px;
    }
    
    .product-title h3 {
        font-size: 16px;
        min-height: 44px;
        max-height: 44px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .product-carousel .owl-item {
        width: 33.333% !important; /* 3 items per row */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-carousel .owl-item {
        width: 50% !important; /* 2 items per row */
    }
}

/* ============================================
   9. MOBILE - SINGLE COLUMN (CRITICAL FIX)
   ============================================ */

@media (max-width: 767px) {
    /* Container setup */
    .product {
        width: 100%;
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
    }
    
    .product .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .product-carousel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    /* OWL CAROUSEL MOBILE FIX */
    .product-carousel.owl-carousel .owl-stage-outer {
        overflow: hidden;
    }
    
    .product-carousel.owl-carousel .owl-stage {
        display: flex;
        transition: transform 0.5s ease;
    }
    
    .product-carousel .owl-item {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 0 15px !important;
    }
    
    .product-carousel .item {
        width: 100% !important;
        max-width: 420px !important; /* Maximum card width */
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    /* PRODUCT CARD MOBILE */
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
    
    /* Image container - slightly taller on mobile */
    .card-image-container {
        padding-top: 125%; /* 4:5 aspect ratio for mobile */
    }
    
    /* Content spacing */
    .card-content {
        padding: 14px;
    }
    
    .product-title h3 {
        font-size: 14px;
        min-height: 39px; /* 2 lines at 14px */
        max-height: 39px;
        line-height: 1.4;
    }
    
    /* Price adjustments */
    .current-price {
        font-size: 18px;
    }
    
    .old-price {
        font-size: 14px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Wishlist button mobile */
    .wishlist-btn {
        width: 32px;
        height: 32px;
    }
    
    .wishlist-btn i {
        font-size: 14px;
    }
    
    /* Show hover actions by default on mobile */
    .hover-actions {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Hide navigation arrows on mobile */
    .product-carousel .owl-nav {
        display: none !important;
    }
    
    /* Show dots on mobile */
    .product-carousel .owl-dots {
        display: block !important;
        margin-top: 20px;
    }
}

/* ============================================
   10. SMALL MOBILE - EXTRA COMPACT
   ============================================ */

@media (max-width: 575px) {
    .product-carousel .item {
        max-width: 380px !important;
    }
    
    .card-image-container {
        padding-top: 130%; /* Slightly taller */
    }
    
    .card-content {
        padding: 12px;
    }
    
    .product-title h3 {
        font-size: 13px;
        min-height: 36px;
        max-height: 36px;
    }
    
    .current-price {
        font-size: 17px;
    }
    
    .old-price {
        font-size: 13px;
    }
}

/* ============================================
   11. VERY SMALL DEVICES
   ============================================ */

@media (max-width: 374px) {
    .product-carousel .item {
        max-width: 320px !important;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .product-title h3 {
        font-size: 12px;
        min-height: 34px;
        max-height: 34px;
    }
    
    .current-price {
        font-size: 16px;
    }
}

/* ============================================
   12. PREVENT LAYOUT SHIFTS
   ============================================ */

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

.product-carousel * {
    box-sizing: border-box !important;
}

/* ============================================
   13. SMOOTH TRANSITIONS
   ============================================ */

.product-carousel .owl-stage {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================
   14. LOADING STATE
   ============================================ */

.product-carousel.loading {
    min-height: 400px;
    position: relative;
}

.product-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   15. ENSURE NO BLANK SPACES
   ============================================ */

.product .row::before,
.product .row::after,
.product-carousel::before,
.product-carousel::after {
    content: none !important;
    display: none !important;
}

/* ============================================
  card click
   ============================================ */
   
   /* Make entire card clickable while preserving button functionality */
.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

/* Ensure buttons and wishlist stay above card link */
.hover-actions,
.wishlist-btn,
.action-btn {
    position: relative;
    z-index: 10;
}

/* Prevent card link from interfering with buttons */
.product-card:hover .product-card-link {
    pointer-events: none;
}

/* ============================================
   WISHLIST BUTTON - TOP LEFT
   ============================================ */
.wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card:hover .wishlist-btn {
    transform: scale(1.1);
}

.wishlist-btn i {
    font-size: 18px;
    color: #666;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    background: #fff;
    border-color: #ff4757;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}

.wishlist-btn:hover i {
    color: #ff4757;
}

.wishlist-btn.active {
    background: #ff4757;
    border-color: #ff4757;
}

.wishlist-btn.active i {
    color: #fff;
    font-weight: 900;
}

/* ============================================
   DISCOUNT BADGE - NEW COLORS (TOP RIGHT)
   ============================================ */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #8B1E1E; /* Dark red/maroon */
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(139, 30, 30, 0.3);
}

/* ============================================
   HOVER ACTIONS - DESKTOP ONLY
   ============================================ */
.hover-actions.desktop-only {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 3;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card:hover .hover-actions.desktop-only {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background: #000;
    color: white;
    transform: translateY(-2px);
}

.out-of-stock-btn {
    background: rgba(44, 41, 41, 0.95);
    color: white;
    cursor: not-allowed;
}

/* ============================================
   MOBILE ADD TO CART BUTTON
   ============================================ */
.mobile-add-to-cart {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.mobile-cart-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-cart-btn:active {
    transform: scale(0.95);
    background: #000;
    color: white;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.quick-view-modal {
    width: 900px;
}

.add-to-cart-modal {
    width: 500px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #000;
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    padding: 40px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE - MOBILE & TABLET
   ============================================ */
@media (max-width: 991px) {
    /* Hide desktop hover actions */
    .hover-actions.desktop-only {
        display: none !important;
    }
    
    /* Show mobile add to cart */
    .mobile-add-to-cart {
        display: block;
    }
    
    .quick-view-modal {
        width: 95%;
    }
    
    .add-to-cart-modal {
        width: 95%;
    }
    
    .modal-content {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .wishlist-btn {
        width: 36px;
        height: 36px;
    }
    
    .wishlist-btn i {
        font-size: 16px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* ============================================
   ADD TO CART BUTTON - DESKTOP (NEXT TO PRICE)
   ============================================ */
.add-to-cart-btn-desktop {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.product-card:hover .add-to-cart-btn-desktop {
    opacity: 1;
    visibility: visible;
}

.add-to-cart-btn-desktop i {
    font-size: 16px;
    color: #666;
    transition: color 0.3s;
}

.add-to-cart-btn-desktop:hover {
    background: #000;
    border-color: #000;
}

.add-to-cart-btn-desktop:hover i {
    color: white;
}

/* ============================================
   QUICK VIEW & OUT OF STOCK - DESKTOP HOVER
   ============================================ */
.hover-actions.desktop-only {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .hover-actions.desktop-only {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE ADD TO CART BUTTON - ICON ONLY
   ============================================ */
.mobile-add-to-cart {
    display: none;
}

.mobile-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.mobile-cart-btn i {
    font-size: 18px;
    color: #000;
}

/* ============================================
   RESPONSIVE BEHAVIOR
   ============================================ */
@media (min-width: 768px) {
    /* Desktop: Show all on hover */
    .hover-actions.desktop-only {
        display: flex !important;
    }

    .mobile-add-to-cart {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Mobile: Show Add to Cart & Out of Stock only */
    .hover-actions.desktop-only {
        display: none !important;
    }

    .mobile-add-to-cart {
        display: block !important;
    }

    .add-to-cart-btn-desktop {
        display: none !important;
    }
}




/*quick view and thw add to cart modal styling*/
/* ============================================
   MODAL OVERLAY & CONTAINER - EXACT DESIGN
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #fff;
    border-radius: 0;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #999;
    font-size: 28px;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* ============================================
   ADD TO CART MODAL - EXACT MATCH
   ============================================ */

.add-to-cart-modal {
    width: 500px;
    max-width: 95%;
}

.add-to-cart-modal .modal-content {
    padding: 0;
}

.add-to-cart-form {
    padding: 50px 50px 40px;
}

.add-to-cart-form .product-info {
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.add-to-cart-form .product-info img {
    display: none; /* Hide image like in reference */
}

.add-to-cart-form .product-info h3 {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.add-to-cart-form .product-info .discount-label {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.add-to-cart-form .product-info .price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
}

.add-to-cart-form .product-info .price {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.add-to-cart-form .product-info .old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin: 0;
}

/* Form Groups */
.add-to-cart-form .form-group {
    margin-bottom: 18px;
}

.add-to-cart-form .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.add-to-cart-form .form-group label::after {
    content: ' *';
    color: #999;
}

/* Size Buttons Grid */
.size-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.size-option {
    position: relative;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.size-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    text-transform: uppercase;
}

.size-option label::after {
    display: none !important;
}

.size-option input[type="radio"]:checked + label {
    background: #000;
    color: #fff;
    border-color: #000;
}

.size-option input[type="radio"]:disabled + label {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.size-option label:hover:not(:has(input:disabled)) {
    border-color: #000;
}

/* Select Dropdown for Color */
.add-to-cart-form select {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    color: #000;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
}

.add-to-cart-form select:hover,
.add-to-cart-form select:focus {
    border-color: #000;
    outline: none;
}

/* Quantity Selector - Horizontal Style */
.qty-selector-horizontal {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 10px;
}

.qty-selector-horizontal button {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.qty-selector-horizontal button:hover {
    background: #f5f5f5;
    border-color: #000;
}

.qty-selector-horizontal input {
    width: 80px;
    height: 50px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    background: #fff;
}

/* Add to Cart Button */
.btn-add-to-cart {
    width: 100%;
    height: 56px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 30px;
    text-transform: uppercase;
}

.btn-add-to-cart:hover {
    background: #333;
}

.btn-add-to-cart:active {
    transform: scale(0.98);
}

/* ============================================
   QUICK VIEW MODAL - EXACT MATCH
   ============================================ */

.quick-view-modal {
    width: 1000px;
    max-width: 95%;
}

.quick-view-modal .modal-content {
    padding: 0;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 0;
    min-height: 500px;
}

.quick-view-image {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border-right: 1px solid #f0f0f0;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.quick-view-details {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.quick-view-details h2 {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.quick-view-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.quick-view-price .discount-badge {
    background: #ff0000;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-right: 5px;
}

.quick-view-price .current {
    font-size: 18px;
    font-weight: 400;
    color: #000;
}

.quick-view-price .old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.quick-view-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 35px;
}

.btn-view-full {
    display: inline-block;
    padding: 18px 0;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    text-align: center;
    border: none;
    border-bottom: 2px solid #000;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.btn-view-full:hover {
    color: #666;
    border-bottom-color: #666;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .add-to-cart-modal,
    .quick-view-modal {
        max-width: 95%;
        margin: 20px;
    }
    
    .add-to-cart-form {
        padding: 40px 30px;
    }
    
    .size-selector-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .size-option label {
        height: 45px;
        font-size: 13px;
    }
    
    .quick-view-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-view-image {
        padding: 40px 30px;
        min-height: 300px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .quick-view-details {
        padding: 40px 30px;
    }
    
    .quick-view-details h2 {
        font-size: 18px;
    }
    
    .quick-view-price .current {
        font-size: 16px;
    }
    
    .modal-container {
        max-height: 90vh;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .add-to-cart-form {
        padding: 35px 25px;
    }
    
    .add-to-cart-form .product-info h3 {
        font-size: 18px;
    }
    
    .size-selector-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .qty-selector-horizontal button {
        width: 45px;
        height: 45px;
    }
    
    .qty-selector-horizontal input {
        width: 70px;
        height: 45px;
    }
    
    .quick-view-image {
        padding: 30px 20px;
    }
    
    .quick-view-details {
        padding: 30px 25px;
    }
    
    .btn-view-full {
        max-width: 100%;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.modal-content.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.modal-content.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}