/* Additional global styles if needed */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #2d3748;
    line-height: 1.6;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Unified Product Card Enhancements */
.product-model {
    font-size: 0.75rem;
    color: #94a3b8; /* Slate 400 - Gray */
    margin-bottom: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title-link {
    font-weight: 700;
    color: #1e293b; /* Dark Slate */
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.current-price {
    color: #2563eb; /* Blue 600 */
    font-weight: 800;
    font-size: 1.2rem;
}

.checkout-btn-unify {
    width: 100%;
    background-color: #10b981; /* Emerald 500 */
    color: white;
    font-weight: 700;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

    .checkout-btn-unify:hover {
        background-color: #059669;
        transform: translateY(-1px);
    }

.alt_bg {
  background-color:  #dae8ff80;
}

/* Ensure the container maintains aspect ratio but has a minimum height on mobile */
.hero-aspect {
    width: 100%;
    aspect-ratio: 4096 / 1366;
}

@media (max-width: 768px) {
    /* On mobile, we might prefer seeing the center of the image rather than a tiny thin line */
    section.relative {
        aspect-ratio: auto;
        height: 250px; /* Force a decent height for mobile readability */
    }

        section.relative img {
            object-fit: cover; /* Back to cover on mobile because 'contain' will look too small */
        }
}

@keyframes slow-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.animate-slow-zoom {
    animation: slow-zoom 10s ease-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1); /* Only 7% zoom to protect your text at the edges */
    }
}

.animate-kenburns {
    /* 8 seconds duration, smooth ease-out, stays at final state or loops */
    animation: kenburns 8s ease-out forwards;
}

.hero-slider-container {
    width: 100%;
    aspect-ratio: 4096 / 1366;
    position: relative;
    overflow: hidden;
    background-color: #000;
}


/* 2. The Ken Burns Zoom Animation */
@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.animate-kenburns {
    animation: kenburns 10s ease-out forwards;
}

/* 3. The Cross-Fade Transition */
.slide-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Smooth 1.5s fade duration */
    transition: opacity 1500ms ease-in-out;
    pointer-events: none; /* Prevents hidden slides from blocking clicks */
}

    .slide-item.active {
        opacity: 1;
        z-index: 10;
        pointer-events: auto;
    }

    .slide-item.inactive {
        opacity: 0;
        z-index: 0;
    }

@media (max-width: 640px) {
    .hero-slider-container {
        aspect-ratio: 16 / 9; /* Makes the slider taller on small phones */
    }

        .hero-slider-container img {
            object-fit: cover; /* Crops sides slightly on mobile ONLY to keep text readable */
        }
}

/* Brand Scroll Container */
.brands-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 30px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

    .brands-scroll-container::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
.brands-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 30px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab; /* Shows the hand icon */
    user-select: none; /* Prevents text selection while dragging */
}


/* Style for all Blazor validation messages */
.validation-message {
    color: #dc2626 !important; /* Tailwind red-600 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    margin-top: 0.25rem;
    display: block;
}

/* Optional: Add a slight animation so the error "pops" in */
@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.validation-message {
    animation: fadeInError 0.3s ease-out;
}


/* Optional: Show horizontal scrollbar on Desktop only if you prefer */
@media (min-width: 1024px) {
    .brands-scroll-container::-webkit-scrollbar {
        display: block;
        height: 5px;
    }

    .brands-scroll-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }
}

/* Fixed width for brand cards in the carousel */
.brand-carousel-item {
    flex: 0 0 240px; /* Do not grow, do not shrink, stay 240px wide */
    scroll-snap-align: start;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-5px);
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a365d;
    --secondary: #d4af37;
    --accent: #e53e3e;
    --light: #f7fafc;
    --dark: #2d3748;
    --gray: #718096;
}

body {
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.top-bar-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.main-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

    .logo i {
        margin-right: 10px;
        color: var(--secondary);
    }

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

    .search-bar input {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 30px;
        font-size: 0.9rem;
    }

    .search-bar button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--gray);
        cursor: pointer;
    }

.header-actions {
    display: flex;
    align-items: center;
}

    .header-actions a {
       /* color: var(--dark);*/
        text-decoration: none;
        margin-left: 20px;
        font-size: 1.2rem;
        position: relative;
    }

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    background-color: var(--light);
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    list-style: none;
}

    .nav-links li {
        position: relative;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        text-decoration: none;
        color: var(--dark);
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .nav-links a:hover {
            color: var(--primary);
            background-color: rgba(0, 0, 0, 0.03);
        }

.dropdown {
    position: absolute;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 10;
}

.nav-links li:hover .dropdown {
    display: block;
}

.dropdown a {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

    .dropdown a:last-child {
        border-bottom: none;
    }

/* Hero Section */
.hero {
    /*background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1574258495973-f010dfbb5371?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;*/
    /* background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)), url('slide.png') no-repeat center;*/
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('main_2.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    height: 500px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn:hover {
        background-color: #c19b2a;
        transform: translateY(-2px);
    }

/* Categories Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.2rem;
        color: var(--primary);
        margin-bottom: 15px;
    }

    .section-title p {
        color: var(--gray);
        max-width: 600px;
        margin: 0 auto;
    }

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.category-img {
    height: 200px;
    overflow: hidden;
}

    .category-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-content {
    padding: 20px;
    text-align: center;
}

    .category-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        color: var(--primary);
    }

/* Products Section */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

    .product-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: var(--primary);
    }

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 10px;
}

.original-price {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.add-to-cart {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .add-to-cart:hover {
        background-color: #2c5282;
    }

.wishlist {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .wishlist:hover {
        color: var(--accent);
    }

/* Services Section */
.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #cbd5e0;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: white;
        }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background-color: var(--secondary);
            transform: translateY(-3px);
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #cbd5e0;
    font-size: 0.9rem;
}



[dir="rtl"],
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] button,


[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
    font-family: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}
    [dir="rtl"] p,
    [dir="rtl"] span,
    [dir="rtl"] a {
        font-family: "Cairo-light", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    }



@font-face {
    font-family: "Cairo-light";
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/700.woff2') format('woff2'), url('../fonts/700.woff') format('woff');
}
    @font-face {
        font-family: "Cairo";
        font-weight: 700;
        font-style: normal;
        font-display: swap;
        src: url('../fonts/700.woff2') format('woff2'), url('../fonts/700.woff') format('woff');
    }

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 60px 0;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .nav-links a {
        padding: 12px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}


/* Keeps the product title looking like a heading, not a blue link */
.product-title-link {
    text-decoration: none;
    color: inherit; /* Takes the color from the H3 */
    display: block;
}

    .product-title-link:hover {
        color: var(--primary); /* Optional: slight color change on hover */
    }

/* Ensures the image link doesn't add extra padding */
.product-link {
    display: block;
    overflow: hidden;
}


/* Eyewear Gallery Specifics */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Ensure images don't get cut off and stay centered */
.product-main-img {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}

/* Style for the active thumbnail in the track */
.thumb-active {
    border-color: #1a365d !important; /* Your primary dark blue */
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.1);
}

/* Fix for Taobao-style vertical track on mobile */
@media (max-width: 768px) {
    .thumb-track {
        flex-direction: row !important;
        overflow-x: auto;
    }
}


