/* Benzara Workwear Design System */
:root {
    --primary-color: #1a2a3a;
    --secondary-color: #ff6b00;
    --accent-color: #ffd700;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Space between icon and text */
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
/* Hero Slider */
.hero-slider {
    position: relative;
    height: 90vh;
    /* Reduced slightly from 100vh for better fold visibility */
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    color: white;
    /* Ensure text is white */
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Products styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem 0;
}

.product-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    width: max-content;
    /* Ensure track is wide enough */
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 280px;
    /* Fixed width for carousel items */
    max-width: 300px;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Category Grid for "Browse by Category" */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #eee;
}

.category-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.category-name {
    font-weight: 600;
    color: var(--primary-color);
}

.product-image {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    position: relative;
    /* For absolute positioning of slides */
}

/* Hero Navigation Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    /* Darker background for visibility */
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    /* Increased z-index */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    border-color: white;
}

/* Service Gallery (About Us) */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.service-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.service-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-nav.prev-hero {
    left: 20px;
}

.hero-nav.next-hero {
    right: 20px;
}

/* Manual Slideshow Controls */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease, background 0.3s;
}

.product-image:hover .slide-nav {
    opacity: 1;
    /* Visible on hover */
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--secondary-color);
}

.slide-nav.prev-slide {
    left: 10px;
}

.slide-nav.next-slide {
    right: 10px;
}

.product-image img {
    height: 100%;
    width: 100%;
    /* Changed to cover/contain */
    object-fit: contain;
    position: absolute;
    /* Stack images */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.product-image img.active {
    opacity: 1;
    z-index: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-slider {
        height: 70vh;
        /* Reduce height on tablets */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* Header & Nav */
    .navbar {
        padding: 1rem 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        /* Adjusted for header height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--primary-color);
        font-size: 1.8rem;
    }

    /* Hero */
    .hero-slider {
        height: 80vh;
        /* Better mobile height */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-nav.prev-hero {
        left: 10px;
    }

    .hero-nav.next-hero {
        right: 10px;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
        /* Reduce padding */
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: 1.5rem;
    }

    .product-grid .product-card {
        max-width: 100%;
        /* Override the global max-width for grid items */
        width: 100%;
    }

    /* Service Gallery */
    .service-gallery {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 1.5rem;
    }

    .service-item {
        height: 200px;
        /* Slightly shorter items */
    }

    /* Footer */
    .footer-content {
        gap: 2rem;
        text-align: center;
        /* Center footer on mobile */
    }
}

@media (max-width: 480px) {

    /* Mobile Fine Tuning */
    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        /* Full width buttons on mobile */
        margin-bottom: 0.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 2rem;
    }

    .btn-outline {
        margin-left: 0;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols for icons */
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .hero-nav {
        display: none;
        /* Hide arrows on very small screens, rely on swipe (if implemented) or auto-play */
    }
}


/* --- Editorial Redesign V2 Styles --- */

/* Typography & General */
.editorial-hero {
    text-align: center;
    padding: 6rem 1rem;
    background-color: #1a2a3a;
    color: white;
}

.editorial-hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    /* Lighter weight for elegance */
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: white;
}

.editorial-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Split Section Layout */
.split-section {
    display: flex;
    align-items: center;
    min-height: 600px;
    background: #fff;
    overflow: hidden;
}

.split-section.alt {
    flex-direction: row-reverse;
    background-color: #f9f9f9;
}

.split-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.split-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.split-image {
    flex: 1;
    height: 600px;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Full Width Gallery Wrapper */
.gallery-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #fff;
}

/* Horizontal Scroll Gallery */
.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 2rem 5%;
    /* Safer for responsiveness */
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-scroll-item {
    flex: 0 0 auto;
    width: 320px;
    /* Fixed uniformly */
    height: 450px;
    /* Uniform height */
    margin-right: 1rem;
    position: relative;
}

.gallery-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

/* Carousel Navigation Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #333;
}

.scroll-btn:hover {
    background: #1a2a3a;
    color: white;
}

.scroll-btn.left {
    left: 2rem;
}

.scroll-btn.right {
    right: 2rem;
}

/* Grid Layouts */
.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem 4rem;
    background: #f9f9f9;
}

.grid-item-square {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.grid-item-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Full Width Masonry */
.editorial-masonry {
    column-count: 4;
    column-gap: 1rem;
    padding: 1rem;
}

.editorial-masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.editorial-masonry-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

/* Responsive Editorial */
@media (max-width: 900px) {

    .split-section,
    .split-section.alt {
        flex-direction: column;
        height: auto;
    }

    .split-image {
        width: 100%;
        height: 400px;
    }

    .split-content {
        padding: 3rem 1.5rem;
    }

    .grid-3x3 {
        padding: 1rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .editorial-masonry {
        column-count: 2;
    }
}

/* Navigation Button Style */
.download-btn {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.download-btn:hover {
    background-color: #e65c00;
    color: var(--white);
}

.nav-links {
    align-items: center;
}