/* ==========================================
   LENSKART-INSPIRED PROFESSIONAL THEME
   For Surya Opticals
   ========================================== */

:root {
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --primary-dark: #2563eb;
    --secondary-color: #121212;
    --accent-color: #f59e0b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* GLOBAL RESPONSIVE RESET */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 15px;
    /* Added base font size */
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* ==========================================
   TOP BAR & NAVIGATION
   ========================================== */

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Fluid Typography for Brand Name */
.navbar-brand span.fs-4,
.brand-logo {
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
}

.navbar-brand span.fs-6 {
    font-size: clamp(0.75rem, 3vw, 1rem) !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-banner {
    background: var(--primary-gradient);
    /* Restored Background */
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    color: white;
    min-height: 350px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(1.6rem, 8vw, 3.5rem);
    /* Fluid Heading */
    margin-bottom: 12px;
    color: white;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(0.9rem, 4vw, 1.25rem);
    /* Fluid Text */
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   CIRCULAR CATEGORIES
   ========================================== */
.circle-section {
    padding: 30px 0;
    background: white;
    margin-bottom: 20px;
}

.circle-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.circle-item {
    text-align: center;
    transition: transform 0.3s ease;
    width: 100px;
    /* Constrain width */
}

.circle-item:hover {
    transform: translateY(-5px);
}

.circle-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    margin: 0 auto 10px;
    overflow: hidden;
    padding: 5px;
}

.circle-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================
   PRODUCT GRID
   ========================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
    padding: 0 15px;
}

.section-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 5px;
    background: var(--primary-color);
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Uniform height */
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #ccc;
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    padding-top: 75%;
    /* 4:3 Aspect Ratio standard */
    background: #f9f9f9;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: var(--text-light);
}

.product-model {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: 15px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    filter: brightness(110%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f7ff;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #0f172a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* ==========================================
   CART & CHECKOUT SPECIFIC
   ========================================== */
.cart-container,
.checkout-container {
    padding: 40px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 40px auto;
    max-width: 1200px;
}

.checkout-step {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.checkout-step.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(50, 156, 146, 0.1);
}

.checkout-header {
    background: #f4f4f4;
    padding: 10px 15px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Modal Styling */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.btn-close-white {
    filter: invert(1);
    opacity: 0.8;
}

/* ==========================================
   MARQUEE CATEGORY STRIP
   ========================================== */
.marquee-container {
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    gap: 4rem;
    /* Spacing between items */
    animation: marquee-scroll 25s linear infinite;
    padding: 12px 0;
    min-width: 100%;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.3s;
    position: relative;
}

.marquee-item:hover {
    color: var(--primary-color);
}

.marquee-item::after {
    content: "•";
    /* Separator dot */
    position: absolute;
    right: -2rem;
    color: var(--text-light);
    opacity: 0.5;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 768px) {

    /* Safe container padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Cart & Checkout */
    .cart-container,
    .checkout-container {
        margin: 15px auto;
        padding: 15px 12px;
    }

    /* Typography Reductions for Mobile */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p,
    .text-muted,
    .small {
        font-size: 0.85rem !important;
    }

    /* Hero adjustments */
    .hero-banner {
        padding: 30px 12px;
        min-height: 250px;
    }

    /* Product Card Optimization */
    .product-grid,
    .row-cols-2 {
        gap: 8px;
    }

    .product-details {
        padding: 8px;
    }

    .product-brand {
        font-size: 0.75rem;
    }

    .product-model {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .product-price {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    /* Buttons */
    .card-actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .btn-custom {
        width: 100%;
        padding: 5px;
        font-size: 0.8rem;
    }
}