/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */

:root {
    --primary: #001938;
    --accent: #e60023;
    --white: #ffffff;
    --light: #f8f9fa;
    --text: #1f2937;
    --border: #e5e7eb;
    --shadow: 0 5px 20px rgba(0,0,0,.08);
}

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

body {
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* ==========================================================================
   2. SITE HEADER & NAVIGATION (RE-ARCHITECTED FOR DROPDOWN INDICATOR OVERLAP)
   ========================================================================== */

.site-header-container {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0,0,0,.05);
    border-bottom: 1px solid #eee;
}

/* --- Top Bar --- */
.top-bar {
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.top-bar a {
    color: #333;
    margin-left: 15px;
}

/* --- Main Header --- */
.main-header {
    background: #fff;
    padding: 15px 0 5px 0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}

.logo-img{
    width:auto !important;
    height:50px;
    max-width:50px;
    object-fit:contain;
    flex-shrink:0;
}

.logo-text{
    font-size:32px;
    font-weight:700;
    color:#001938;
    line-height:1;
}

/* Mobile */
@media (max-width:768px){
    .logo-img{
        height:40px;
        max-width:40px;
    }

    .logo-text{
        font-size:24px;
    }
}

/* --- Search Bar --- */
.search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
}

.search-wrapper select {
    border: none;
    border-left: 1px solid #eee;
    padding: 12px;
    outline: none;
}

.search-wrapper button {
    border: none;
    background: var(--primary);
    color: #fff;
    width: 55px;
    height: 50px;
}

/* --- Header Icons & Badges --- */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons a {
    color: #111;
    font-size: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.badge-cart {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
}

/* --- Redesigned Overlapping Desktop Navbar --- */
.navbar-custom {
    background: black;
    padding-top: 5px;
}

.navbar-custom ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.navbar-custom li {
    position: relative;
}

.navbar-custom li a {
    display: block;
    color: rgba(255, 255, 255, 0.704);
    padding: 12px 22px 14px 22px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    transition: color .2s ease-in-out;
}

.navbar-custom li a:hover {
    color: white;
}

/* High-Contrast Reference Overlap State Engine */
.navbar-custom li a.active {
    color: white !important;
}

.navbar-custom li a.active::after {
    content: "";
    position: absolute;
    bottom: -1px; /* Fastens line down across parent container limits */
    left: 15%;
    width: 70%;
    height: 5px;   /* Exact geometric height from sample block */
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    z-index: 10;   /* Forces highlight on top of banner background nodes */
}

/* --- User Profile Dropdown --- */
.profile-dropdown {
    position: relative;
}

.profile-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    border: none;
}

.profile-menu {
    position: absolute;
    right: 0;
    top: 55px;
    width: 240px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    display: none;
    z-index: 9999;
}

.profile-menu.show {
    display: block;
}

.profile-menu a {
    display: block;
    padding: 12px 15px;
    color: #222;
    border-bottom: 1px solid #eee;
    transition: .3s;
}

.profile-menu a:last-child {
    border-bottom: none;
}

.profile-menu a:hover {
    background: #f8f9fa;
    color: var(--accent);
}

.profile-menu i {
    width: 20px;
}

/*products    thum change*/
.disabled-thumb{
    opacity:0.4;
    pointer-events:none;
    cursor:not-allowed;
}
/* ==========================================================================
   2. SITE HEADER & NAVIGATION (CLEAN WHITE TEXT MODE & SLEEK SEARCH BAR)
   ========================================================================== */

:root {
    --primary: #001938;
    --accent: #e60023; /* Target Premium Red */
    --search-bg: #f3f4f6;
    --text-dark: #111827;
    --text-muted: #6b7280;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: 15px;
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 12px;
}

