﻿/* ===================================
  SAMSUNG-INSPIRED MINIMAL DESIGN SYSTEM
   =================================== */
:root {
    /* Minimal Color Palette - Samsung Style */
    --black: #001e3c;
    --dark-blue: #0a1929;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --accent: #1976d2;
    --accent-dark: #0d47a1;

    /* Cyan to Blue Gradient */
    --gradient-primary: linear-gradient(135deg, #00C8F2 0%, #003FAD 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 200, 242, 0.8) 0%, rgba(0, 63, 173, 0.8) 100%);

    /* Typography - Ultra Clean */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Minimal Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;

    /* Border & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Subtle Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);

    /* Smooth Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-carousel: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-blue);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Wider layout for desktop on all pages */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .nav-container {
        max-width: 1600px;
    }
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ===================================
   Minimal Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1400px;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    transition: color var(--transition-base);
}

.navbar.scrolled .logo h2 {
    color: var(--dark-blue);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color var(--transition-base);
}

.navbar.scrolled .logo-subtitle {
    color: var(--gray-500);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: all var(--transition-base);
}

.navbar.scrolled .logo img {
    height: 45px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled .nav-toggle span {
    background: var(--black);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link {
    color: var(--dark-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    /* Thicker line */
    background: var(--white);
    transition: width var(--transition-base);
}

.navbar.scrolled .nav-link::after {
    background: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    font-weight: 700;
    /* Bold text */
}

/* ===================================
   SAMSUNG-STYLE HERO CAROUSEL
   =================================== */
.hero-carousel {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;

    margin: 0;
    padding: 0;
}

/* Responsive Utilities */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Specific override for flex containers */
    div.mobile-only {
        display: block !important;
    }
}

/* Mobile Controls Row (Side by Side) */
.mobile-controls-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.mobile-control-wrapper {
    flex: 1;
    /* Equal 50% width */
    min-width: 0;
}

.mobile-control-select {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.85rem;
    color: var(--dark-blue);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230a1929' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mobile-control-select:focus {
    outline: none;
    border-color: var(--accent);
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-carousel), visibility var(--transition-carousel);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    background-size: cover !important;
    background-position: center !important;
    transition: transform 8s ease-out;
}

.carousel-slide.active .slide-background {
    transform: scale(1);
}

/* Video Background Styling */
.video-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Hide video play button */
.video-background video::-webkit-media-controls {
    display: none !important;
}

.video-background video::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-background video::-webkit-media-controls-panel {
    display: none !important;
}

.video-background video::-webkit-media-controls-play-button {
    display: none !important;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.slide-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: center;
    z-index: 2;
    padding: var(--spacing-lg);
}

.slide-text {
    text-align: center;
    color: var(--white);
    width: 100%;
    /* Force full width */
    max-width: 100%;
    padding: 0 var(--spacing-sm);
    /* Reduce side padding for more text space */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.carousel-slide.active .slide-text {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: clamp(1.19rem, 2.72vw, 2.04rem);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.slide-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Slide Up Animation */
.animated-text-wrapper {
    position: relative;
    height: 150px;
    /* Increased height further */
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    /* Add internal padding */
}

.hero-text-display {
    font-size: clamp(0.9rem, 3.5vw, 2.8rem);
    /* Lower minimum size for mobile, kept max size */
    font-weight: 700;
    color: var(--white);
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.4;
    /* Ensure good line height */
    opacity: 0;
    transform: translateY(30px);
    /* Larger start offset for dramatic effect, fits in 150px */
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smoother cubic bezier */
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    white-space: nowrap;
    /* Force one line */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Added subtle shadow for readability */
}

.hero-text-display.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-text-display.exit {
    opacity: 0;
    transform: translateY(-30px);
}


/* Scroll Indicator */
.scroll-indicator {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: fadeInUpSimple 1s ease 1s both;
    transition: opacity 0.5s ease;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

.scroll-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.slide-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.carousel-prev {
    left: var(--spacing-md);
}

.carousel-next {
    right: var(--spacing-md);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.dot.active {
    width: 32px;
    border-radius: 4px;
    background: var(--white);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: var(--white);
    width: 0;
    transition: width 5s linear;
}

.progress-bar.active {
    width: 100%;
}

/* ===================================
   Minimal Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--gray-100);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    color: var(--black);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
}

.btn-block {
    width: 100%;
}

/* ===================================
   Minimal Section Styles
   =================================== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.section-title {
    margin-bottom: var(--spacing-md);
    color: var(--dark-blue);
}

.section-description {
    color: var(--gray-500);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   About Page Hero
   =================================== */
.about-hero {
    position: relative;
    height: 33vh;
    min-height: 300px;
    background-image: url('images/footer.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 0;
}

@media (max-width: 768px) {
    .products-hero {
        height: 25vh !important;
        min-height: 180px !important;
    }

    .products-tabs.mobile-only {
        display: flex !important;
        gap: 1rem;
    }

    .mobile-controls-row.mobile-only {
        display: flex !important;
    }
}



.about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--black);
    /* Dark because base gradient is white-ish at bottom, or maybe white if overlay is dark? */
    /* Request was: "white about eaclc with big fonts" AND "transparency gradient at bottom".
       Usually hero text is white on dark image. 
       If I use a white gradient at bottom (fade to page bg), text should probably be dark or have shadow if it sits low.
       BUT request asked for WHITE text.
       So I should probably use a DARK gradient at the bottom for contrast if it sits there, or maybe the gradient is just for style.
       Wait, "transparency gradient at the bottom" often implies fading the IMAGE to transparent (showing white bg behind?).
       Let's try a dark overlay to ensure white text pops, and a fade to white at bottom?
       Actually, standard "hero" usually implies dark overlay for white text.
    */
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Adjust overlay to support white text but fade at bottom */
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* General darken */
    z-index: 0;
}

/* The "smooth transparency gradient at the bottom" -> Usually means fading to the next section color (White) */


/* ===================================
   Redesigned About Section
   =================================== */
.about {
    background: var(--white);
    padding: var(--spacing-2xl) 0;
}

/* ===================================
   Refined About Intro Block (Vertical Stack)
   =================================== */
.about-intro-block {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    /* Minimal spacing after intro */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.about-intro-block .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-xs);
    /* Minimal spacing */
    line-height: 1.2;
}

.about-intro-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-sm);
    /* Minimal spacing */
}

.about-description {
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.6;
    /* Tighter */
    margin-bottom: var(--spacing-xs);
    /* Minimal spacing */
}

.about-description:last-child {
    margin-bottom: 0;
}

/* Slideshow Container */
.about-slideshow-wrapper {
    width: 100%;
    margin-top: var(--spacing-sm);
    /* Minimal spacing */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Reuse existing slideshow inner styles */
.about-slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    /* Taller for full width impact */
    background: var(--gray-100);
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
    z-index: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 200, 242, 0.1) 0%, rgba(0, 63, 173, 0.15) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ===================================
   Single Column Content Sections
   =================================== */
.about-single-column {
    max-width: 800px;
    margin: var(--spacing-md) auto;
    /* Further reduced */
}

.content-section {
    margin-bottom: 0.25rem;
    /* Absolute minimal spacing */
    text-align: center;
}

.content-section h3 {
    font-size: 1.75rem;
    color: var(--dark-blue);
    margin-top: 0;
    /* Remove top margin - this was causing the large gap! */
    margin-bottom: var(--spacing-xs);
    /* Further reduced to xs */
    font-weight: 600;
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    /* Tighter line height */
    color: var(--gray-600);
    margin-bottom: 0;
    /* Remove bottom margin from paragraphs */
}

.content-section strong {
    color: var(--accent);
    font-weight: 700;
}

.content-section-highlight {
    background: var(--dark-blue);
    color: var(--white);
    padding: var(--spacing-lg);
    /* Further reduced */
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--spacing-lg);
    /* Further reduced */
    background-image: linear-gradient(135deg, var(--dark-blue) 0%, var(--black) 100%);
}

.content-section-highlight h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    /* Minimal spacing */
    color: var(--white);
    font-weight: 600;
}

