@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #b71218;
    --primary-dark: #9c0f14;
    --secondary: #282828;
    --text-light: #888;
    --text-dark: #333;
    --white: #fff;
    --bg-light: #f7f7f7;
    --border: #e5e5e5;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
p { margin-bottom: 10px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.row > [class*="col-"] {
    padding: 0 15px;
}

.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-6 { width: 50%; }
.col-8 { width: 66.666%; }
.col-12 { width: 100%; }

.top-bar {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.top-bar span {
    color: var(--primary);
    font-weight: 600;
}

header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    gap: 20px;
}

.header-inner .main-nav {
    margin: 0 auto;
}

.header-inner .header-right {
    margin-left: auto;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.logo > span:first-of-type {
    color: var(--primary);
    font-size: 36px;
    margin-left: 2px;
    line-height: 1;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.logo-tagline {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-light);
    width: 100%;
    letter-spacing: 1px;
    margin-top: -4px;
    margin-left: 2px;
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--secondary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav > li { position: relative; }

.main-nav > li > a {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    border-radius: 6px;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
    color: var(--primary);
    background: rgba(183,18,24,0.05);
}

.main-nav > li > a i { font-size: 10px; transition: var(--transition); }
.main-nav > li:hover > a i { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: var(--radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.main-nav > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown li a:hover {
    background: rgba(183,18,24,0.05);
    color: var(--primary);
    padding-left: 25px;
}

.dropdown li a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* NESTED DROPDOWN (3rd level) */
.dropdown li.has-sub { position:relative; }
.dropdown li.has-sub > a { display:flex; align-items:center; }
.dropdown-submenu { position:absolute; left:100%; top:0; background:var(--white); min-width:220px; box-shadow:0 10px 40px rgba(0,0,0,0.12); border-radius:var(--radius); padding:10px 0; opacity:0; visibility:hidden; transform:translateX(-10px); transition:var(--transition); z-index:100; }
.dropdown li.has-sub:hover .dropdown-submenu { opacity:1; visibility:visible; transform:translateX(0); }
.dropdown-submenu li a { padding:10px 20px; display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-dark); transition:var(--transition); }
.dropdown-submenu li a:hover { background:rgba(183,18,24,0.05); color:var(--primary); padding-left:25px; }
.dropdown-submenu li a img { width:20px; height:20px; object-fit:contain; }

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-right a {
    font-size: 20px;
    color: var(--secondary);
    transition: var(--transition);
    position: relative;
}

.header-right a:hover { color: var(--primary); }

.search-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 20px;
    color: var(--secondary);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle:hover { color: var(--primary); }

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.search-bar {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 0;
}

.search-bar.active { display: block; }

.search-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    padding: 6px 0;
}

.search-bar .search-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
}

.search-overlay.active {
    display: block;
}

.search-overlay.active .search-bar {
    display: block;
}

.search-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.search-bar-inner {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 15px 0;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.search-form input {
    flex: 1;
    padding: 14px 50px 14px 48px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.search-form input::placeholder {
    color: #aaa;
}

.search-form .search-close {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    transition: var(--transition);
}

.search-form .search-close:hover {
    color: var(--secondary);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.search-results-dropdown a:not(.search-view-all) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: var(--transition);
}

.search-results-dropdown a:not(.search-view-all):hover {
    background: var(--bg-light);
}

.search-view-all {
    display: block;
    padding: 12px 20px;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid var(--border);
    transition: var(--transition);
}

.search-view-all:hover {
    background: var(--bg-light);
}

.search-result-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 20px !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
    color: inherit !important;
}

.search-result-item:hover {
    background: var(--bg-light) !important;
}

.search-result-img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.search-result-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.search-result-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--secondary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.search-result-price {
    font-size: 13px !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    max-height: 600px;
}

.slider-container {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-btn:hover { background: var(--primary); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots span.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
}

.section-title p {
    color: var(--text-light);
    margin-top: 8px;
    font-size: 14px;
}

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

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
}

.shop-all {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.shop-all:hover { gap: 10px; }

.category-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-banner:hover img { transform: scale(1.05); }

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
}

.banner-overlay h3 {
    font-size: 18px;
    font-weight: 600;
}

.banner-overlay p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.product-img, a.product-img {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card .product-img, .product-card a.product-img {
    aspect-ratio: 1/1;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge, .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.badge.new { background: #2d8a4e; }

.product-overlay {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateX(0);
}

.product-overlay button,
.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--secondary);
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-overlay button:hover,
.product-actions button:hover {
    background: var(--primary);
    color: var(--white);
}

.product-actions {
    display: flex;
    gap: 6px;
}

.product-body {
    padding: 15px;
}

.product-body .product-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 40px;
}

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

.product-price .current { color: var(--primary); font-weight: 700; }

.product-price .old,
.product-price .old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}

.product-price .discount {
    font-size: 12px;
    color: #2d8a4e;
    font-weight: 600;
    margin-left: 6px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover { background: var(--primary); }

.add-to-cart {
    cursor: pointer;
}

.banner-full {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 350px;
}

.banner-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 80%;
}

.banner-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(183,18,24,0.3);
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-lg { padding: 14px 40px; font-size: 15px; }
.btn-sm { padding: 8px 20px; font-size: 12px; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

.btn-dark { background: var(--secondary); }
.btn-dark:hover { background: #1a1a1a; }

.btn-wishlist-detail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist-detail:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.buy-now {
    background: var(--secondary);
    color: var(--white);
}

.buy-now:hover { background: #1a1a1a; }

footer {
    background: var(--secondary);
    color: #ccc;
    padding: 0;
}

.footer-top { padding: 60px 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-col .logo {
    color: var(--white);
    margin-bottom: 15px;
}

.about-col p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

.footer-col ul li a {
    color: #aaa;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--white);
}
.footer-social a[href*="facebook"]:hover { background: #1877f2; }
.footer-social a[href*="instagram"]:hover { background: #e4405f; }
.footer-social a[href*="youtube"]:hover { background: #ff0000; }
.footer-social a[href*="wa.me"]:hover { background: #25d366; }
.footer-social a[href*="linkedin"]:hover { background: #0a66c2; }

.page-banner {
    background: linear-gradient(rgba(40,40,40,0.8), rgba(40,40,40,0.8)), url('../images/richkid-web-banner-wide-01.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 0;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    margin-top: 10px;
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--white); }

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-content { min-width: 0; }

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.sidebar-widget ul li { margin-bottom: 8px; }

.sidebar-widget ul li a {
    font-size: 14px;
    color: #555;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget ul li a:hover,
.sidebar-widget ul li a.active {
    color: var(--primary);
    padding-left: 5px;
}

.sidebar-widget ul li a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.price-filter {
    margin-top: 8px !important;
}

.price-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.price-input {
    flex: 1 !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 7px 6px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    font-size: 12px !important;
    text-align: center !important;
    outline: none !important;
    -moz-appearance: textfield !important;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.price-input:focus {
    border-color: var(--primary) !important;
}

.price-sep {
    color: #bbb !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
}

.price-btn {
    padding: 7px 14px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.price-btn:hover {
    opacity: 0.85 !important;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.result-count {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.cart-page { padding: 40px 0; }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table thead {
    background: var(--secondary);
    color: var(--white);
}

.cart-table th {
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.cart-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-product .product-name { font-weight: 500; min-height: auto; }

.qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.remove-btn {
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.remove-btn:hover { transform: scale(1.2); }

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.cart-totals {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 400px;
    margin-left: auto;
    margin-top: 30px;
}

.cart-totals h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.total-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 10px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
}

.checkout-btn:hover { background: var(--primary-dark); }

.checkout-page { padding: 40px 0; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.checkout-form { min-width: 0; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183,18,24,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkout-review {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.checkout-review h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.checkout-review .review-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.account-page { padding: 40px 0; }

.account-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.account-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.account-box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.account-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.about-hero img {
    width: 100%;
    border-radius: var(--radius);
}

.about-hero h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-hero p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover { transform: translateY(-5px); }

.feature-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(183,18,24,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--primary);
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(183,18,24,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.info-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
    margin-bottom: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183,18,24,0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

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

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-gallery {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 15px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
    order: 2;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    order: 1;
}

.thumb {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--primary);
}

.product-info .product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    color: #f5a623;
    font-size: 14px;
}

.product-rating span {
    color: var(--text-light);
    font-size: 13px;
}

.product-info .product-price {
    font-size: 28px;
    margin-bottom: 15px;
}

.product-info .product-price .old {
    font-size: 18px;
}

.product-info .product-price .discount {
    font-size: 14px;
}

.product-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.product-variations {
    margin-bottom: 20px;
}

.variation-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.variation-row label {
    font-size: 14px;
    font-weight: 600;
    min-width: 60px;
    color: var(--secondary);
}

.variation-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.var-btn {
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.var-btn:hover { border-color: var(--primary); color: var(--primary); }

.var-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.color-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid var(--border);
}

.color-btn.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary); }

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-minus,
.qty-plus {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-minus:hover,
.qty-plus:hover { background: var(--border); }

.qty-selector input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.product-actions-detail {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-meta {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.product-meta p {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.product-meta p strong { color: var(--secondary); }
.product-meta p a { color: var(--primary); }
.product-meta p a:hover { text-decoration: underline; }

.product-tabs {
    background: var(--white);
    padding: 40px 0;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.tab-btn:hover { color: var(--secondary); }

.tab-btn.active { color: var(--primary); font-weight: 600; }

.tab-btn.active::after { width: 100%; }

.tabs-content { min-height: 200px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
}

.tab-panel p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

.tab-panel ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.tab-panel ul li {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.related-products .product-grid {
    margin-top: 30px;
}

.review-stars {
    color: #f5a623;
    font-size: 13px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-item strong {
    font-size: 14px;
    color: var(--secondary);
}

.review-item p {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
}

.review-item:not(:last-child) {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 9998;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu.open { left: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
}

.mobile-menu ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-menu ul li a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-menu ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.sub-menu {
    padding-left: 20px;
    display: none;
}

.sub-menu.open { display: block; }

.mobile-sub { display: none; }
.mobile-sub.open { display: block; }

.mobile-sub-toggle { cursor: pointer; }

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    display: none;
}

.mobile-menu-backdrop.open { display: block; }

.mobile-nav-item { position: relative; }

.toggle-sub {
    position: absolute;
    right: 0;
    top: 8px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--secondary);
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart .icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.empty-cart p {
    color: #888;
    margin-bottom: 25px;
}

.mobile-only { display: none; }
.desktop-only { display: block; }

/* Filter Sidebar Off-canvas */
.sidebar-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
}

.filter-close {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    padding: 0;
    line-height: 1;
}

.filter-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
}

.filter-backdrop.open { display: block; }

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-toggle-btn.mobile-only {
    display: none;
}

.filter-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ======= RESPONSIVE ======= */

/* Tablet (max 992px) */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-banners { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        background: var(--white);
        z-index: 9998;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transition: 0.3s ease;
        overflow-y: auto;
        padding: 20px;
    }
    .sidebar.open { left: 0; }
    .sidebar-header { display: flex; }
    .checkout-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .about-hero { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-gallery { grid-template-columns: 1fr; position: static; }
    .product-gallery .main-image { order: unset; }
    .product-gallery .thumbnails { order: unset; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; gap: 8px; padding-bottom: 5px; }
    .thumbnails::-webkit-scrollbar { height: 3px; }
    .thumbnails::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
    .thumb { width: 70px; height: 70px; flex-shrink: 0; }
    .mobile-only { display: block; }
    .filter-toggle-btn.mobile-only { display: inline-flex; }
    .desktop-only { display: none; }
    .hero-slider { max-height: 350px; }
    .banner-content h2 { font-size: 24px; }
    .slider-btn { width: 36px; height: 36px; font-size: 14px; }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
    .header-right a { font-size: 18px; }
    .cart-count { width: 18px; height: 18px; font-size: 10px; line-height: 18px; }
    .dropdown { display: none !important; }
    .container { padding: 0 20px; }
    .section-header h2 { font-size: 20px; }
    .product-card .add-to-cart-btn { padding: 8px; font-size: 12px; }
    .info-item { padding: 15px; }
    .contact-form { padding: 20px; }
    .result-count { font-size: 13px; }
    .sort-select { font-size: 13px; }
    .pagination a { width: 36px; height: 36px; font-size: 13px; }
    .banner-full { max-height: 280px; }
    .banner-full .banner-content { padding: 20px; }
    .review-item { padding: 15px; }
    .qty-selector input { width: 45px; height: 38px; font-size: 15px; }
    .qty-minus, .qty-plus { width: 38px; height: 38px; font-size: 16px; }
    .var-btn { min-width: 38px; height: 38px; font-size: 13px; }
    .about-col h3 { font-size: 22px; }
    .account-box { padding: 25px; }
    .success-card { padding: 40px 25px; }
    .success-actions { flex-direction: column; align-items: center; }
    .success-actions .btn { width: 100%; }
}

/* Phone (max 768px) */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-banners { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
    .cart-table thead { display: none; }
    .cart-table td { display: block; text-align: right; padding: 10px 15px; width: 100%; }
    .cart-table td::before { content: attr(data-label); float: left; font-weight: 600; color: var(--secondary); }
    .cart-table td:last-child { border-bottom: 1px solid var(--border); }
    .cart-product { justify-content: flex-end; }
    .cart-product img { width: 70px; height: 70px; }
    .cart-actions { flex-direction: column; gap: 10px; }
    .cart-totals { max-width: 100%; }
    .cart-totals h3 { font-size: 18px; }
    .cart-totals table td { padding: 10px 0; font-size: 14px; }
    .checkout-btn, .place-order-btn { width: 100%; text-align: center; }
    .section-title h2 { font-size: 22px; }
    .section-header h2 { font-size: 18px; }
    .page-banner { padding: 50px 0; }
    .page-banner h1 { font-size: 28px; }
    .page-banner .breadcrumb { font-size: 13px; }
    .hero-slider { max-height: 250px; }
    .banner-full { max-height: 200px; }
    .banner-content h2 { font-size: 18px; }
    .banner-content p { font-size: 13px; }
    .account-layout { gap: 20px; }
    .features-grid { grid-template-columns: 1fr; gap: 15px; }
    .form-row { grid-template-columns: 1fr; gap: 10px; }
    .product-overlay { opacity: 1; transform: translateX(0); }
    .product-tabs { padding: 20px 0; }
    .tabs-header { overflow-x: auto; gap: 0; -webkit-overflow-scrolling: touch; }
    .tabs-header::-webkit-scrollbar { display: none; }
    .tab-btn { white-space: nowrap; padding: 10px 16px; font-size: 13px; flex-shrink: 0; }
    .product-info h1 { font-size: 22px; }
    .product-info .product-price { font-size: 22px; }
    .product-actions-detail { flex-direction: column; }
    .product-actions-detail .btn { width: 100%; justify-content: center; }
    .product-meta { font-size: 13px; }
    .product-meta p { margin-bottom: 6px; }
    .feature-card { padding: 25px 15px; }
    .feature-card .icon { font-size: 32px; }
    .feature-card h4 { font-size: 16px; }
    .review-item strong { font-size: 14px; }
    .review-stars { font-size: 13px; }
    .footer-col { padding: 0 15px; }
    .footer-col h3, .footer-col h4 { font-size: 16px; margin-bottom: 12px; }
    .footer-col ul li a { font-size: 13px; padding: 5px 0; }
    .about-col p { font-size: 13px; }
    .info-item i { font-size: 22px; width: 45px; height: 45px; line-height: 45px; }
    .info-item h4 { font-size: 15px; }
    .contact-form input, .contact-form textarea { padding: 12px 15px; font-size: 14px; }
    .account-box h3 { font-size: 20px; }
    .account-box label { font-size: 13px; }
    .account-box input { padding: 12px 15px; font-size: 14px; }
    .shop-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .result-count { font-size: 13px; }
    .sort-select { width: 100%; }
    .sidebar-widget h3 { font-size: 15px; }
    .sidebar-widget ul li a { padding: 8px 0; font-size: 13px; }
    .widget-banner img { width: 100%; }
    .pagination { gap: 5px; }
    .pagination a { width: 34px; height: 34px; font-size: 12px; }
    .single-category-banner { height: 150px; }
    .single-category-banner h2 { font-size: 24px; }
    .product-category { font-size: 11px; }
    .success-card { padding: 35px 20px; }
    .success-card .icon { font-size: 50px; }
    .success-card h2 { font-size: 22px; }
    .success-details { padding: 15px; }
    .product-variations { gap: 12px; }
    .variation-row { gap: 8px; }
    .variation-row label { font-size: 13px; min-width: 50px; }
    .qty-selector input { width: 40px; height: 34px; }
    .qty-minus, .qty-plus { width: 34px; height: 34px; }
    .product-rating { font-size: 13px; }
    .product-desc { font-size: 14px; line-height: 1.7; }
    .tab-panel h3 { font-size: 16px; }
    .tab-panel p, .tab-panel li { font-size: 13px; }
    .checkout-review h3 { font-size: 16px; }
    .checkout-review .cart-totals h3 { font-size: 16px; }
    .checkout-form h3 { font-size: 16px; }
    .empty-cart { padding: 50px 15px; }
    .empty-cart .icon { font-size: 60px; }
    .empty-cart h3 { font-size: 18px; }
}

/* Small Phone (max 480px) */
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .section { padding: 25px 0; }
    .container { padding: 0 12px; }
    .header-inner { padding: 8px 12px; }
    .logo { font-size: 20px; }
    .logo img { max-height: 36px; }
    .logo > span:first-of-type { font-size: 26px; }
    .logo-tagline { font-size: 8px; margin-top: -2px; }
    .nav-toggle { font-size: 20px; }
    .top-bar { font-size: 11px; padding: 6px 0; }
    .header-right a { font-size: 16px; }
    .cart-count { width: 16px; height: 16px; font-size: 9px; line-height: 16px; right: -8px; top: -6px; }
    .product-body { padding: 10px; }
    .product-name { font-size: 11px; min-height: 30px; }
    .product-price { font-size: 13px; }
    .product-price .old-price { font-size: 11px; }
    .btn { padding: 10px 20px; font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-sm { padding: 6px 14px; font-size: 11px; min-height: 36px; }
    .product-card .add-to-cart-btn { padding: 8px; font-size: 11px; min-height: 36px; }
    .product-img .product-actions button { width: 34px; height: 34px; font-size: 14px; }
    .cart-product img { width: 50px; height: 50px; }
    .page-banner { padding: 25px 0; }
    .page-banner h1 { font-size: 20px; }
    .page-banner .breadcrumb { font-size: 12px; }
    .about-hero { padding: 25px 0; }
    .contact-layout { padding: 25px 0; }
    .col-3, .col-4, .col-6 { width: 100%; }
    .hero-slider { max-height: 180px; }
    .slider-dots { bottom: 8px; }
    .slider-dots span { width: 8px; height: 8px; }
    .slider-btn { width: 30px; height: 30px; font-size: 12px; }
    .section-header { margin-bottom: 15px; }
    .section-header h2 { font-size: 16px; }
    .shop-all { font-size: 12px; }
    .cart-table td { font-size: 13px; padding: 8px 12px; }
    .qty-selector input { width: 36px; height: 32px; font-size: 14px; }
    .qty-minus, .qty-plus { width: 32px; height: 32px; font-size: 14px; }
    .remove-btn { font-size: 16px; }
    .cart-actions .btn { width: 100%; }
    .coupon-input { flex-direction: column; gap: 8px; }
    .coupon-input input { width: 100%; }
    .coupon-input button { width: 100%; }
    .feature-card { padding: 20px 12px; }
    .feature-card .icon { font-size: 28px; margin-bottom: 10px; }
    .feature-card h4 { font-size: 14px; }
    .feature-card p { font-size: 12px; }
    .form-row { gap: 8px; }
    .form-group label { font-size: 12px; margin-bottom: 4px; }
    .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; font-size: 13px; }
    .account-box { padding: 20px; }
    .account-box h3 { font-size: 18px; }
    .account-box .btn { width: 100%; }
    .account-layout { gap: 15px; }
    .mobile-menu { width: 260px; padding: 15px; }
    .mobile-menu ul li a { font-size: 14px; padding: 10px 0; }
    .sub-menu { padding-left: 15px; }
    .toggle-sub { width: 28px; height: 28px; font-size: 16px; top: 6px; }
    .page-banner h1 { font-size: 20px; }
    .info-item h4 { font-size: 14px; }
    .info-item p { font-size: 13px; }
    .info-item i { width: 40px; height: 40px; line-height: 40px; font-size: 18px; }
    .contact-form h3 { font-size: 16px; }
    .contact-form input, .contact-form textarea { font-size: 13px; padding: 10px 12px; }
    .contact-form textarea { height: 100px; }
    .review-item { padding: 12px; }
    .success-card { padding: 25px 15px; }
    .success-card .icon { font-size: 44px; margin-bottom: 12px; }
    .success-card h2 { font-size: 20px; }
    .success-details { padding: 12px; }
    .success-details .detail-row { padding: 6px 0; font-size: 13px; }
    .success-actions { margin-top: 20px; }
    .success-actions .btn { min-width: auto; }
    .product-actions-detail .btn-wishlist-detail { width: 44px; height: 44px; }
    .product-meta { font-size: 12px; }
    .footer-top { padding: 40px 0 0; }
    .footer-bottom { padding: 15px 0; font-size: 12px; }
    .footer-col { margin-bottom: 20px; }
    .footer-col h3, .footer-col h4 { font-size: 15px; }
    .footer-social span { font-size: 13px; }
    .footer-social .btn { font-size: 11px; padding: 6px 12px; }
    .tab-btn { font-size: 12px; padding: 8px 12px; }
    .product-info h1 { font-size: 20px; }
    .product-info .product-price { font-size: 20px; }
    .product-desc { font-size: 13px; }
    .product-rating { font-size: 12px; }
    .variation-row label { font-size: 12px; }
    .var-btn { min-width: 34px; height: 34px; font-size: 12px; }
    .color-btn { width: 28px; height: 28px; }
    .shop-header { padding: 15px 0; }
    .sidebar { padding: 15px 0; }
    .sidebar-widget { margin-bottom: 20px; }
    .single-category-banner { height: 120px; }
    .single-category-banner h2 { font-size: 20px; }
    .checkout-layout { gap: 20px; }
    .checkout-form { padding: 0; }
    .checkout-review { padding: 0; }
    .checkout-review .cart-totals { padding: 15px; }
    .about-hero .about-text h2 { font-size: 20px; }
    .about-hero .about-text p { font-size: 13px; }
    .contact-layout .contact-info h2 { font-size: 18px; }
    .contact-layout .contact-form h3 { font-size: 16px; }
    .thank-you-page .success-card { box-shadow: none; padding: 20px 10px; }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover { transform: none; box-shadow: var(--shadow); }
    .product-card:hover .product-img img { transform: none; }
    .product-actions { opacity: 1; transform: translateX(0); }
    .product-card .add-to-cart-btn { opacity: 1; }
    .product-overlay { opacity: 1; transform: translateY(0); }
    .category-banner:hover img { transform: none; }
    .main-nav > li:hover > a i { transform: none; }
    .btn:hover { transform: none; }
    .product-img .product-actions button { min-width: 36px; min-height: 36px; }
    .thumb:hover { opacity: 0.6; border-color: transparent; }
    .thumb.active { opacity: 1; border-color: var(--primary); }
}

/* Smooth scroll for mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

input, textarea, select, button {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Thank You Page */
.success-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}
.success-card .icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}
.success-card .icon i {
    display: block;
}
.success-card h2 {
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 15px;
}
.success-card p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}
.success-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}
.success-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.success-details .detail-row:last-child {
    border-bottom: none;
}
.success-details .detail-row span:first-child {
    color: #888;
    font-size: 14px;
}
.success-details .detail-row span:last-child {
    font-weight: 600;
    color: var(--secondary);
}
.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}
.success-actions .btn {
    min-width: 180px;
    text-align: center;
}

/* ======= FLOATING BUTTONS ======= */
.float-btns {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9995;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}
.float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.float-btn {
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.float-btns.show .float-btn {
    opacity: 1;
    visibility: visible;
}
.float-btn-whatsapp {
    background: #25d366;
}
.float-btn-whatsapp:hover {
    background: #1da954;
}
.float-btn-top {
    background: var(--primary);
}
.float-btn-top:hover {
    background: var(--primary-dark);
}

@media (max-width: 480px) {
    .float-btn { width: 42px; height: 42px; font-size: 17px; }
    .float-btns { bottom: 15px; right: 12px; gap: 8px; }
}

/* ======= CART DRAWER ======= */
.cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-drawer-backdrop.open {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
}
.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 {
    font-size: 18px;
    color: var(--secondary);
    margin: 0;
}
.cart-drawer-header h3 span {
    color: var(--text-light);
    font-weight: 400;
    font-size: 14px;
}
.cart-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
}
.cart-drawer-close:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}
.cart-drawer-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-item:last-child {
    border-bottom: none;
}
.cart-drawer-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-drawer-item-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 4px;
    line-height: 1.3;
}
.cart-drawer-item-info .price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.cart-drawer-item-info .qty {
    font-size: 12px;
    color: var(--text-light);
}
.cart-drawer-item-remove {
    border: none;
    background: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}
.cart-drawer-qty { display:flex; align-items:center; gap:6px; margin-top:4px; }
.cart-drawer-qty button { width:24px; height:24px; border:1px solid var(--border); background:#fff; border-radius:4px; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; color:var(--secondary); transition:all 0.2s; }
.cart-drawer-qty button:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.cart-drawer-qty span { font-size:13px; font-weight:600; min-width:12px; text-align:center; }

.cart-drawer-item-remove:hover {
    color: var(--primary);
}

.cart-drawer-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.cart-drawer-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}
.cart-drawer-empty p {
    font-size: 14px;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}
.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
}
.cart-drawer-subtotal span:last-child {
    color: var(--primary);
}
.cart-drawer-footer .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}
.cart-drawer-footer .btn-outline {
    background: none;
    border: 2px solid var(--border);
    color: var(--secondary);
}
.cart-drawer-footer .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 480px) {
    .cart-drawer { width: 100%; max-width: 100%; }
    .cart-drawer-item { grid-template-columns: 60px 1fr auto; }
    .cart-drawer-item img { width: 60px; height: 60px; }
    .cart-drawer-header h3 { font-size: 16px; }
}