/* --- Brand Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
}

/* --- Premium Improved Search Bar --- */
.search-premium-box {
    flex: 1;
    max-width: 650px;
    display: flex;
    align-items: center;
    background: var(--search-bg);
    border-radius: 50px; /* Fully pill-shaped layout */
    padding: 4px 6px 4px 18px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-premium-box:focus-within {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
}

.search-leading-icon {
    color: var(--text-muted);
    font-size: 15px;
    margin-right: 10px;
}

.search-input-group input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-dark);
    font-size: 14px;
    padding: 8px 0;
}

.search-filter-group select {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 0 15px;
    border-left: 1px solid #d1d5db;
    cursor: pointer;
}

.search-submit-btn {
    border: none;
    background: var(--text-dark);
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.search-premium-box:focus-within .search-submit-btn {
    background: var(--accent);
}

/* --- Action Utilities --- */
.header-action-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.action-icon-item {
    color: var(--text-dark);
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.action-icon-item:hover {
    color: var(--accent);
}

.badge-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Clean Pure-White Navbar Sub-Row (NO lines, NO blocks) --- */
.navbar-clean-white {
    background: #ffffff; /* Explicit pure white background */
    padding: 6px 0;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list li {
    position: relative;
}

.nav-menu-list li a {
    display: block;
    color: var(--text-dark); /* Dark grey/black links on white canvas */
    font-size: 15px;
    font-weight: 700;
    padding: 8px 0;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease-in-out;
}

/* Clean Text Highlights - No Underlines or background blocks are thrown */
.nav-menu-list li a:hover,
.nav-menu-list li a.active {
    color: var(--accent) !important; /* Changes clean text color directly to red */
    background: transparent !important;
}

/* Omit all potential structural lines or indicators from legacy builds */
.nav-menu-list li a::after,
.nav-menu-list li a::before {
    display: none !important; 
}

/* --- Profile Avatar Trigger --- */
.profile-avatar-trigger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--text-dark);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.profile-avatar-trigger:hover {
    transform: scale(1.04);
}

.profile-dropdown {
    position: relative;
}

.profile-menu {
    position: absolute;
    right: 0;
    top: 48px;
    width: 200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: none;
    z-index: 2000;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    padding: 6px 0;
}

.profile-menu.show {
    display: block;
    animation: dropdownFadeIn 0.18s ease-out;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-menu a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: #6b7280;
}

.profile-menu a:hover {
    background: #f9fafb;
    color: var(--accent);
}

.profile-menu a:hover i {
    color: var(--accent);
}

.profile-menu a.logout-item {
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
    color: #dc2626;
}

.profile-menu a.logout-item i {
    color: #dc2626;
}

.profile-menu a.logout-item:hover {
    background: #fef2f2;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================================
   3. HERO & BANNER SECTIONS
   ========================================================================== */

.hero {
    height: 500px;
    background: url('../image/banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

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

.hero-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.hero-content {
    max-width: 550px;
    color: #fff;
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn-shop {
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    display: inline-block;
}

.promo-banner {
    padding: 80px 0;
    background: linear-gradient(rgba(0,25,56,.85), rgba(0,25,56,.85)), url('https://picsum.photos/1200/500');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.promo-banner h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

/* ==========================================================================
   4. COMMON LAYOUTS & COMPONENTS
   ========================================================================== */

.section {
    padding: 60px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 30px;
    font-weight: 700;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
}

.page-header p {
    color: #777;
}

.features {
    padding: 40px 0;
}

.feature-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.feature-box i {
    color: #f5a623;
    font-size: 35px;
}

.feature-box h5 {
    margin-bottom: 3px;
}

/* ==========================================================================
   5. PRODUCT CARDS & GRID COMPONENTS
   ========================================================================== */

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,.12);
}

.product-image {
    height: 260px;
    overflow: hidden;
}

.product-image img {
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

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

.product-info {
    padding: 15px;
}

.product-info h5 {
    font-size: 16px;
    margin-bottom: 10px;
    min-height: 48px;
}

.product-info .btn {
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

.product-info form {
    margin: 0;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}

.rating {
    color: #f5a623;
    margin: 8px 0;
}

.btn-cart {
    width: 100%;
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
}

/* --- Stock Badges --- */
.stock-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.stock-badge.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* ==========================================================================
   6. SHOP ARCHIVE / CATALOG PAGE
   ========================================================================== */

.shop-page {
    padding: 50px 0;
}

.shop-sidebar {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
}

.shop-sidebar h5 {
    margin-bottom: 15px;
    font-weight: 700;
}

.shop-sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.shop-sidebar input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.shop-sidebar hr {
    margin: 25px 0;
}

.btn-filter {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
}

.products-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.pagination .page-link {
    color: var(--primary);
}

.pagination .active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================================
   7. PRODUCT DETAIL PAGE
   ========================================================================== */

.product-detail {
    padding: 60px 0;
}

.gallery-main {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main img {
    border-radius: 10px;
}

.thumbnail-img {
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .3s;
}

.thumbnail-img:hover {
    border-color: var(--accent);
}

.product-category {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 15px;
}

.product-summary h1 {
    font-size: 34px;
    margin-bottom: 15px;
}

.product-summary .price {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-meta p {
    margin-bottom: 8px;
}

.stock {
    color: green;
    font-weight: 600;
}

.qty-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.qty-box input {
    width: 80px;
    text-align: center;
}

.buy-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
}

.add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
}

/* --- Product Meta Tabs --- */
.nav-tabs .nav-link {
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: #fff;
    border-color: var(--primary);
}

.tab-content {
    border-top: none !important;
}

/* ==========================================================================
   8. MINI CART / SIDEBAR CART
   ========================================================================== */

.mini-cart {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.checkout-btn {
    width: 100%;
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
}

/* ==========================================================================
   9. NEWSLETTER & FOOTER
   ========================================================================== */

.newsletter {
    padding: 80px 0;
    background: #f8f9fa;
}

.newsletter-box {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.newsletter-box h2 {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    margin-top: 25px;
}

.newsletter-form input {
    flex: 1;
    height: 55px;
    border: 1px solid #ddd;
    padding: 0 15px;
}

.newsletter-form button {
    width: 180px;
    border: none;
    background: var(--accent);
    color: white;
}

.footer {
    background: var(--primary);
    color: #fff;
    padding: 70px 0 20px;
    margin-top: 60px;
}

.footer h4,
.footer h5 {
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer hr {
    margin: 30px 0;
    border-color: rgba(255,255,255,.2);
}

/* ==========================================================================
   10. MOBILE SIDEBAR / DRAWERS & UTILITIES
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 22px;
}

.mobile-sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: .3s;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-sidebar ul {
    padding: 20px;
}

.mobile-sidebar ul li {
    margin-bottom: 15px;
}

.mobile-sidebar ul li a {
    color: #222;
    display: block;
}

.mobile-sidebar ul li a.active {
    color: var(--accent);
    font-weight: 700;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Skeleton Shimmer Animation --- */
.skeleton-card {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.skeleton-image {
    height: 250px;
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

.skeleton-line {
    height: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   11. MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* --- Tablet & Landscape Viewports --- */
@media(max-width: 991px) {
    .navbar-custom,
    .search-wrapper {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .shop-sidebar {
        margin-bottom: 30px;
    }

    .mini-cart {
        margin-top: 20px;
    }

    .profile-menu {
        right: -50px;
    }
}

/* --- Mobile Viewports --- */
@media(max-width: 768px) {
    .header-icons {
        gap: 12px;
    }

    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .products-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .product-summary h1 {
        font-size: 28px;
    }

    .price {
        font-size: 26px;
    }

    .profile-circle {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form button {
        width: 100%;
        height: 50px;
    }
}

/* --- Extra Small Viewports --- */
@media(max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .profile-menu {
        width: 220px;
    }
}