.content-section-highlight p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    /* Tighter */
    margin-bottom: var(--spacing-xs);
    /* Minimal spacing */
}

.content-section-highlight .tagline {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--spacing-sm);
    /* Minimal spacing */
    margin-bottom: 0;
}

/* Features Grid */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: transparent;
    /* Remove background */
    padding: var(--spacing-md) 0;
    /* Remove side padding */
    border-radius: 0;
    text-align: center;
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-3px);
    /* Subtle lift */
}

.feature-icon {
    font-size: 3rem;
    /* Larger icons */
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-card h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-blue);
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Details Grid (3 Cols) */
.about-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

.detail-column {
    background: transparent;
    /* Remove background */
    border: none;
    /* Remove border */
    padding: 0;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.detail-title {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: var(--spacing-lg);
    padding-bottom: 0;
    border-bottom: none;
    /* Remove border */
    display: block;
    font-weight: 600;
}

.detail-column>p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.detail-list {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding-left: 0;
    flex-grow: 1;
}

.detail-list li {
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding: 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Optional: Add a subtle separator or icon for centered items if needed, 
   but clean text often works best for centered cards. 
   If user wants bullets, we'd need a different approach. */

.detail-note {
    font-style: italic;
    color: var(--gray-500);
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
}

/* Gateway Banner */
.about-gateway-banner {
    background: var(--dark-blue);
    color: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    /* Centered is okay for a banner/callout */
    margin-top: var(--spacing-2xl);
    background-image: linear-gradient(135deg, var(--dark-blue) 0%, var(--black) 100%);
}

.gateway-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.gateway-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    opacity: 0.9;
}

.gateway-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding-right: 0;
    }

    .about-slideshow {
        height: 300px;
    }
}

/* Brand logos section on homepage */
.brands-section {
    padding: 0;
    margin-top: -0px;
    position: relative;
    z-index: 5;
}

.shops-carousel-section {
    margin-top: 0;
    padding-top: 0;
}

.shops-carousel {
    overflow: hidden;
    padding: var(--spacing-lg) 0;
    /* Fade effect on sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.shops-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll-right-to-left 60s linear infinite;
}

.brand-logo {
    height: 63px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.brand-logo:hover {
    transform: scale(1.1);
}

/* Animation for Right to Left scrolling */
@keyframes scroll-right-to-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-set {
    height: 80px;
    width: auto;
    margin: 0 var(--spacing-lg);
    flex-shrink: 0;
    filter: grayscale(1) opacity(0.6);
    transition: all var(--transition-base);
}

.logo-set:hover {
    filter: grayscale(0) opacity(1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-hero-image {
        height: 400px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-hero-image {
        height: 300px;
    }
}

/* ===================================
   Featured Shops Section
   =================================== */
.featured-shops {
    background: var(--gray-100);
    padding: var(--spacing-md) 0 var(--spacing-md) 0;
}

.featured-shops .section-header {
    margin-bottom: 0.25rem;
    text-align: left;
}

.featured-shops-scroll-wrapper {
    position: relative;
    margin-top: 0.25rem;
}

.featured-shops-grid {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.featured-shops-grid::-webkit-scrollbar {
    display: none;
}

/* Navigation Arrow Buttons */
.scroll-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 63, 173, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
}

.scroll-arrow-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-arrow-btn:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.scroll-arrow-btn:hover svg {
    color: var(--white);
}

.scroll-arrow-btn svg {
    width: 24px;
    height: 24px;
    color: var(--dark-blue);
    transition: color var(--transition-base);
}

.scroll-arrow-left {
    left: -25px;
}

.scroll-arrow-right {
    right: -25px;
}

/* Shop Card - Square Shape */
.shop-card {
    position: relative;
    min-width: 300px;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Card Background Image */
.shop-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.shop-card:hover .shop-card-bg {
    transform: scale(1.1);
}

/* Card Overlay */
.shop-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    transition: background var(--transition-base);
}

.shop-card:hover .shop-card-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.85) 100%);
}

/* Card Content - Flexbox layout */
.shop-card-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-sm);
    z-index: 2;
}

/* Shop Logo - Top Left */
.shop-logo {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    transition: all var(--transition-base);
    margin: 0;
    padding: 0;
}

