/* Primo Coffee - Modern CSS Styles with Animations */

/* Elite & Elegant Design System */
:root {
    /* Elite Coffee Brand Palette */
    --primary-color: #2C1810;
    --primary-light: #4A2F20;
    --primary-dark: #1A0E08;
    --secondary-color: #F8F6F3;
    --accent-color: #B8860B;
    --accent-light: #D4AF37;
    --dark-color: #0F0A07;
    --light-color: #FFFFFE;
    
    /* Elegant Neutral Palette */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #FAFAF9;
    --gray-100: #F5F5F4;
    --gray-200: #E7E5E4;
    --gray-300: #D6D3D1;
    --gray-400: #A8A29E;
    --gray-500: #78716C;
    --gray-600: #57534E;
    --gray-700: #44403C;
    --gray-800: #292524;
    --gray-900: #1C1917;
    
    /* Elite Typography Stack */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Fraunces', 'Times New Roman', serif;
    --font-mono: 'SF Mono', 'Monaco', monospace;
    
    /* Elegant Transitions */
    --transition-micro: 0.15s ease;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    
    /* Elite Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 12px -2px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 20px -4px rgba(0, 0, 0, 0.12);
    
    /* Elegant Gradients */
    --gradient-primary: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(180deg, var(--accent-color) 0%, var(--accent-light) 100%);
    
    /* Modern Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Modern Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Modern Backdrop Blur */
    --backdrop-blur-sm: blur(4px);
    --backdrop-blur-md: blur(8px);
    --backdrop-blur-lg: blur(16px);
}

/* Elite Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Elite Button System */
.btn {
    font-weight: 500;
    font-family: var(--font-primary);
    border-radius: 4px;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    text-transform: none;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Product Card Button */
.product-card .btn-primary {
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    margin-top: auto;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Brown Button for Blog Section */
.btn-brown {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-brown:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.3);
}

/* Blog Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 2rem 1rem 2rem;
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
    line-height: 1.7;
}

.modal-body img {
    border-radius: 8px;
}

.article-meta {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.article-content h6 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.article-content ul {
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 2rem 1.5rem 2rem;
    justify-content: center;
}

/* Blog Carousel Styles */
#blogCarousel {
    position: relative;
    overflow: visible;
}

#blogCarousel .carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
    gap: 10px;
}

#blogCarousel .carousel-indicators button {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--gray-300);
    border: none;
    opacity: 1;
    transition: all 0.3s ease;
}

#blogCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    transform: scaleX(1.2);
}

.blog-carousel-control {
    width: 50px !important;
    height: 50px !important;
    background: var(--primary-color) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.9 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.blog-carousel-control:hover {
    background: var(--accent-color) !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(44, 24, 16, 0.3) !important;
}

.blog-carousel-control.carousel-control-prev {
    left: -70px !important;
}

.blog-carousel-control.carousel-control-next {
    right: -70px !important;
}

.blog-carousel-control .carousel-control-prev-icon,
.blog-carousel-control .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Blog section padding for controls */
#blog {
    padding: 5rem 80px 6rem 80px;
    overflow: visible;
}

/* Responsive blog carousel */
@media (max-width: 768px) {
    .blog-carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .blog-carousel-control.carousel-control-prev {
        left: -60px;
    }
    
    .blog-carousel-control.carousel-control-next {
        right: -60px;
    }
    
    #blogCarousel .carousel-indicators {
        bottom: -40px;
    }
    
    #blog {
        padding: 3rem 70px 5rem 70px;
    }
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Elite Navigation */
.custom-navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
}

.custom-navbar.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--primary-color) !important;
    transition: color var(--transition-fast);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-fast);
    margin: 0 0.25rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Order Now navigation link styling */
.nav-link[href="order.html"] {
    color: var(--primary-color) !important;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.nav-link[href="order.html"]:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
}

.nav-link[href="order.html"]::after {
    display: none;
}

/* Elite Hero Section */
.hero-section {
    min-height: 90vh;
    background: 
        linear-gradient(180deg, 
            rgba(44, 24, 16, 0.4) 0%, 
            rgba(44, 24, 16, 0.6) 100%
        ),
        url('../images/Banner.jpg') center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-section .text-primary {
    color: var(--accent-light) !important;
}

.hero-section .lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Elegant Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.scroll-arrow:hover {
    border-color: var(--accent-light);
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
}

/* Elite Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 120%; /* Creates larger aspect ratio */
    background: var(--gray-100);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.product-overlay .badge {
    background: var(--white);
    color: var(--gray-700);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: var(--backdrop-blur-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.product-card:hover .product-overlay .badge {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Product Hover Info Overlay */
.product-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    z-index: 3;
    max-height: 100%;
    overflow-y: auto;
}

.product-card:hover .product-info-overlay {
    transform: translateY(0);
}

/* Detailed Product Info on Hover */
.product-details-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 4;
    overflow-y: auto;
}

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

.product-details-hover h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-light);
}

