/* ============================================
   HAYDAY E-COMMERCE - MAIN STYLESHEET
   Ultra-clean, modern white theme
   ============================================ */

/* 1. CSS Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #111111;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

button {
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

/* 2. Typography
   ============================================ */
h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

h5 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

p {
    margin-bottom: 16px;
    line-height: 1.7;
}

small {
    font-size: 12px;
}

strong {
    font-weight: 600;
}

/* 3. Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.section-bg {
    background-color: #f8f8f8;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-link {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
}

.section-link:hover {
    color: #555;
    border-color: #555;
}

/* 4. Top Bar
   ============================================ */
.top-bar {
    background-color: #f8f8f8;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-text {
    color: #555;
    font-size: 12px;
}

.top-bar-text a {
    color: #111;
    font-weight: 500;
}

.top-bar-text a:hover {
    text-decoration: underline;
}

.top-bar-currency {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #ddd;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-switcher .dropdown-toggle:hover {
    border-color: #111;
    color: #111;
}

.lang-switcher .dropdown-toggle i.fa-globe {
    font-size: 13px;
}

.lang-switcher .dropdown-toggle i.fa-chevron-down {
    font-size: 8px;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.lang-switcher.open .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-switcher .dropdown-menu {
    top: calc(100% + 6px);
    min-width: 150px;
}

.lang-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
}

.lang-switcher .dropdown-item.active {
    font-weight: 600;
    background-color: #f8f8f8;
    color: #000;
}

/* 5. Header
   ============================================ */
.header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.header-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
}

.header-logo .logo-text:hover {
    color: #000;
}

.header-logo .logo-img {
    max-height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 6. Header Action Buttons
   ============================================ */
.header-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: all 0.3s ease;
}

.header-action-btn:hover {
    color: #555;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
}

/* 7. Search Bar
   ============================================ */
.search-bar {
    flex: 1;
    max-width: 480px;
    margin: 0 40px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    border: 1px solid #e5e5e5;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    border-radius: 0;
    transition: all 0.3s ease;
    background: #fff;
}

.search-input:focus {
    border-color: #000;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #333;
}

/* 8. Navigation
   ============================================ */
.nav {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.nav-list {
    display: flex;
    gap: 0;
    list-style: none;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: #111;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #f8f8f8;
}

.nav-item-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background-color: #f8f8f8;
    color: #000;
}

/* 9. Dropdown (generic)
   ============================================ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #f8f8f8;
}

.dropdown-item.active {
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 4px 0;
}

/* 10. Mobile Menu
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #111;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #111;
    padding: 4px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    color: #111;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: #f8f8f8;
}

.mobile-nav-group-title {
    display: block;
    padding: 14px 20px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.mobile-nav-sublink {
    display: block;
    padding: 10px 20px 10px 36px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-sublink:hover {
    background-color: #f8f8f8;
    color: #111;
}

.mobile-nav-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 8px 0;
}

.mobile-lang-switcher {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
}

.mobile-lang-btn {
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    font-size: 12px;
    font-weight: 500;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-lang-btn:hover {
    border-color: #000;
}

.mobile-lang-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* 11. Hero Slider
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
}

.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 0 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    z-index: 3;
}

.slide-content .container {
    position: relative;
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.slide-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}

.slide-content .btn {
    text-shadow: none;
    padding: 14px 40px;
    font-size: 14px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    border-radius: 4px;
}

.slider-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 12. Product Card
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-card-image {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f8f8f8;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-info {
    padding: 16px;
}

.product-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-title a {
    color: #111;
    text-decoration: none;
}

.product-card-title a:hover {
    color: #555;
}

.product-card-price {
    margin-bottom: 12px;
}

.product-card-actions {
    display: flex;
    gap: 8px;
}

/* 13. Price Styles
   ============================================ */