.shop-card:hover .shop-logo {
    transform: scale(1.1);
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Shop Info - Bottom Left */
.shop-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

/* Shop Buttons Container */
.shop-buttons {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

/* Shop Name */
.shop-name {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align: left;
}

/* View Button */
.btn-view {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-weight: 600;
    font-size: 0.7rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-view:hover {
    background: var(--white);
    color: var(--dark-blue);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Secondary Button Variant */
.btn-view.btn-secondary {
    background: rgba(0, 63, 173, 0.3);
    border-color: rgba(0, 200, 242, 0.6);
}

.btn-view.btn-secondary:hover {
    background: rgba(0, 200, 242, 0.9);
    color: var(--white);
    border-color: rgba(0, 200, 242, 1);
}

/* ===================================
   Panoramic Ad Slideshow Section
   =================================== */
.panoramic-ads {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.panoramic-ads-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

@media (min-width: 1600px) {
    .panoramic-ads-wrapper {
        height: 450px;
    }
}

.panoramic-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--gray-100);
    background-image: var(--desktop-bg);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.panoramic-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Device-specific ad visibility */
/* Hide mobile-only ads on desktop (screens wider than 640px) */
.panoramic-slide.mobile-only {
    display: none;
}

/* Responsive heights for panoramic ads */
@media (max-width: 968px) {
    .panoramic-ads-wrapper {
        height: 180px;
    }
}

@media (max-width: 640px) {
    .panoramic-ads {
        margin-top: 1.5rem;
    }

    .panoramic-ads-wrapper {
        height: 200px;
        /* Taller for mobile portrait images */
    }

    .panoramic-slide {
        background-image: var(--mobile-bg, var(--desktop-bg));
        background-size: cover;
    }

    /* Show mobile-only ads on mobile */
    .panoramic-slide.mobile-only {
        display: block;
    }

    /* Hide desktop-only ads on mobile */
    .panoramic-slide.desktop-only {
        display: none;
    }

    /* Reduce space between ads and blog section */
    .featured-blogs {
        margin-top: 0.5rem !important;
        padding-top: 2rem !important;
    }

    /* Reduce gap between blog cards on mobile */
    .blog-grid {
        gap: 0.85rem !important;
    }

    .blog-card {
        margin-bottom: 0.5rem;
    }

    /* Show only 3 blog posts on mobile */
    .blog-card:nth-child(n+4) {
        display: none;
    }

    /* Brand logos - smaller on mobile with reduced spacing */
    .brands-section {
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .shops-carousel {
        padding: 15px 0 !important;
    }

    .shops-track {
        gap: 1.5rem;
        animation-duration: 30s;
    }

    .brand-logo {
        height: 40px !important;
    }
}

/* Responsive Design for Featured Shops */
@media (max-width: 968px) {
    .shop-card {
        min-width: 260px;
        width: 260px;
        height: 260px;
    }

    .shop-logo {
        width: 50px;
        height: 50px;
    }

    .shop-name {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .featured-shops {
        padding: var(--spacing-sm) 0;
    }

    .shop-card {
        min-width: 240px;
        width: 240px;
        height: 240px;
    }

    .shop-logo {
        width: 45px;
        height: 45px;
    }

    .shop-name {
        font-size: 1rem;
    }

    .btn-view {
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
    }

    /* Smaller product cards on mobile */
    .featured-products .shop-card.product-card {
        min-width: 130px;
        width: 130px;
        height: auto;
    }

    /* Reduce gap between product cards */
    .featured-products .featured-shops-grid {
        gap: 0.5rem;
    }

    .featured-products .shop-card-bg {
        background-size: cover !important;
        background-position: center !important;
        width: 130px !important;
        height: 130px !important;
    }

    .featured-products .shop-name {
        font-size: 0.75rem;
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.15rem !important;
    }

    .featured-products .product-price {
        font-size: 0.7rem;
        margin-bottom: 0.25rem !important;
    }

    .featured-products .btn-view {
        padding: 0.3rem 0.5rem;
        font-size: 0.5rem;
    }

    /* Already handled above */

    /* Reduce spacing in product card content */
    .featured-products .shop-card-content {
        padding: 0.4rem !important;
    }

    .featured-products .product-info {
        gap: 0.15rem;
    }
}

/* ===================================
   Featured Blog Posts Section
   =================================== */
.featured-blogs {
    background: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-md) 0;
}

.featured-blogs .section-header {
    margin-bottom: 0.5rem;
    text-align: left;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

.blog-card:hover {
    border-color: var(--dark-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.blog-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 var(--spacing-sm) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-read-more {
    display: inline-block;
    color: var(--dark-blue);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.blog-read-more:hover {
    color: var(--gray-700);
    transform: translateX(4px);
}

/* Responsive Design for Blog Grid */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 180px;
    }
}

/* ===================================
   Shop Rentals Section - Enhanced CTA
   =================================== */
.rentals-cta {
    position: relative;
    background: var(--white);
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
    border-top: 1px solid var(--gray-200);
}

.rentals-bg-overlay {
    display: none;
}

.rentals-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.rentals-left {
    color: var(--dark-blue);
}

.rentals-left .section-tag {
    background: rgba(0, 200, 242, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 200, 242, 0.2);
}

.rentals-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: var(--spacing-md) 0;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rentals-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.btn-rentals-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 63, 173, 0.3);
}

.btn-rentals-cta svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.btn-rentals-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 63, 173, 0.4);
}

.btn-rentals-cta:hover svg {
    transform: translateX(5px);
}

/* Stats Cards */
.rentals-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: rgba(0, 200, 242, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 63, 173, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Rentals Section Responsive */
@media (max-width: 968px) {
    .rentals-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .rentals-left {
        order: 1;
    }

    .rentals-right {
        order: 2;
    }

    .rentals-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .rentals-cta {
        padding: var(--spacing-md) 0;
    }

    .rentals-content-wrapper {
        gap: 1rem;
    }

    .rentals-title {
        font-size: 1.35rem;
        margin: 0.5rem 0;
    }

    .rentals-desc {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .btn-rentals-cta {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .rentals-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .stat-card {
        padding: 0.75rem 0.4rem;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 0.4rem;
        padding: 6px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

/* ===================================
   Features Section
   =================================== */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-lg);
    border: 1px solid var(--gray-200);
    transition: border-color var(--transition-base);
}

.feature-item:hover {
    border-color: var(--dark-blue);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    flex-shrink: 0;
}

.feature-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-info p {
    color: var(--gray-600);
}

.feature-image-grid {
    display: grid;
    gap: var(--spacing-md);
}

.feature-img-large,
.feature-img-small {
    background-size: cover;
    background-position: center;
    border: 1px solid var(--gray-200);
}

.feature-img-large {
    height: 400px;
}

.feature-img-small {
    height: 250px;
}

/* ===================================
   Sellers Section
   =================================== */
.sellers {
    background: var(--gray-100);
    padding-bottom: 0.01rem;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.seller-category {
    position: relative;
    overflow: hidden;
    height: 500px;
    border: 1px solid var(--gray-200);
    transition: transform var(--transition-base);
}

.seller-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.seller-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.seller-category:hover .seller-image {
    transform: scale(1.05);
}

.native-sellers {
    background-image: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/native_sellers_1765617608234.png');
}

.international-sellers {
    background-image: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/sellers_showcase_1765617567064.png');
}

.seller-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}

.seller-overlay h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 2rem;
}

.seller-overlay p {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.seller-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.seller-features li {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 400;
}

/* ===================================
   Rentals Section
   =================================== */
.rentals {
    background: var(--white);
}

.rentals-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.rentals-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
}

.rentals-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border: 1px solid var(--gray-200);
    transition: border-color var(--transition-base);
}

.benefit-item:hover {
    border-color: var(--dark-blue);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    color: var(--dark-blue);
}

.benefit-item span {
    font-weight: 400;
    color: var(--gray-700);
}

.rental-image {
    height: 500px;
    background: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/shop_rental_1765617589517.png') center/cover;
    border: 1px solid var(--gray-200);
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    background: var(--gray-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform var(--transition-base);
    border: 1px solid var(--gray-200);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item-1 {
    background-image: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/shopping_mall_hero_1765617545526.png');
}

.gallery-item-2 {
    background-image: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/sellers_showcase_1765617567064.png');
}

.gallery-item-3 {
    background-image: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/native_sellers_1765617608234.png');
}

.gallery-item-4 {
    background-image: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/shop_rental_1765617589517.png');
}

.gallery-item-5 {
    background-image: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/shopping_mall_hero_1765617545526.png');
}

.gallery-item-6 {
    background-image: url('C:/Users/admin/.gemini/antigravity/brain/997afb1f-63b8-4c7f-aefc-eaa0052931e6/native_sellers_1765617608234.png');
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-item p {
    color: var(--gray-600);
}

.contact-form {
    background: var(--gray-100);
    padding: var(--spacing-xl);
    border: 1px solid var(--gray-200);
}

.contact-form h3 {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   Minimal Footer
   =================================== */
.footer {
    background: transparent;
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-col p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--white);
    border-color: var(--white);
}

.social-links a:hover svg {
    fill: var(--dark-blue);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
    transition: fill var(--transition-base);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-700);
    background: var(--gray-900);
    color: var(--white);
    font-family: var(--font-primary);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--dark-blue);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-base);
}

.newsletter-form button:hover {
    background: var(--gray-200);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-text {
        padding-right: 0;
    }

    .about-slideshow {
        height: 400px;
    }

    .features-grid,
    .rentals-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-xl) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: var(--dark-blue);
    }

    .nav-menu .nav-link.active {
        color: var(--accent) !important;
        /* Blue highlight for active mobile tab */
        font-weight: 700;
    }

    .sellers-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: var(--spacing-sm);
    }

    .carousel-next {
        right: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
    }

    .seller-features {
        grid-template-columns: 1fr;
    }

    /* Sellers section mobile styles */
    .sellers-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .sellers {
        padding-bottom: 2rem !important;
        padding-top: 1rem !important;
    }

    .sellers .sellers-grid {
        margin-bottom: 0 !important;
    }

    .seller-category {
        height: 280px;
    }

    .seller-overlay {
        padding: 1rem;
    }

    .seller-overlay h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .seller-overlay p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .seller-features li {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .rentals-benefits {
        grid-template-columns: 1fr;
    }

    .animated-text-wrapper {
        height: 50px;
    }

    .text-item {
        font-size: 0.95rem;
    }

    .scroll-indicator {
        margin-bottom: 20px;
        gap: 8px;
    }

    .scroll-text {
        font-size: 0.65rem;
    }
}

/* ===================================
   Section Styling Overrides
   =================================== */
/* Sellers Section - Match Featured Blogs Styling */
.sellers .section-header {
    margin-bottom: 0.5rem;
    text-align: left;
}

.sellers {
    padding-top: var(--spacing-md);
}

/* Footer with Background Image */
footer.footer {
    background-image: url('images/footer.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

/* ===================================
   Featured Products Section
   =================================== */
/* ===================================
   Featured Products Section
   =================================== */
.featured-products {
    background: var(--white);
    padding: var(--spacing-md) 0 var(--spacing-md) 0;
}

/* Product Card Specific Styles */
.product-card {
    width: 240px;
    height: 380px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.product-card .shop-card-bg {
    position: relative;
    height: 200px;
    /* Fixed height for image */
    width: 100%;
    inset: auto;
    transform: none !important;
    /* Disable zoom effect on bg */
}

/* Re-enable hover zoom on the background image itself if needed, 
   but simplistic approach is safer first. 
   Let's keep the image simple for now. */

.product-card .shop-card-overlay {
    background: none !important;
    display: none;
}

.product-card .shop-card-content {
    position: relative;
    height: auto;
    flex: 1;
    padding: var(--spacing-sm);
    background: var(--white);
    justify-content: flex-start;
}

/* Truncate product names to ~30 characters on desktop */
.featured-products .product-card .shop-name {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dark-blue);
    text-shadow: none;
}

/* See All Products Card */
.see-all-card {
    text-decoration: none;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.see-all-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.see-all-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--white);
}

.see-all-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
}

.see-all-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
}

.see-all-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.see-all-content p {
    font-size: 0.8rem;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .see-all-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0.5rem;
    }

    .see-all-content h3 {
        font-size: 0.75rem;
    }

    .see-all-content p {
        font-size: 0.65rem;
    }
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.product-card .shop-name {
    color: var(--dark-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 var(--spacing-md) 0;
    text-shadow: none;
}

.product-card .shop-buttons {
    margin-top: auto;
    width: 100%;
}

.product-card .btn-view {
    width: 100%;
    text-align: center;
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 0;
    font-size: 0.85rem;
}

.product-card .btn-view:hover {
    background: var(--gray-700);
    transform: none;
    box-shadow: none;
}

/* ===================================
   Products Page - Jiji.co.tz Inspired Layout
   =================================== */

/* Products Hero */
.products-hero {
    margin-top: 0;
}

/* Products Page Layout */
.products-page {
    padding: var(--spacing-lg) 0;
    background: var(--gray-100);
}

.products-page .container {
    max-width: 1600px;
    padding: 0 var(--spacing-lg);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .products-page {
        padding-top: var(--spacing-sm);
        /* Reduce top space */
    }

    .products-page .container {
        padding: 0 1.25rem;
        /* Increased padding */
    }
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Category Sidebar */
.category-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    padding: var(--spacing-md);
    background: var(--gradient-primary);
    color: var(--white);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.category-nav {
    display: flex;
    flex-direction: column;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--dark-blue);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.category-item:hover {
    background: var(--gray-100);
    padding-left: calc(var(--spacing-md) + 8px);
}

.category-item.active {
    background: var(--gray-100);
    font-weight: 600;
    border-left: 4px solid var(--accent);
}

.category-name {
    font-size: 0.95rem;
}

.category-count {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Main Products Area */
.products-main {
    background: transparent;
}

/* Search and Filter Bar */
.search-filter-bar {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

/* Search Button Icon (Replaces absolute svg) */
.search-button-icon {
    position: absolute;
    right: 0.5rem;
    /* Right aligned */
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    color: var(--gray-400);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-button-icon svg {
    width: 20px;
    height: 20px;
}

/* Search Icon (for sellers page and other uses) */
.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.85rem 3rem 0.85rem 1rem;
    /* Padding-right for icon, padding-left standard */
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.filter-controls {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-select {
    padding: 0.85rem var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: var(--spacing-xl);
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: var(--spacing-xl);
}

.shops-grid .shop-card {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1/1;
}

.shops-grid .shop-card .shop-logo {
    width: 60px;
    height: 60px;
}

/* Product Card Link - Remove underlines */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover {
    text-decoration: none;
}

/* Product Card - Marketplace Style */
.products-grid .product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.products-grid .product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.products-grid .product-card {
    width: 100%;
    min-width: 0;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-details {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin: var(--spacing-xs) 0;
}

.product-location,
.product-shop {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: var(--spacing-xs) 0;
}

.product-location::before {
    content: "📍";
    font-size: 0.75rem;
}

.product-shop::before {
    content: "🏪";
    font-size: 0.75rem;
}

.product-date {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: auto;
    padding-top: var(--spacing-xs);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem var(--spacing-md);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all var(--transition-base);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--accent);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.page-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all var(--transition-base);
}

.page-number:hover {
    background: var(--gray-100);
    border-color: var(--accent);
}

.page-number.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.pagination-dots {
    color: var(--gray-400);
    padding: 0 var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 1400px) {

    .products-grid,
    .shops-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 240px 1fr;
        gap: var(--spacing-md);
    }

    .products-grid,
    .shops-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: none;
        position: relative;
        top: 0;
        width: 100%;
        max-width: 100%;
    }

    /* Reduce Hero Height on Mobile and Align Tabs */
    .about-hero.products-hero {
        min-height: 180px;
        /* Slight increase to fit tabs */
        height: 25vh;
        display: flex;
        align-items: flex-end;
        /* Align content to bottom */
        padding-bottom: 0;
        position: relative;
    }

    .about-hero.products-hero .about-hero-content {
        width: 100%;
        padding-bottom: 0;
    }

    .about-hero.products-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        /* Space between title and tabs */
    }

    /* Mobile Tabs in Header */
    .products-tabs.mobile-only {
        margin-top: 0 !important;
        background: transparent;
        /* No dark background */
        width: 100%;
    }

    .products-tabs.mobile-only .tab-btn {
        background: transparent !important;
        border: none;
    }

    .products-tabs.mobile-only .tab-btn.active {
        background: transparent !important;
    }

    .products-grid,
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        max-width: 100%;
    }

    .products-grid .product-card,
    .shops-grid .shop-card {
        min-width: 0 !important;
        width: 100% !important;
    }

    .search-filter-bar {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }

    .filter-select {
        width: 100%;
    }

    .pagination-btn {
        padding: 0.6rem var(--spacing-sm);
        font-size: 0.85rem;
    }

    .page-number {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .product-details {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {

    .products-grid,
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-shop,
    .product-date {
        font-size: 0.75rem;
    }

    .product-details {
        padding: 0.75rem;
    }
}

/* Products/Shops Tabs */
.products-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-200);
    flex-wrap: wrap;
    /* Allow wrapping if needed */
}

.tab-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--dark-blue);
    background: var(--gray-100);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
    .products-tabs {
        width: 100%;
        margin-bottom: var(--spacing-sm);
        /* Reduce space below tabs */
    }

    .tab-btn {
        flex: 1;
        padding: 0.75rem;
        /* Reduce tab size slightly */
        font-size: 0.9rem;
        text-align: center;
        width: 50%;
        /* Fallback */
    }

    /* Compact Mobile Inputs */
    .mobile-category-select,
    .search-filter-bar {
        margin-bottom: 0.5rem;
        /* Tighter spacing */
        gap: 0.5rem;
    }

    .mobile-cat-dropdown,
    .search-input,
    .filter-select {
        padding: 0.5rem 0.75rem;
        /* Smaller inputs */
        font-size: 0.9rem;
        height: auto;
    }
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

/* Shops Grid (uses same shop-card styles from homepage) */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
    gap: 1rem;
    margin-bottom: var(--spacing-xl);
}

.shops-grid .shop-card {
    min-height: 380px;
    width: 100%;
}

@media (max-width: 1400px) {
    .shops-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .shops-grid {
        grid-template-columns: 1fr;
    }

    .shops-grid .shop-card {
        min-height: 320px;
    }
}

/* Default Image Styling - For shops without custom shop image */
.shop-card.default-image .shop-card-bg {
    background-size: 200%;
    background-repeat: no-repeat;
    background-color: #0a1628;
}

.shop-card.default-image:hover .shop-card-bg {
    transform: scale(1.05);
}

/* List View Mode */
.shops-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 1rem;
}

.shops-grid.list-view .shop-card {
    display: flex;
    flex-direction: row;
    min-height: 180px;
    height: 180px;
    width: 100%;
}

.shops-grid.list-view .shop-card-bg {
    width: 280px;
    min-width: 280px;
    height: 100%;
    position: relative;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.shops-grid.list-view .shop-card-overlay {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.shops-grid.list-view .shop-card-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border: 1px solid var(--gray-200);
    border-left: none;
}

.shops-grid.list-view .shop-logo {
    width: 70px;
    height: 70px;
    margin-right: var(--spacing-lg);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 8px;
}

.shops-grid.list-view .shop-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.shops-grid.list-view .shop-name {
    color: var(--dark-blue);
    text-shadow: none;
    font-size: 1.25rem;
}

.shops-grid.list-view .btn-view {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
}

.shops-grid.list-view .btn-view:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .shops-grid.list-view .shop-card {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .shops-grid.list-view .shop-card-bg {
        width: 100%;
        min-width: 100%;
        height: 200px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .shops-grid.list-view .shop-card-overlay {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .shops-grid.list-view .shop-card-content {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        border: 1px solid var(--gray-200);
        border-top: none;
    }
}

/* ===================================
   Individual Shop Page Styles
   =================================== */

/* Shop Header with Cover */
.shop-header {
    position: relative;
    height: 420px;
    /* Increased to account for navbar */
    margin-top: 0;
    /* Extend to top of page */
    overflow: hidden;
}

.shop-cover-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shop-cover-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
}

.shop-cover-slide.active {
    transform: translateX(0);
}

.shop-cover-slide.exit {
    transform: translateX(-100%);
}

/* Disable slideshow animation when only one image */
.shop-cover-slideshow.no-animation .shop-cover-slide {
    transform: translateX(0) !important;
    transition: none !important;
}

.shop-cover-slideshow.no-animation .shop-cover-slide.active {
    transform: translateX(0) !important;
}

.shop-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.shop-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.shop-profile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-lg);
    z-index: 2;
}

.shop-logo-large {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: var(--white);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-logo-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-profile-info {
    flex-grow: 1;
    color: var(--white);
}

.shop-profile-name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-profile-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.shop-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.shop-profile-stats .stat-item {
    font-size: 0.9rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Shop Info Bar - Redesigned */
.shop-info-bar {
    background: transparent;
    padding: 0.5rem 0;
}

.shop-contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    margin: 0 auto;
}

/* Contact Rotator (LEFT side) - Animated one at a time */
.contact-rotator {
    display: flex;
    align-items: center;
    position: relative;
    height: 22px;
    min-width: 160px;
    overflow: hidden;
}

.contact-slide {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 6s infinite;
}

.contact-slide:nth-child(1) {
    animation-delay: 0s;
}

.contact-slide:nth-child(2) {
    animation-delay: 3s;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    10% {
        opacity: 1;
        transform: translateX(0);
    }

    40% {
        opacity: 1;
        transform: translateX(0);
    }

    50% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Single contact - no animation needed */
.contact-rotator:has(.contact-slide:only-child) .contact-slide {
    position: relative;
    opacity: 1;
    transform: none;
    animation: none;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.contact-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
}

/* Social Links (RIGHT side) */
.shop-social-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 1rem;
    border-left: 1px solid var(--gray-300);
}

/* Social Button Styles */

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-btn svg {
    width: 16px;
    height: 16px;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.twitter {
    background: #000;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.tiktok {
    background: #000;
}

/* Shop Products Page - inherits from products-page */
.shop-products-page {
    padding-top: var(--spacing-xl);
}

/* Responsive for Shop Page */
@media (max-width: 768px) {
    .shop-header {
        height: 200px;
        min-height: 200px;
        padding-top: 0;
    }

    .shop-profile {
        position: absolute;
        bottom: 0;
        left: 10px;
        right: 0;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 1rem;
        gap: 0.75rem;
    }

    .shop-logo-large {
        width: 56px;
        height: 56px;
        padding: 0.4rem;
        flex-shrink: 0;
    }

    .shop-profile-info {
        flex: 1;
        min-width: 0;
    }

    .shop-profile-name {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .shop-profile-tagline {
        font-size: 0.8rem;
        margin-bottom: 0;
        opacity: 0.9;
    }

    /* Hide stats in header on mobile - show in info bar instead */
    .shop-profile-stats {
        display: none;
    }

    /* Mobile contact bar adjustments */
    .shop-contact-bar {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
        max-width: 100%;
        width: 100%;
        justify-content: space-between;
        border-radius: 12px;
    }

    .contact-rotator {
        flex: 1;
        min-width: 0;
        height: 20px;
    }

    .contact-text {
        font-size: 0.75rem;
    }

    .contact-icon svg {
        width: 14px;
        height: 14px;
    }

    .shop-social-inline {
        padding-left: 0.75rem;
        gap: 0.3rem;
    }

    .social-btn {
        width: 26px;
        height: 26px;
    }

    .social-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Reduce products section padding on mobile */
    .shop-products-page {
        padding-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .shop-header {
        padding-top: 55px;
    }

    .shop-profile {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .shop-logo-large {
        width: 48px;
        height: 48px;
        padding: 0.3rem;
    }

    .shop-profile-name {
        font-size: 1rem;
    }

    .shop-profile-tagline {
        font-size: 0.75rem;
    }

    /* Smaller contact bar on phone */
    .shop-contact-bar {
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }

    .contact-rotator {
        flex: 1;
        min-width: 0;
        height: 18px;
    }

    .contact-icon svg {
        width: 12px;
        height: 12px;
    }

    .contact-text {
        font-size: 0.7rem;
    }

    .shop-social-inline {
        padding-left: 0.5rem;
        gap: 0.25rem;
    }

    .social-btn {
        width: 22px;
        height: 22px;
    }

    .social-btn svg {
        width: 10px;
        height: 10px;
    }
}

/* ===================================
   Gallery Page Styles
   =================================== */
.gallery-hero {
    margin-top: 0;
}

.gallery-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

.gallery-page {
    padding: 1rem 0 var(--spacing-xl) 0;
    background: var(--white);
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Gallery */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 220px;
    }

    /* Horizontal scrollable filter tabs */
    .gallery-filter {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .gallery-item {
        height: 150px;
    }
}

/* ===================================
   Contact Page Styles
   =================================== */
.contact-page {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-info-section h2,
.contact-form-section h2 {
    font-size: 1.75rem;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.contact-intro {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-page .contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-page .contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-page .contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-page .contact-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.contact-page .contact-text p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form-section .contact-form {
    background: var(--gray-100);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.contact-form .btn-submit {
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    width: 100%;
}

.contact-form .btn-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Contact Page Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-form-section .contact-form {
        padding: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.875rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .contact-form .form-group {
        margin-bottom: 0.25rem;
    }

    .contact-form label {
        margin-bottom: 0.25rem;
    }

    .contact-info-section h2,
    .contact-form-section h2 {
        margin-bottom: 1rem;
    }

    .contact-details {
        gap: 1rem;
    }

    .contact-page .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-page .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-intro {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form-section .contact-form {
        padding: 0.75rem;
    }

    .contact-page {
        padding: 2rem 0;
    }

    .contact-map {
        padding: 2rem 0;
    }

    .contact-map h2,
    .map-title {
        text-align: left;
        margin-bottom: 1rem;
    }
}

/* Map title default (desktop) */
.map-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Contact page hero - compact on mobile */
@media (max-width: 768px) {
    .about-hero {
        height: 22vh;
        min-height: 150px;
    }

    .about-hero h1 {
        font-size: 1.75rem;
    }

    .about-hero-content {
        padding-top: 3rem;
    }
}

/* ===================================
   Sellers Page Styles
   =================================== */
/* Sellers Hero - Short version like products page */
.about-hero.sellers-hero {
    height: 22vh;
    min-height: 180px;
}

.sellers-page {
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
    background: var(--white);
}

.sellers-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* Shop Category Label on seller cards */
.shop-category-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sellers-intro {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-sm);
}

.sellers-controls {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.sellers-search {
    max-width: 400px;
    flex: 1;
    position: relative;
}

.seller-type-filter {
    display: none;
}

/* Category Filter for sellers page */
.category-filter {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.95rem;
    color: var(--gray-700);
    cursor: pointer;
    min-width: 180px;
}

.category-filter:focus {
    outline: none;
    border-color: var(--dark-blue);
}

.sellers-grid {
    display: grid !important;
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 600px) {
    .sellers-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sellers-search {
        max-width: 100%;
        width: 100%;
    }

    .seller-type-filter,
    .category-filter {
        width: 100%;
    }

    .sellers-header {
        margin-bottom: 1rem;
    }

    .sellers-intro {
        margin-bottom: 0.5rem;
    }

    .sellers-page {
        padding-top: 1rem;
    }
}

/* ===================================
   Blog Page Styles
   =================================== */
.blog-page {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.blog-intro {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.empty-blog-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-blog-state svg {
    width: 80px;
    height: 80px;
    stroke: var(--gray-400);
    margin-bottom: 1.5rem;
}

.empty-blog-state h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.empty-blog-state p {
    color: var(--gray-500);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-card-content {
    padding: 1rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    color: var(--dark-blue);
    font-size: 1.25rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-read {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .blog-card-image {
        height: 180px;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-page {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-page:hover {
    background: var(--gray-100);
    border-color: var(--accent);
}

.pagination-page.active {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--gray-500);
}

@media (max-width: 600px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-page {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* Blog Post Page */
.blog-post-hero {
    position: relative;
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin-top: 80px;
}

.blog-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.blog-post-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 80px;
}

.back-to-blog {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    display: inline-block;
    transition: opacity 0.2s;
}

.back-to-blog:hover {
    opacity: 1;
}

.blog-post-hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
    max-width: 800px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--white);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Blog Article Content */
.blog-post-content {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.blog-container {
    max-width: 800px;
}

.blog-article {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.blog-article h2 {
    color: var(--dark-blue);
    margin: 2rem 0 1rem;
    font-size: 1.75rem;
}

.blog-article h3 {
    color: var(--dark-blue);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.4rem;
}

.blog-article p {
    margin-bottom: 1.5rem;
}

.blog-article img,
.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.blog-article ul,
.blog-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-article li {
    margin-bottom: 0.5rem;
}

.blog-article blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-600);
}

/* Share Section */
.blog-share {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-share span {
    color: var(--gray-600);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-buttons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.share-buttons a:hover {
    background: var(--accent);
}

.share-buttons svg {
    width: 18px;
    height: 18px;
    fill: var(--gray-600);
}

.share-buttons a:hover svg {
    fill: var(--white);
}

/* Related Posts */
.related-posts {
    padding: var(--spacing-2xl) 0;
    background: var(--gray-50);
}

.related-posts h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-xl);
}

.related-grid {
    max-width: 1000px;
    margin: 0 auto;
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-hero {
        height: 350px;
    }

    .blog-post-hero-content h1 {
        font-size: 1.75rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-article {
        font-size: 1rem;
    }

    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===================================
   Product Stock Display Styles
   =================================== */

/* Stock badge on product cards (products.php listing) */
.product-stock {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.product-stock.in-stock {
    background: #dcfce7;
    color: #166534;
}

.product-stock.low-stock {
    background: #fef3c7;
    color: #92400e;
}

.product-stock.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* Stock display on product detail page (product.php) */
.product-stock-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-stock-display svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.product-stock-display.in-stock {
    background: #dcfce7;
    color: #166534;
}

.product-stock-display.low-stock {
    background: #fef3c7;
    color: #92400e;
}

.product-stock-display.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* Hero Background Variants */
.image-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.slideshow-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slideshow-background .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slideshow-background .slide-bg.active {
    opacity: 1;
}

@keyframes fadeInUpSimple {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Navigation Spacing Override */
/* ===================================
   Responsive Mobile Navigation & Menu
   =================================== */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        position: relative;
        z-index: 1001;
        /* Above menu */
        cursor: pointer;
        padding: 0;
        background: transparent;
        border: none;
    }

    /* Hamburger Animation Lines */
    .nav-toggle span {
        width: 24px;
        height: 2px;
        background-color: var(--black);
        /* Default to dark for visibility or use white if on dark header */
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    /* Initial State (3 lines) */
    .nav-toggle span:nth-child(1) {
        transform: translateY(-8px);
    }

    .nav-toggle span:nth-child(2) {
        opacity: 1;
    }

    .nav-toggle span:nth-child(3) {
        transform: translateY(8px);
    }

    /* Active State Parent Box */
    .nav-toggle.active {
        background-color: var(--dark-blue);
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    /* Active State (X Animation) */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(0) rotate(45deg) !important;
        background-color: var(--white) !important;
        width: 50%;
        /* Make X slightly smaller to fit in box */
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(0) rotate(-45deg) !important;
        background-color: var(--white) !important;
        width: 50%;
        /* Make X slightly smaller to fit in box */
    }

    /* Contextual color adjustment */
    .navbar:not(.scrolled) .nav-toggle span {
        background-color: var(--white);
    }

    .nav-toggle.active span {
        background-color: var(--dark-blue) !important;
        /* Always dark when menu is open (on white menu bg) */
    }

    /* Mobile Menu Drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 100px 40px 40px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        visibility: visible;
        opacity: 1;
        display: flex !important;
        /* Override any potential display:none */
    }

    .nav-menu.active {
        right: 0;
    }

    /* Menu Links Animation */
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation delay */
    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-menu.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-link {
        color: var(--dark-blue) !important;
        font-size: 1.5rem;
        font-weight: 600;
        display: block;
        padding: 20px 0;
        text-align: left;
        /* Explicitly left align */
        width: 100%;
    }

    .nav-link::after {
        display: none;
        /* No underline hover on mobile */
    }

    /* Overlay for clicking outside */
    .menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        animation: fadeIn 0.3s ease;
    }
}

/* Specific Mobile Tweaks */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 0.5rem !important;
        /* Minimal padding */
        width: 100% !important;
        max-width: 100% !important;
    }

    .logo img {
        height: 48px !important;
        /* User preferred size */
        margin-left: 10px;
        margin-top: 5px;
    }
}

/* ===================================
   Blog Post Page Styles
   =================================== */
.blog-post-hero {
    height: 70vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    color: white;
    margin-top: 0;
}

.blog-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
}

.blog-post-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0.5rem;
}

.blog-post-hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.blog-post-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 900px;
}

.back-to-blog {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-to-blog:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateX(-5px);
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Blog Content Styles */
.blog-post-content {
    padding: 4rem 0;
    background: var(--white);
}

.blog-container {
    max-width: 1200px !important;
}

/* Sidebar Layout */
.blog-post-main-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.blog-main-content {
    flex: 1;
    min-width: 0;
}

.blog-sidebar {
    width: 350px;
    position: sticky;
    top: 100px;
}

.sidebar-section h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.sidebar-related-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-blog-card {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.sidebar-blog-card:hover {
    transform: translateX(5px);
}

.sidebar-card-image {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.sidebar-card-content {
    flex: 1;
    min-width: 0;
}

.sidebar-card-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark-blue);
}

.sidebar-card-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.blog-article {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 3rem;
}

.blog-article p {
    margin-bottom: 1.5rem;
}

.blog-article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    font-size: 1.8rem;
}

.blog-article h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
}

.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.blog-share {
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.blog-share span {
    font-weight: 600;
    color: var(--dark-blue);
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--dark-blue);
    transition: all 0.2s ease;
}

.share-buttons a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.share-buttons svg {
    width: 20px;
    height: 20px;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--gray-50);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-post-hero {
        height: 85vh;
    }

    .blog-post-hero-content {
        padding-bottom: 3rem;
    }

    .blog-post-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .blog-post-meta {
        font-size: 1rem;
        gap: 1rem;
        flex-direction: column;
    }

    .blog-post-content {
        padding: 3rem 0;
    }

    .blog-post-main-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .blog-sidebar {
        width: 100%;
        position: static;
        order: 2;
    }

    .sidebar-section h3 {
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .sidebar-blog-card {
        align-items: center;
    }

    .sidebar-card-image {
        width: 80px;
        height: 60px;
    }
}

/* ===================================
   SKELETON LOADING STYLES
   =================================== */

/* Base Skeleton Animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Skeleton Base Class */
.skeleton {
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* Skeleton Variants */
.skeleton-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin: 0.5rem 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-text.skeleton-short {
    width: 60%;
}

.skeleton-text.skeleton-medium {
    width: 80%;
}

.skeleton-title {
    height: 1.5em;
    width: 70%;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Skeleton Card - Complete card skeleton */
.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-card .skeleton-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-card-content {
    padding: 1rem;
}

.skeleton-card .skeleton-card-title {
    height: 1.2em;
    width: 80%;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-card-subtitle {
    height: 0.9em;
    width: 50%;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Product Card Skeleton */
.skeleton-product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-product-card .skeleton-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-product-card .skeleton-product-content {
    padding: 1rem;
}

.skeleton-product-card .skeleton-product-title {
    height: 1em;
    width: 85%;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-product-card .skeleton-product-price {
    height: 1.2em;
    width: 40%;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Shop Card Skeleton */
.skeleton-shop-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-shop-card .skeleton-shop-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.skeleton-shop-card .skeleton-shop-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.3);
}

.skeleton-shop-card .skeleton-shop-category {
    height: 1em;
    width: 40%;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.2);
}

/* Blog Card Skeleton */
.skeleton-blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-blog-card .skeleton-blog-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-blog-card .skeleton-blog-content {
    padding: 1.25rem;
}

.skeleton-blog-card .skeleton-blog-title {
    height: 1.3em;
    width: 90%;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-blog-card .skeleton-blog-date {
    height: 0.9em;
    width: 30%;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Gallery Image Skeleton */
.skeleton-gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Lazy Loading Image Styles */
img.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-image.lazy-loaded {
    opacity: 1;
}

img.lazy-loading {
    opacity: 0.5;
}

img.lazy-error {
    opacity: 0.3;
}

/* Lazy Container - wraps image with skeleton */
.lazy-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.lazy-container.loaded {
    background: none;
    animation: none;
}

.lazy-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skeleton Wrapper with Content */
.skeleton-wrapper {
    position: relative;
}

.skeleton-wrapper .skeleton-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.skeleton-wrapper.loaded .skeleton-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Hidden Skeleton Pattern for Initial States */
.skeleton-hidden {
    display: none !important;
}

/* Fade In Animation for Loaded Content */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lazy-loaded,
.skeleton-revealed {
    animation: fadeInContent 0.3s ease forwards;
}

/* Skeleton Grid Placeholder */
.skeleton-grid {
    display: grid;
    gap: 1.5rem;
}

.skeleton-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.skeleton-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.skeleton-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {

    .skeleton-grid.grid-4,
    .skeleton-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .skeleton-grid.grid-4,
    .skeleton-grid.grid-3,
    .skeleton-grid.grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   About Page Image Sizes
   =================================== */
.about-img-small,
.about-img-medium,
.about-img-large {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

@media (min-width: 992px) {
    .about-img-large {
        width: 100% !important;
        margin-right: 0 !important;
        float: none;
        display: block;
        clear: both;
    }

    .about-img-medium {
        width: 48% !important;
        height: 300px !important;
        object-fit: cover;
        float: left;
        margin-right: 4% !important;
        margin-bottom: 2rem;
    }

    /* Remove margin from every 2nd medium image */
    .about-img-medium:nth-of-type(2n) {
        margin-right: 0 !important;
    }

    /* Clear float after every 2nd image */
    .about-img-medium:nth-of-type(2n):after {
        content: "";
        display: table;
        clear: both;
    }

    .about-img-small {
        width: 30.66%;
        /* (100 - 4)/3 approx 32, but let's be safe: 32*3=96, gaps 2*2=4. So 32% is fine if no extra pixels. Let's use 31% with larger gap or 32% with 2% gap. */
        width: 32% !important;
        height: 300px !important;
        object-fit: cover;
        float: left;
        margin-right: 2% !important;
        margin-bottom: 2rem;
    }

    /* Remove margin from every 3rd small image */
    .about-img-small:nth-of-type(3n) {
        margin-right: 0 !important;
    }
}

/* Clearfix for the content wrapper to contain floats */
.about-content-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* ===================================
   Scroll Reveal Animation (Enhanced)
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    /* Ease-out cubic for premium feel */
    will-change: opacity, transform, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered Animations for Grid Children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-stagger.active>* {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays (up to 12 items) */
.reveal-stagger.active>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.active>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger.active>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger.active>*:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-stagger.active>*:nth-child(5) {
    transition-delay: 0.5s;
}

.reveal-stagger.active>*:nth-child(6) {
    transition-delay: 0.6s;
}

.reveal-stagger.active>*:nth-child(7) {
    transition-delay: 0.7s;
}

.reveal-stagger.active>*:nth-child(8) {
    transition-delay: 0.8s;
}

.reveal-stagger.active>*:nth-child(9) {
    transition-delay: 0.9s;
}

.reveal-stagger.active>*:nth-child(10) {
    transition-delay: 1.0s;
}

.reveal-stagger.active>*:nth-child(11) {
    transition-delay: 1.1s;
}

.reveal-stagger.active>*:nth-child(12) {
    transition-delay: 1.2s;
}