.product-details-hover .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.product-details-hover .detail-label {
    font-weight: 600;
    color: var(--accent-light);
}

.product-details-hover .pricing-section {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-details-hover .price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.product-details-hover .price-header {
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.product-info-overlay h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
}

.product-info-overlay p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

.product-info-overlay .region {
    color: var(--accent-light);
    font-weight: 500;
}

.product-card .card-body {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Hide detailed product info in card body by default */
.product-details,
.pricing-info {
    display: none;
}

/* Price Display Styling - One Line */
.price-line {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.price-line .price-main {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-right: 0.5rem;
}

.price-line .price-wholesale {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 400;
}

/* Product Info Styling - Condensed */
.product-info {
    text-align: center;
    padding: 0.375rem 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 0;
}

.product-info small {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-right: 0.75rem;
    display: inline;
}

.product-info small:last-child {
    margin-right: 0;
}

.product-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0;
    font-family: var(--font-display);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.product-card .card-text {
    color: var(--gray-600);
    line-height: 1.4;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-align: center;
}

.price-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 6px;
}

.price-section .old-price {
    text-decoration: line-through;
    font-size: 0.9rem;
    color: var(--gray-400);
    font-weight: 400;
}

.price-section .new-price {
    font-size: 1.5rem;
    margin-left: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

/* Story Section */
.story-features .bi {
    animation: pulse 2s infinite;
}

.story-image img {
    transition: all var(--transition-slow);
}

.story-image:hover img {
    transform: scale(1.05) rotate(1deg);
}

/* Factory Video Section */
.factory-video-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.factory-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    z-index: 1;
}

/* Unmute Overlay for YouTube Video */
.unmute-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.unmute-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.unmute-button {
    text-align: center;
    color: white;
}

.unmute-button i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
    color: var(--accent-light);
}

.unmute-button p {
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .unmute-overlay {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
    }
    
    .unmute-button i {
        font-size: 1.2rem;
    }
    
    .unmute-button p {
        font-size: 0.75rem;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.factory-video-section h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.factory-video-section .lead {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .factory-video-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .factory-video-section h2 {
        font-size: 2rem;
    }
    
    .factory-video-section .lead {
        font-size: 1rem;
    }
}

/* Elite Section Styles */
section {
    padding: 4rem 0;
}

.bg-light {
    background: var(--gray-50) !important;
}

/* Elite Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonial-icon {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.testimonial-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
    font-weight: 400;
}

.testimonial-author h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stars i {
    font-size: 1rem;
    color: var(--accent-color);
    margin-right: 1px;
}

/* Elite Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.02);
}

.blog-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: var(--white);
    color: var(--gray-700);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-family: var(--font-display);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
    font-size: 0.95rem;
}

/* Modern Grid Layouts */
.modern-grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

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

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

@media (max-width: 768px) {
    .modern-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), var(--gray-900)) !important;
    color: var(--white);
}

footer h5, 
footer h6 {
    color: var(--accent-light) !important;
    font-weight: 600;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
}

footer .text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a {
    color: var(--accent-color);
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--accent-light);
}

.social-links a {
    transition: all var(--transition-fast);
    color: var(--white) !important;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--accent-light) !important;
}

/* Back to Top Button */
#backToTop {
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    z-index: 1000;
    transition: all var(--transition-normal);
}

#backToTop:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Elegant Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hover Effects */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
    
    .hero-stats {
        padding: var(--space-lg);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        text-align: center;
        padding: var(--space-2xl) 0;
    }
    
    .hero-section h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: var(--space-lg);
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
        margin-bottom: var(--space-xl);
    }
    
    .hero-stats {
        margin-bottom: var(--space-xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }
    
    .display-4 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .product-card,
    .testimonial-card,
    .blog-card {
        margin-bottom: var(--space-xl);
    }
    
    .factory-image {
        height: 220px;
        margin-bottom: var(--space-lg);
    }
    
    .custom-navbar {
        padding: var(--space-md) 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Product Card Responsive Styles */
@media (max-width: 992px) {
    .product-card .card-body {
        padding: 1.25rem;
    }
    
    .product-card .card-title {
        font-size: 1.2rem;
    }
    
    .price-main {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-card .card-body {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
        padding-bottom: 0.5rem;
    }
    
    .product-card .card-text {
        font-size: 0.9rem;
    }
    
    .price-display {
        padding: 0.75rem;
    }
    
    .price-main {
        font-size: 1.4rem;
    }
    
    .price-wholesale {
        font-size: 0.85rem;
    }
    
    .product-info {
        padding: 0.5rem;
    }
    
    .product-info small {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
        padding: var(--space-xl) 0;
    }
    
    .hero-section h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.2;
    }
    
    .hero-stats .row {
        gap: var(--space-sm);
    }
    
    .hero-stats .col-4 {
        flex: 1;
        min-width: 0;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: var(--space-md) var(--space-xl);
        font-size: 1rem;
        width: 100%;
    }
    
    .product-card .card-body,
    .testimonial-card,
    .blog-content {
        padding: var(--space-lg);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
}

/* Modern Utility Classes */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-dark {
    background: var(--gradient-dark);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--backdrop-blur-md);
    -webkit-backdrop-filter: var(--backdrop-blur-md);
}

.bg-glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: var(--backdrop-blur-md);
    -webkit-backdrop-filter: var(--backdrop-blur-md);
}

.border-glass {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

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

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.3);
}