.price {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.sale-price {
    font-size: 16px;
    font-weight: 600;
    color: #e11d48;
}

.original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

/* 14. Badges
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.badge-sale {
    background-color: #e11d48;
    color: #fff;
}

.badge-featured {
    background-color: #000;
    color: #fff;
}

.badge-new {
    background-color: #000;
    color: #fff;
}

.badge-success {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge-warning {
    background-color: #fef9c3;
    color: #a16207;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background-color: #dbeafe;
    color: #2563eb;
}

.badge-inline {
    position: static;
}

/* 15. Category Card
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.category-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* 16. Product Detail
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
}

.product-detail-image {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding-top: 0;
}

.product-detail-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.product-detail-price {
    font-size: 24px;
    margin-bottom: 20px;
}

.product-detail-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 24px;
}

.product-detail-meta {
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}

.product-detail-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.product-detail-meta-label {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.product-detail-meta-value {
    font-weight: 500;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* 17. Cart Page
   ============================================ */
.cart-page {
    padding: 40px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #111;
    font-weight: 600;
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
}

.cart-item-name a {
    color: #111;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: #555;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: #dc2626;
}

.cart-summary {
    max-width: 400px;
    margin-left: auto;
    padding: 24px;
    background-color: #f8f8f8;
    margin-top: 32px;
    border-radius: 8px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.cart-summary-row:last-child {
    border-bottom: none;
}

.cart-summary-total {
    font-size: 18px;
    font-weight: 700;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

/* 18. Checkout Page
   ============================================ */
.checkout-page {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    padding: 40px 0;
}

.checkout-section {
    margin-bottom: 32px;
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.order-summary-card {
    background-color: #f8f8f8;
    padding: 24px;
    position: sticky;
    top: 120px;
    border-radius: 8px;
    height: fit-content;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.order-summary-item:last-child {
    border-bottom: none;
}

/* 19. Auth Pages
   ============================================ */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 48px;
    border-radius: 8px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #666;
}

.auth-footer a {
    color: #111;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e5e5e5;
}

.auth-divider::before {
    margin-right: 16px;
}

.auth-divider::after {
    margin-left: 16px;
}

/* 20. User Panel
   ============================================ */
.user-panel {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.user-sidebar {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 120px;
    border-radius: 8px;
}

.user-sidebar-header {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.user-sidebar-name {
    font-size: 16px;
    font-weight: 600;
}

.user-sidebar-email {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.user-sidebar-nav {
    list-style: none;
}

.user-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
}

.user-sidebar-link:hover {
    background-color: #f8f8f8;
    color: #000;
}

.user-sidebar-link.active {
    background-color: #f8f8f8;
    color: #000;
    font-weight: 600;
}

.user-sidebar-link i {
    width: 20px;
    text-align: center;
}

.user-content {
    min-width: 0;
}

/* 21. Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    font-family: inherit;
    border-radius: 0;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: transparent;
    color: #111;
    border: 1px solid #111;
}

.btn-secondary:hover {
    background-color: #111;
    color: #fff;
}

.btn-danger {
    background-color: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 11px;
}

.btn-lg {
    padding: 16px 48px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 22. Forms
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 0;
}

.form-control:focus {
    border-color: #000;
}

.form-control-error {
    border-color: #dc2626;
}

.field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    display: block;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    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: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-text {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #000;
}

.form-check label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

/* 23. Tables
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    background-color: #f8f8f8;
    border-bottom: 2px solid #e5e5e5;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}

.table tr:hover {
    background-color: #fafafa;
}

/* 24. Pagination
   ============================================ */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    color: #111;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.pagination .active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* 25. Alerts
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

.alert-dismissing {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    font-size: 16px;
    color: inherit;
    opacity: 0.6;
}

.alert-close:hover {
    opacity: 1;
}

/* 26. Breadcrumb
   ============================================ */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #111;
}

.breadcrumb-separator {
    margin: 0 8px;
}

/* 27. Language Tabs (admin)
   ============================================ */
.lang-tabs-container {
    margin-bottom: 0;
}

.lang-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 24px;
}

.lang-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-tab:hover {
    color: #111;
}

.lang-tab.active {
    color: #111;
    border-bottom-color: #000;
}

.lang-tab-pane {
    display: none;
}

.lang-tab-pane.active {
    display: block;
}

/* 28. Modal
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: #fff;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    border-radius: 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    padding: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 29. Footer
   ============================================ */
.footer {
    margin-top: auto;
}

.footer-newsletter {
    background-color: #111;
    padding: 48px 0;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.newsletter-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
    flex: 1;
    max-width: 400px;
}

.newsletter-input-wrap {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    background-color: #fff;
    color: #111;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #e5e5e5;
}

.footer-main {
    padding: 48px 0;
    background-color: #fafafa;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #111;
}

.footer-about-text {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: #000;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.footer-contact li i {
    width: 16px;
    text-align: center;
    color: #888;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    color: #555;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    background-color: #fafafa;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 12px;
    color: #888;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
}

.footer-bottom-links a {
    font-size: 12px;
    color: #888;
    margin-left: 20px;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #000;
}

/* 30. Quantity Selector
   ============================================ */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background-color: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.qty-btn:hover {
    background-color: #e5e5e5;
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    font-family: inherit;
    background: #fff;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* 31. Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* 32. Spinner
   ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 33. Toast
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    transform: translateX(120%);
    transition: all 0.3s ease;
    min-width: 280px;
}

.toast-visible {
    transform: translateX(0);
}

.toast-hiding {
    opacity: 0;
    transform: translateX(120%);
}

.toast-success {
    border-left: 3px solid #16a34a;
}

.toast-error {
    border-left: 3px solid #dc2626;
}

.toast-warning {
    border-left: 3px solid #d97706;
}

.toast-info {
    border-left: 3px solid #2563eb;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    margin-left: auto;
    font-size: 16px;
    padding: 0 4px;
    transition: all 0.3s ease;
}

.toast-close:hover {
    color: #333;
}

/* 34. Tooltip
   ============================================ */
.tooltip {
    position: absolute;
    background-color: #111;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.tooltip-visible {
    opacity: 1;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111;
}

/* 35. Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: #000;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* 36. Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.gap-4 {
    gap: 32px;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 48px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 48px;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 16px;
}

.p-3 {
    padding: 24px;
}

.p-4 {
    padding: 32px;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none;
}

.visible {
    visibility: visible;
}

.overflow-hidden {
    overflow: hidden;
}

.text-muted {
    color: #888;
}

.text-small {
    font-size: 12px;
}

.font-weight-bold {
    font-weight: 700;
}

.font-weight-medium {
    font-weight: 500;
}

/* 37. Flash Messages
   ============================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flash-message-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.flash-message-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.flash-message-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}

.flash-message-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

.flash-message-close {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    font-size: 16px;
    color: inherit;
    opacity: 0.6;
}

.flash-message-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 38. File Upload
   ============================================ */
.file-drop-zone {
    border: 2px dashed #e5e5e5;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
    border-radius: 8px;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #000;
    background-color: #f8f8f8;
}

.file-drop-zone-icon {
    font-size: 36px;
    color: #ccc;
    margin-bottom: 12px;
}

.file-drop-zone-text {
    font-size: 14px;
    color: #888;
}

.file-drop-zone-hint {
    font-size: 12px;
    color: #bbb;
    margin-top: 8px;
}

/* 39. Stat Cards
   ============================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 24px;
    text-align: center;
    border-radius: 8px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.stat-card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 4px;
}

/* 40. Animations
   ============================================ */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.4s ease forwards;
}

/* 41. Responsive
   ============================================ */

/* Search toggle button - hidden on desktop */
.search-toggle-btn {
    display: none;
}

/* Tablet - max 1024px */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-page {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-summary-card {
        position: static;
    }

    .nav-link {
        padding: 14px 16px;
    }
}

/* Mobile - max 768px */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .user-panel {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        position: static;
    }

    .search-bar {
        display: none;
    }

    .search-bar-visible {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background-color: #fff;
        padding: 12px 20px;
        border-bottom: 1px solid #e5e5e5;
        z-index: 100;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .search-toggle-btn {
        display: flex;
    }

    .slider-container {
        height: 300px;
    }

    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    .slide-content {
        padding: 30px 0 24px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
    }

    .slide-title {
        font-size: 28px;
        margin-bottom: 8px;
        letter-spacing: 0;
    }

    .slide-description {
        font-size: 16px;
        margin-bottom: 16px;
        max-width: 400px;
        line-height: 1.5;
    }

    .slide-content .btn {
        padding: 12px 32px;
        font-size: 13px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .section-padding {
        padding: 40px 0;
    }

    .section-title {
        font-size: 22px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cart-summary {
        width: 100%;
        max-width: 100%;
        margin: 24px auto 0;
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-inner {
        justify-content: center;
    }
}

/* Small Mobile - max 480px */
@media (max-width: 480px) {
    .slider-container {
        height: 220px;
    }

    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    .slide-content {
        padding: 20px 0 16px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
    }

    .slide-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .slide-description {
        font-size: 14px;
        margin-bottom: 12px;
        max-width: 280px;
    }

    .slide-content .btn {
        padding: 10px 24px;
        font-size: 12px;
    }

    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px;
        border: none;
    }

    .cart-table {
        display: block;
        overflow-x: auto;
    }

    .cart-summary {
        width: 100%;
        max-width: 100%;
        margin: 24px auto 0;
    }

    .container {
        padding: 0 16px;
    }

    .product-card-info {
        padding: 12px;
    }

    .product-card-title {
        font-size: 13px;
    }

    .price,
    .sale-price {
        font-size: 14px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 12px;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 13px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .header-logo .logo-text {
        font-size: 20px;
    }

    .header-logo .logo-img {
        max-height: 40px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Min-width breakpoint for search toggle */
@media (min-width: 769px) {
    .search-toggle-btn {
        display: none;
    }
}

/* 42. Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 43. Body flex layout already defined in base section */

/* 44. Coupon Area
   ============================================ */
.coupon-form {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.coupon-input:focus {
    border-color: #000;
}

.coupon-input::placeholder {
    color: #999;
}

/* 45. Search Toggle Mobile - already handled in responsive section */

/* Additional Utility: Selection */
::selection {
    background-color: #000;
    color: #fff;
}

/* Additional: Link underline animation */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #111;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Visually Hidden (accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Image placeholder */
.img-placeholder {
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Rating Stars */
.stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 14px;
}

.stars-empty {
    color: #e5e5e5;
}

/* Tabs generic */
.tabs {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 24px;
}

.tab {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab:hover {
    color: #111;
}

.tab.active {
    color: #111;
    border-bottom-color: #000;
}

/* Divider */
.divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 24px 0;
}

/* Tag */
.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    color: #555;
    border-radius: 4px;
}

/* Chip */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.chip:hover {
    border-color: #000;
}

.chip-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    padding: 0;
    line-height: 1;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f8f8f8;
}

.avatar-lg {
    width: 64px;
    height: 64px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 6px;
    background-color: #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #000;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.accordion-header:hover {
    color: #555;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
}

.accordion-content {
    padding: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* Wishlist button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #111;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
}

.wishlist-btn:hover {
    background: #fff;
    color: #e11d48;
}

.wishlist-btn.active {
    color: #e11d48;
    opacity: 1;
}

/* Quick view button */
.quick-view-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    font-family: inherit;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: #000;
}

/* Home Category Horizontal Scroll */
.home-category-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 24px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.home-category-grid::-webkit-scrollbar {
    height: 6px;
}
.home-category-grid::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 4px;
}
.home-category-grid::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.home-category-grid .category-card {
    flex: 0 0 calc(25% - 18px); /* Desktop: 4 items visible, rest scrollable */
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .home-category-grid .category-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .home-category-grid {
        gap: 16px;
    }
    .home-category-grid .category-card {
        flex: 0 0 calc(50% - 8px); /* Mobile: exactly 2 items visible */
    }
}
