/* 
    SHOP PAGE REDESIGN - E-COMMERCE STYLE
    Replaces the default dark theme for shop.html 
*/

:root {
    --theme-red: #d32f2f;
    --theme-red-hover: #b71c1c;
    --theme-dark: #1a1a1a;
    --bg-light: #f8f9fa;
    --border-color: #eaeaea;
    --text-main: #333;
    --text-muted: #777;
    --white: #fff;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body.shop-page-body {
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-body);
}

/* Override container for wider ecommerce layout (Full Screen as requested) */
.shop-page-body .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

/* For very large screens, cap it at a reasonable ultra-wide width */
@media (min-width: 1920px) {
    .shop-page-body .container {
        max-width: 1800px;
    }
}

/* ==========================================================================
   1. TOP BAR
   ========================================================================== */
.shop-topbar {
    background-color: #f8f9fa;
    color: #666;
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left span,
.topbar-right span {
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-left i {
    color: var(--theme-red);
}

.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-socials {
    display: flex;
    gap: 15px;
}

.topbar-socials a {
    color: #666;
    transition: color 0.2s;
    font-size: 1rem;
}

.topbar-socials a:hover {
    color: var(--theme-red);
}

/* ==========================================================================
   2. MIDDLE BAR
   ========================================================================== */
.shop-menu-toggle {
    display: none;
}

.shop-sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Make the header full width to match other pages */
.shop-sticky-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 36px;
}

.shop-midbar {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.midbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.shop-midbar .logo-img {
    height: 42px;
    /* Match logo size with main page */
}

.shop-search-wrapper {
    flex: 1;
    max-width: 600px;
    display: flex;
    border: 2px solid var(--theme-red);
    border-radius: 6px;
    height: 45px;
    position: relative;
}

.shop-search-cat {
    background-color: #f9f9f9;
    padding: 0 30px 0 15px;
    font-size: 0.9rem;
    color: #555;
    border: none;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    border-radius: 4px 0 0 4px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

.shop-search-cat::-ms-expand {
    display: none;
}

.shop-search-cat:hover {
    background-color: #f1f2f6;
}

.shop-search-wrapper input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

.shop-search-btn {
    background-color: var(--theme-red);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0 4px 4px 0;
}

.shop-search-btn:hover {
    background: #e6661a;
}

/* Live Search Dropdown */
.shop-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.shop-search-dropdown .search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f2f6;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}

.shop-search-dropdown .search-result-item:last-child {
    border-bottom: none;
}

.shop-search-dropdown .search-result-item:hover {
    background: #f8f9fa;
}

.shop-search-dropdown .search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 15px;
    background: #fff;
    border: 1px solid #eee;
}

.shop-search-dropdown .search-result-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: var(--theme-dark);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-search-dropdown .search-result-info span {
    color: var(--theme-red);
    font-weight: bold;
}

.shop-search-dropdown .search-no-result {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

.shop-nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hide the global nav menu on desktop in shop */
.shop-nav-menu {
    display: none !important;
}

.shop-icon-btn {
    position: relative;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-icon-btn .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--theme-red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

.shop-icon-btn:hover {
    color: var(--theme-red);
}

/* ==========================================================================
   3. BOTTOM BAR
   ========================================================================== */
.shop-bottombar {
    background: var(--theme-red);
    color: var(--white);
}

.bottombar-inner {
    display: flex;
    align-items: center;
    height: 60px;
}

.shop-categories-wrapper {
    position: relative;
    height: 100%;
}

.shop-categories-btn {
    background: transparent;
    color: var(--white);
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.shop-categories-btn:hover {
    color: #cc0000;
}

.shop-categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    /* Match sidebar width */
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.shop-categories-wrapper:hover .shop-categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shop-categories-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.shop-categories-dropdown ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.shop-categories-dropdown ul li a:hover {
    background-color: #f8f9fa;
    color: var(--red, #cc0000);
    border-left-color: var(--red, #cc0000);
}

.shop-categories-dropdown ul li a i {
    width: 20px;
    text-align: center;
    color: #888;
    transition: color 0.2s;
}

.shop-categories-dropdown ul li a:hover i {
    color: var(--red, #cc0000);
}

.shop-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 30px;
    gap: 40px;
    flex: 1;
}

/* OVERRIDE main.css .filter-btn styling for the nav links */
.shop-nav-links .filter-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 20px 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease !important;
    position: relative;
}

.shop-nav-links .filter-btn::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.shop-nav-links .filter-btn:hover,
.shop-nav-links .filter-btn.active {
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

.shop-nav-links .filter-btn:hover::after,
.shop-nav-links .filter-btn.active::after {
    width: 100%;
}

/* Fix dropdown menu text explicitly */
.shop-categories-dropdown ul li a {
    color: var(--text-main) !important;
    text-transform: none;
    padding: 15px 25px !important;
    font-size: 1rem !important;
    border-bottom: 1px solid #f0f0f0;
}

.shop-categories-dropdown ul li:last-child a {
    border-bottom: none;
}

.shop-categories-dropdown ul li a:hover {
    color: #ff4b2b !important;
    background-color: #fffaf9 !important;
}

.shop-categories-dropdown ul li a i {
    width: 24px;
    color: #999;
}

.shop-categories-dropdown ul li a:hover i {
    color: #ff4b2b;
}

.shop-login-btn {
    background-color: var(--theme-red);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.shop-login-btn:hover {
    background-color: var(--theme-red-hover);
}

/* ==========================================================================
   4. E-COMMERCE HERO BANNER
   ========================================================================== */
.shop-ecommerce-hero {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.hero-left {
    flex: 1;
    max-width: 450px;
    z-index: 2;
}

.badge-new {
    display: inline-block;
    background-color: var(--theme-red) !important;
    color: var(--white);
}

.shop-ecommerce-hero {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 80px;
    margin-top: 40px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.hero-decor-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(211, 47, 47, 0) 100%);
    top: -100px;
    right: -100px;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    z-index: 2;
    padding-right: 40px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-image-wrapper img {
    max-height: 420px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 24px;
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Slide Animations */
.slide-out-left {
    animation: slideOutL 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
    animation: slideInR 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-out-right {
    animation: slideOutR 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
    animation: slideInL 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutL {
    to {
        opacity: 0;
        transform: translateX(-40px);
    }
}

@keyframes slideInR {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes slideOutR {
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

@keyframes slideInL {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

.shop-now-btn:hover {
    background: var(--theme-red) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(211, 47, 47, 0.3) !important;
}

/* ==========================================================================
   5. FEATURES ROW
   ========================================================================== */
.shop-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

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

.feature-item .feat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--theme-red);
    border-radius: 50%;
    color: var(--theme-red);
    font-size: 1.3rem;
}

.feature-item h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-main);
}

.feature-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   6. MAIN SHOP SECTION & SIDEBAR
   ========================================================================== */
.shop-main-section {
    padding-bottom: 60px;
}

.hot-arrivals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.hot-arrivals-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-main);
}

.hot-arrivals-header .highlight {
    color: var(--red, #cc0000);
}

.hot-tabs {
    display: flex;
    gap: 30px;
}

.hot-tabs button {
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.hot-tabs button.active {
    color: var(--red, #cc0000);
}

.hot-tabs button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--red, #cc0000);
    transition: width 0.3s ease;
}

.hot-tabs button.active::after {
    width: 100%;
}

.shop-layout-split {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-header h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: var(--theme-red);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* OVERRIDE main.css .filter-btn styling for the sidebar */
.shop-sidebar .filter-btn {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 1rem !important;
    font-weight: normal !important;
}

.shop-sidebar .filter-btn:hover,
.shop-sidebar .filter-btn.active {
    color: var(--theme-red) !important;
}

.sidebar-categories li i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-more a {
    display: block;
    margin-top: 20px;
    color: var(--theme-red);
    text-decoration: none;
    font-weight: 500;
}

.shop-trending-content {
    flex: 1;
}

.trending-header {
    margin-bottom: 25px;
    border: 1px solid var(--theme-red);
    padding: 15px 20px;
    border-radius: 8px;
}

.trending-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* ==========================================================================
   7. PRODUCT GRID & CARD OVERRIDES (E-commerce Style)
   ========================================================================== */
.new-ecommerce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* We override the existing product card styles to match the new bright theme */
.shop-page-body .product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.shop-page-body .product-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.shop-page-body .product-card>a {
    display: block;
    text-decoration: none;
}

.shop-page-body .product-card .product-img {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    margin: -20px -20px 15px -20px;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.shop-page-body .product-card img {
    height: 140px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.shop-page-body .product-card .product-cat {
    color: var(--blue-l) !important;
    font-weight: 800;
}

/* Badges */
.badge-new,
.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge-new {
    background-color: #2e86de;
    color: white;
}

.badge-sale {
    background-color: #ff4757;
    color: white;
}

/* Disable the old blue 'VIEW' hover overlay */
.shop-page-body .product-card .product-img::after {
    display: none !important;
}

/* Text Details */
.product-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Use Flex Order to inject star rating pseudo-element below title */
.shop-page-body .product-cat {
    font-size: 0.75rem;
    color: #a4b0be;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
    order: 1;
}

.shop-page-body .product-card>.product-details>a {
    text-decoration: none;
    order: 2;
}

.shop-page-body .product-card h4 {
    font-size: 1rem;
    color: var(--theme-dark);
    margin: 0 0 5px 0;
    font-weight: 800;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    transition: color 0.2s;
}

.shop-page-body .product-card:hover h4 {
    color: var(--theme-red);
}



.shop-page-body .product-desc {
    font-size: 0.85rem;
    color: #747d8c;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    order: 4;
}

.shop-page-body .product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f2f6;
    order: 5;
}

.shop-page-body .product-bottom .price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-page-body .product-bottom .price-old {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.shop-page-body .product-bottom .price {
    font-size: 1.25rem;
    color: #e11d48;
    font-weight: 700;
}

/* Add to Cart button inside the card */
.shop-page-body .product-card .add-to-cart-btn {
    background-color: #f4f6f8;
    color: var(--theme-dark);
    border: none;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-page-body .product-card .add-to-cart-btn:hover {
    background-color: var(--theme-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* ==========================================================================
   DARK MODE OVERRIDES FOR SHOP REDESIGN
   ========================================================================== */
body.dark-mode.shop-page-body {
    background-color: #12161e !important;
    color: #dce4ef !important;
}

body.dark-mode.shop-page-body .shop-topbar {
    background-color: #1c2230 !important;
    color: #dce4ef !important;
}

body.dark-mode.shop-page-body .shop-topbar a,
body.dark-mode.shop-page-body .shop-topbar .topbar-right span {
    color: #dce4ef !important;
}

body.dark-mode.shop-page-body .shop-header-main {
    background-color: #1a202c !important;
}

body.dark-mode.shop-page-body .shop-categories-dropdown {
    background-color: #1c2230 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode.shop-page-body .shop-categories-dropdown ul li a {
    color: #dce4ef !important;
    border-bottom-color: #2d3748 !important;
}

body.dark-mode.shop-page-body .shop-categories-dropdown ul li a:hover {
    background-color: #2d3748 !important;
    color: #ff4b2b !important;
}

body.dark-mode .product-card {
    background-color: #1c2230 !important;
    border-color: #2a3345 !important;
}

body.dark-mode .product-card h3,
body.dark-mode .product-card h4,
body.dark-mode .product-card .product-title {
    color: #dce4ef !important;
}

body.dark-mode .product-card .product-desc {
    color: #8a96a6 !important;
}

body.dark-mode .product-card .price {
    color: #ff4b2b !important;
}

body.dark-mode .feat-icon i {
    color: #ff4b2b !important;
}

body.dark-mode .feature-item h4 {
    color: #dce4ef !important;
}

body.dark-mode .feature-item p {
    color: #8a96a6 !important;
}

body.dark-mode .sort-btn {
    color: #8a96a6;
}

body.dark-mode .sort-btn:hover,
body.dark-mode .sort-btn.active {
    color: #ff4b2b;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 991px) {
    .shop-page-body .container {
        padding: 0 30px;
    }

    .shop-ecommerce-hero {
        padding: 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-image-wrapper img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {

    .shop-page-body .container,
    .shop-sticky-header .container {
        padding: 0 15px;
    }

    .shop-topbar {
        display: none !important;
    }

    .shop-menu-toggle {
        display: none !important;
        /* User requested removal */
    }

    .shop-menu-toggle .bar {
        width: 30px;
        height: 3px;
        background: var(--text);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
        margin: 0;
    }

    .shop-midbar {
        padding: 8px 0 !important;
        /* Reduce large desktop padding */
    }

    .shop-midbar .midbar-inner {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
        /* Remove vertical padding */
        gap: 0 !important;
        /* Remove inherited desktop gap */
    }

    .shop-midbar .logo {
        order: 1;
        margin: 0 !important;
    }

    .shop-midbar .logo-img {
        height: 30px !important;
        /* Perfect balance with icons */
    }

    .shop-nav-controls {
        order: 2;
        width: auto !important;
        margin: 0 !important;
        gap: 10px !important;
        /* Beautiful spacing */
    }

    /* Unified circular style for all header icons */
    .shop-nav-controls .shop-icon-btn,
    .shop-nav-controls .theme-toggle,
    .shop-nav-controls .lang-btn {
        width: 32px !important;
        /* Smaller size */
        height: 32px !important;
        /* Smaller size */
        font-size: 0.95rem !important;
        /* Smaller icon font */
        background-color: #f1f2f6 !important;
        border: none !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        color: var(--text-main) !important;
    }

    body.dark-mode .shop-nav-controls .shop-icon-btn,
    body.dark-mode .shop-nav-controls .theme-toggle,
    body.dark-mode .shop-nav-controls .lang-btn {
        background-color: var(--dark-3) !important;
        color: #fff !important;
    }

    /* Premium cart badge styling */
    .shop-icon-btn .badge {
        position: absolute;
        top: -2px !important;
        right: -3px !important;
        background-color: var(--theme-red) !important;
        color: #fff !important;
        font-size: 0.6rem !important;
        /* Smaller badge font */
        padding: 1px 4px !important;
        /* Smaller badge padding */
        border: 1.5px solid #fff !important;
        /* Slightly thinner border */
        border-radius: 10px !important;
        line-height: 1 !important;
    }

    body.dark-mode .shop-icon-btn .badge {
        border-color: var(--dark-2) !important;
    }



    /* Style the nav-menu on mobile to match the home page dropdown */
    .shop-nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
        gap: 16px;
        z-index: 1000;
        list-style: none;
        margin: 0;
    }

    .shop-nav-menu.open {
        display: flex !important;
    }

    body.dark-mode .shop-nav-menu {
        background: var(--dark-2);
    }

    .shop-search-wrapper {
        order: 3;
        width: 100% !important;
        margin-top: 15px !important;
        border-radius: 30px !important;
        /* Make wrapper pill-shaped */
    }

    .shop-search-wrapper input {
        border-radius: 0 !important;
        min-width: 0 !important;
        /* Allow input to shrink below its intrinsic width */
        width: 100%;
    }

    .shop-search-wrapper button {
        border-radius: 0 30px 30px 0 !important;
    }

    .shop-search-cat {
        display: block !important;
        max-width: 110px;
        padding: 0 20px 0 10px;
        font-size: 0.8rem;
        border-radius: 30px 0 0 30px;
    }

    .shop-bottombar {
        background: #fff !important;
        border: none !important;
    }

    .shop-bottombar .bottombar-inner {
        padding: 0 !important;
        margin: 15px 0;
        height: auto;
    }

    .shop-categories-wrapper {
        display: none !important;
        /* Hide red button */
    }

    .shop-nav-links {
        display: none !important;
        /* Hide pills, user wants dropdown in search */
    }

    .shop-nav-links .filter-btn {
        background: #fff !important;
        color: var(--text-main) !important;
        border: 1px solid #ddd !important;
        border-radius: 30px !important;
        padding: 8px 20px !important;
        white-space: nowrap !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .shop-nav-links .filter-btn.active {
        background: #2b4492 !important;
        /* Dark blue active pill */
        color: #fff !important;
        border-color: #2b4492 !important;
    }

    .shop-nav-links .filter-btn::after {
        display: none !important;
    }

    .shop-features-row {
        display: none !important;
    }

    .shop-ecommerce-hero {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        margin-top: 0px;
        margin-bottom: 20px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
        z-index: 2;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-actions {
        flex-direction: column;
        justify-content: center;
        gap: 15px !important;
    }

    .hero-image-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image-wrapper img {
        width: 80%;
        max-width: 300px;
    }

    .hot-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .hot-tabs::-webkit-scrollbar {
        display: none;
    }

    .sort-btn {
        flex: 0 0 auto;
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }



    .shop-layout-split {
        flex-direction: column !important;
        gap: 15px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .shop-trending-content {
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        /* Ensure no inner content breaks layout */
    }

    .shop-sidebar {
        display: none !important;
        /* Hide sidebar on mobile, categories are in search */
    }

    .products-grid.new-ecommerce-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .product-card {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .product-card .product-img {
        margin: -10px -10px 10px -10px !important;
        height: 170px !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .product-card img {
        height: 140px !important;
    }

    .product-card .product-desc {
        display: none !important;
        /* Hide description to keep it clean */
    }

    .product-card .product-cat {
        font-size: 0.65rem !important;
        margin-bottom: 4px !important;
        display: block !important;
        text-transform: uppercase;
    }

    .product-card h4 {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: var(--text-main) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
    }

    .product-card .rating {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }

    .product-card .product-bottom {
        margin-top: auto !important;
        padding-top: 10px !important;
        border-top: 1px solid var(--border-color) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .product-card .price {
        font-size: 1rem !important;
        color: var(--red) !important;
        margin: 0 !important;
        font-weight: 800 !important;
    }

    .product-card .add-to-cart-btn {
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
        background: var(--theme-red) !important;
        color: #fff !important;
        border-radius: 20px !important;
        border: none !important;
    }

    .badge-new,
    .badge-sale {
        top: 8px !important;
        left: 8px !important;
        padding: 3px 8px !important;
        font-size: 0.6rem !important;
    }

    .wishlist-btn {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }

    .shop-page-body {
        padding-bottom: 70px;
        /* Space for sticky mobile bottom bar */
    }
}

@media (max-width: 480px) {
    .products-grid.new-ecommerce-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .sort-btn {
        flex: 1 1 calc(50% - 10px);
    }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative;
}

.hero-slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero-slider-nav button {
    background: rgba(0,0,0,0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--theme-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.hero-slider-nav button:hover {
    background: var(--theme-red);
    color: white;
}

.hero-slider-dots {
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-dot.active {
    background: var(--theme-red);
    transform: scale(1.3);
}

@media (max-width: 991px) {
    .hero-slide {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    .hero-actions {
        justify-content: center;
    }
}