/* Modern Focus States */
.focus-ring:focus {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Contact Page Styles */
.contact-header {
    background: linear-gradient(135deg, var(--light-color), var(--gray-100));
}

.contact-item {
    transition: all var(--transition-normal);
    padding: 1rem;
    border-radius: 10px;
}

.contact-item:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}

.contact-icon i {
    transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon i {
    transform: scale(1.1);
    color: var(--accent-color) !important;
}

.product-selection-card {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.product-selection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

/* Order Page Enhancements */
.order-header {
    background: linear-gradient(135deg, var(--light-color), var(--gray-100));
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

/* Modern Story Slider Styles */
#story {
    background: linear-gradient(135deg, 
        rgba(44, 24, 16, 0.03) 0%, 
        rgba(184, 134, 11, 0.05) 50%, 
        rgba(44, 24, 16, 0.03) 100%);
    position: relative;
    overflow: visible;
}

#story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(44,24,16,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(184,134,11,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(44,24,16,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

#storyCarousel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

#storyCarousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(44, 24, 16, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

#storyCarousel .carousel-inner {
    padding: 4rem 5rem;
    position: relative;
    z-index: 2;
}

#storyCarousel .carousel-item {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 450px;
    opacity: 0;
    transform: translateX(100px) scale(0.95);
}

#storyCarousel .carousel-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: slideInContent 1s ease-out;
}

@keyframes slideInContent {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.min-vh-50 {
    min-height: 50vh;
}

/* Modern Indicators */
#storyCarousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    gap: 12px;
}

#storyCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(44, 24, 16, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    margin: 0;
}

#storyCarousel .carousel-indicators button.active {
    background: var(--accent-color);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4);
}

#storyCarousel .carousel-indicators button:hover:not(.active) {
    background: rgba(44, 24, 16, 0.5);
    transform: scale(1.2);
}

/* Floating Circular Brown Controls */
#storyCarousel .carousel-control-prev,
#storyCarousel .carousel-control-next {
    width: 60px !important;
    height: 60px !important;
    background: var(--primary-color) !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.9 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 8px 25px rgba(44, 24, 16, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.2) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#storyCarousel .carousel-control-prev {
    left: 0px !important;
    transform: translateY(-50%) translateX(-50%) !important;
}

#storyCarousel .carousel-control-next {
    right: 0px !important;
    transform: translateY(-50%) translateX(50%) !important;
}

#storyCarousel .carousel-control-prev:hover,
#storyCarousel .carousel-control-next:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 
        0 12px 35px rgba(184, 134, 11, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

#storyCarousel .carousel-control-prev-icon,
#storyCarousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

#storyCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#storyCarousel .carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.2);
}

/* Modern Story Content Styling */
#story .carousel-item h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    font-size: 2.5rem;
}

#story .carousel-item h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

#story .carousel-item .lead {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced Story Images */
#story .story-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    animation: fadeInScale 1.2s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}



#story .story-image img {
    border-radius: 20px;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Responsive Modern Story Slider */
@media (max-width: 768px) {
    #storyCarousel {
        border-radius: 16px;
        margin: 0 1rem;
    }
    
    #storyCarousel .carousel-inner {
        padding: 2.5rem 2rem;
    }
    
    #storyCarousel .carousel-item {
        min-height: 350px;
    }
    
    #storyCarousel .carousel-control-prev,
    #storyCarousel .carousel-control-next {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    
    #storyCarousel .carousel-control-prev {
        left: -60px;
    }
    
    #storyCarousel .carousel-control-next {
        right: -60px;
    }
    
    #storyCarousel .carousel-control-prev-icon,
    #storyCarousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    #storyCarousel .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    #storyCarousel .carousel-indicators button {
        width: 6px;
        height: 6px;
    }
    
    .min-vh-50 {
        min-height: auto;
    }
    
    #story .row {
        text-align: center;
    }
    
    #story .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    #story .carousel-item h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    #story .carousel-item .lead {
        font-size: 0.95rem;
    }
    
    #story .story-image {
        border-radius: 16px;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    #storyCarousel .carousel-inner {
        padding: 1.5rem 1rem;
    }
    
    #story .carousel-item h2 {
        font-size: 1.75rem;
    }
    
    #story .carousel-item .lead {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #backToTop,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        background: var(--white) !important;
        color: var(--black) !important;
    }
}