/* ═══════════════════════════════════════════════
   NOR STORE — Professional CSS
   1. Reset & Variables
   2. Typography
   3. Layout & Grid
   4. Buttons
   5. Header
   6. Hero
   7. Categories
   8. Product Cards
   9. Shop Layout
  10. Product Detail
  11. Cart & Checkout
  12. Auth (Login/Register)
  13. Footer
  14. Forms
  15. Utilities
  16. Responsive
   ═══════════════════════════════════════════════ */

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

/* ─── 1. Reset & Variables ─── */
:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #000000;
    --accent-hover: #333333;
    --gray-bg: #f5f5f5;
    --gray-text: #777777;
    --gray-light: #999;
    --border: #e0e0e0;
    --border-light: rgba(0, 0, 0, 0.06);
    --container-padding: 5%;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition: all 0.35s var(--ease);
    --radius-sm: 4px;
    --radius-md: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

ul {
    margin: 0;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.site-content {
    flex: 1;
    min-height: 60vh;
    min-width: 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ─── 2. Typography ─── */
.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0 0 40px 0;
    position: relative;
    display: inline-block;
    line-height: 1.1;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.section-title-sm {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--primary);
}

/* ─── 3. Layout & Grid ─── */
.grid-auto-250 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid-auto-300 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ─── 4. Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--accent {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn--accent:hover {
    background: #333;
    border-color: #333;
}

.btn--outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ─── 5. Header ─── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--container-padding);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header--scrolled {
    padding: 14px var(--container-padding);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
}

.header__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header__logo-img {
    height: 30px;
}

.header__menu-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--primary);
}

.header__menu-close {
    display: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links__link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.nav-links__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

.nav-links__link:hover::after {
    width: 100%;
}

.nav-links__link--accent {
    font-weight: 800 !important;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary);
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.header__icon-btn:hover {
    opacity: 0.5;
    transform: scale(1.08);
}

.header__cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.search-bar {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--container-padding);
    background: #fff;
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    width: min(400px, 90vw);
    z-index: 101;
    gap: 10px;
}

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

.search-bar__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    padding: 8px 0;
    background: transparent;
}

/* ─── 6. Hero ─── */
.hero-section {
    height: clamp(400px, 85vh, 900px);
    background: #000 url('/assets/img/hero/hero-premium.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 var(--container-padding);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 25% 50%, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none; /* Crucial for slider buttons to work */
}

.hero-content {
    z-index: 2;
    max-width: 750px;
    pointer-events: none; /* Allow clicks to reach navigation buttons below */
}

.hero-content > *, .hero-btns {
    pointer-events: auto; /* Re-enable for text and buttons */
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(48px, 8vw, 130px);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -4px;
    text-transform: uppercase;
    margin: 0;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ─── Custom Slider Engine ─── */
.swiper { margin: 0 auto; position: relative; overflow: hidden; list-style: none; padding: 0; z-index: 1; display: block; }
.swiper-wrapper { position: relative; width: 100%; height: 100%; z-index: 1; display: flex; transition-property: transform; box-sizing: content-box; }
.swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; }

/* Home Advantages Slider Logic */
@media (min-width: 769px) {
    .advantages-slider.swiper {
        overflow: visible !important;
    }
    .advantages-slider .swiper-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        transform: none !important;
        width: 100% !important;
    }
    .advantages-slider .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }
}

.hero-slider {
    width: 100%;
    height: clamp(400px, 85vh, 900px);
}

.hero-slider .swiper-pagination {
    position: absolute; bottom: 30px; left: 0; width: 100%; text-align: center; z-index: 10;
}

.hero-slider .swiper-pagination-bullet {
    display: inline-block; background: #fff; opacity: 0.5; width: 30px; height: 3px; margin: 0 5px; cursor: pointer; transition: all 0.3s;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1; width: 50px;
}

.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev {
    position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; z-index: 2000; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0.5; transition: all 0.3s; pointer-events: auto;
}
.hero-slider .swiper-button-next { right: 30px; }
.hero-slider .swiper-button-prev { left: 30px; }
.hero-slider .swiper-button-next:hover, .hero-slider .swiper-button-prev:hover { opacity: 1; }

.hero-slider .swiper-button-next::after, .hero-slider .swiper-button-prev::after {
    font-family: serif; font-size: 32px; font-weight: 300; text-transform: none !important; letter-spacing: 0; font-variant: initial; line-height: 1;
}
.hero-slider .swiper-button-prev::after { content: '\276E'; }
.hero-slider .swiper-button-next::after { content: '\276F'; }

@media (max-width: 768px) {
    .hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { display: none; }
}

/* ─── 7. Categories ─── */
.category-card {
    height: clamp(350px, 50vw, 550px);
    position: relative;
    overflow: hidden;
    background: #eee;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

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

.category-label {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
    color: #fff;
    transition: padding 0.4s var(--ease);
}

.category-card:hover .category-label {
    padding-bottom: 40px;
}

.category-label h3 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}

/* ─── 8. Product Cards ─── */
.product-card {
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image-wrapper {
    aspect-ratio: 4/5;
    background: var(--gray-bg);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

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

.product-card h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.product-card .price {
    font-weight: 800;
    font-size: 16px;
    margin: 0;
}

/* ─── 9. Shop Layout ─── */
.shop-layout {
    display: flex;
    gap: 60px;
}

.shop-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.shop-main {
    flex: 1;
    min-width: 0;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-title {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

.sidebar-title-new {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.filter-radio input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.filter-radio input:checked+.radio-custom {
    border-color: #007bff;
}

.filter-radio input:checked+.radio-custom::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #007bff;
    border-radius: 50%;
}

.price-slider-custom {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
}

.price-slider-custom::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.shop-mobile-controls {
    display: none;
}

.sidebar-header-mobile {
    display: none;
}

/* Removed duplicate Product Detail section */

/* ─── 11. Cart & Checkout ─── */
.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-image {
    width: 90px;
    aspect-ratio: 1;
    background: var(--gray-bg);
    overflow: hidden;
}

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

.cart-item-info {
    min-width: 0;
}

.summary-card {
    background: var(--gray-bg);
    padding: 36px;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-text);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 20px;
    font-weight: 800;
}

/* ─── 12. Auth (Login / Register) ─── */
.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-form-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.auth-content-inner {
    width: 100%;
    max-width: 440px;
}

.auth-logo-top {
    height: 40px;
    margin-bottom: 40px;
    display: block;
}

.auth-title-large {
    font-family: 'Oswald', sans-serif;
    font-size: 44px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0 0 8px 0;
}

.auth-subtitle-small {
    color: var(--gray-text);
    font-size: 15px;
    margin: 0 0 36px 0;
}

.auth-input-modern {
    background: var(--gray-bg) !important;
    border: 1px solid var(--border) !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    height: auto !important;
    border-radius: 0 !important;
    transition: border-color 0.3s;
}

.auth-input-modern:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    outline: none !important;
}

.btn-lime {
    width: 100%;
    padding: 18px;
    background: #000;
    color: #fff;
    border: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    text-align: center;
}

.btn-lime:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    margin-top: 16px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-google:hover {
    background: var(--gray-bg);
}

.auth-image-column {
    background: #111 url('/assets/img/hero/hero-premium.png') center/cover no-repeat;
    position: relative;
    min-height: 100%;
}

.auth-image-column::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.15), transparent 50%);
}

.auth-alert {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

.auth-alert--error {
    background: #000;
    color: #fff;
}

.auth-alert--success {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #000;
}

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--primary);
}

/* ─── 13. Footer ─── */
.main-footer {
    background: #000;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 34px;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.footer-logo span {
    color: #fff;
}

.footer-section p {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.footer-section h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 24px 0;
    color: #fff;
}

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

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

.footer-section ul li a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer-newsletter__input {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.footer-newsletter__input:focus {
    border-color: #fff;
}

.footer-newsletter__btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 14px 20px;
    font-family: inherit;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.footer-newsletter__btn:hover {
    background: #ddd;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    border-top: 1px solid #1a1a1a;
    margin-top: 60px;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ─── 14. Forms ─── */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

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

.form-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* ─── 15. Utilities ─── */
.display-flex {
    display: flex;
}

.display-block {
    display: block;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-direction-column {
    flex-direction: column;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.width-100 {
    width: 100%;
}

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

/* Spacing */
.padding-y-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.padding-y-100 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.padding-20 {
    padding: 20px;
}

.padding-top-20 {
    padding-top: 20px;
}

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

.margin-top-40 {
    margin-top: 40px;
}

.margin-bottom-5 {
    margin-bottom: 5px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

.margin-bottom-15 {
    margin-bottom: 15px;
}

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

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

.margin-bottom-40 {
    margin-bottom: 40px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* Typography Utils */
.font-bold {
    font-weight: 700;
}

.font-size-11 {
    font-size: 11px;
}

.font-size-12 {
    font-size: 12px;
}

.font-size-13 {
    font-size: 13px;
}

.font-size-14 {
    font-size: 14px;
}

.font-size-16 {
    font-size: 16px;
}

.font-size-18 {
    font-size: 18px;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.text-muted {
    opacity: 0.7;
}

/* ─── 404 Error Page ─── */
.error-404-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 60px 20px;
}

.error-404-code {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(120px, 25vw, 220px);
    font-weight: 800;
    line-height: 1;
    color: #000;
    display: block;
    letter-spacing: -5px;
    background: linear-gradient(180deg, #000 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-404-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 15px 0 20px;
    color: #000;
}

.error-404-text {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Colors */
.color-black {
    color: #000;
}

.color-gray {
    color: var(--gray-text);
}

.color-red {
    color: #dc3545;
}

.color-accent {
    color: var(--accent);
}

.no-underline {
    text-decoration: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* Borders */
.border {
    border: 1px solid var(--border);
}

.border-top {
    border-top: 1px solid var(--border);
}

.border-bottom {
    border-bottom: 1px solid var(--border);
}

/* Lists */
.list-none {
    list-style: none;
    padding: 0;
    margin: 0;
}

.padding-y-5 {
    padding-top: 5px;
    padding-bottom: 5px;
}

.padding-y-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.padding-y-40 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.padding-y-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.padding-y-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.padding-y-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.padding-y-120 {
    padding-top: 120px;
    padding-bottom: 120px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: #fff;
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* ─── 16. Responsive ─── */

/* Tablets & Below */
@media (max-width: 992px) {
    :root {
        --container-padding: 6%;
    }

    /* Mobile Nav */
    .header__menu-trigger {
        display: flex;
    }

    .header__menu-close {
        display: block !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        padding: 100px 30px 40px;
        gap: 20px;
        z-index: 10000;
        /* Super high z-index */
        overflow-y: auto;
    }

    .nav-links--active {
        display: flex;
    }

    .nav-links__link {
        font-size: 24px;
        font-family: 'Oswald', sans-serif;
        letter-spacing: -0.5px;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    /* Grids */
    /* Shop Mobile Controls */
    .shop-mobile-controls {
        display: flex;
        gap: 12px;
        margin-bottom: 30px;
        align-items: center;
    }

    .filter-toggle-btn {
        width: 48px;
        height: 48px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .sort-selector-wrapper {
        flex: 1;
    }

    .sort-selector {
        width: 100%;
        height: 48px;
        padding: 0 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-family: inherit;
        font-size: 14px;
        background: #fff;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 18px;
    }

    .shop-layout {
        flex-direction: column;
        gap: 0;
    }

    .shop-sidebar {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 85% !important;
        max-width: 350px !important;
        height: 100vh !important;
        background: #fff;
        z-index: 10001;
        padding: 0;
        transition: left 0.4s var(--ease);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

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

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

    .sidebar-header-mobile h3 {
        font-family: 'Oswald', sans-serif;
        font-size: 18px;
        text-transform: uppercase;
        margin: 0;
    }

    .sidebar-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    .sidebar-section {
        padding: 0 25px 30px;
    }

    .shop-sidebar {
        width: 85%;
    }

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

    .product-detail-image {
        position: static;
        height: 400px;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .account-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .summary-card {
        position: static;
    }

    /* Auth */
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-image-column {
        display: none;
    }

    .auth-form-column {
        padding: 40px 24px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 5%;
    }

    .hero-title {
        letter-spacing: -2px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .page-title {
        font-size: 28px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .grid-auto-250,
    .grid-auto-300 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .grid-auto-250,
    .grid-auto-300 {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 16px;
    }

    .cart-item>.text-right {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .btn {
        padding: 14px 24px;
        font-size: 12px;
    }
}

.site-content {
    flex: 1;
    min-height: 60vh;
    background: #f8f9fa;
}

/* ─── 17. User Account (Backoffice Style) ─── */
.account-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
    max-width: 100%;
}

.account-sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.user-avatar-circle {
    width: 100px;
    height: 100px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    margin: 0 auto 25px;
    border: 5px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    margin: 0 0 5px;
}

.user-info p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    max-width: 100%;
}

.account-header {
    margin: 0 0 40px;
}

.account-header .section-title-sm {
    display: block;
    margin-bottom: 10px;
}

.account-header .page-title {
    display: block;
    margin: 0;
    position: relative;
}

.admin-table-card {
    padding: 0;
    overflow: hidden;
}

.admin-table-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.admin-table-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th {
    text-align: left;
    padding: 18px 30px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
    font-weight: 800;
}

.admin-table td {
    padding: 22px 30px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: #333;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

.badge-paid {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.badge-shipped {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #e0f2fe;
}

.badge-delivered {
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ede9fe;
}

.badge-cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

.account-nav-list {
    list-style: none;
    padding: 0;
    margin: 35px 0 0;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.account-nav-link:hover,
.account-nav-link.active {
    background: #f8f8f8;
    color: #000;
}

.account-nav-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .account-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px;
    }

    .account-sidebar-card,
    .account-main,
    .admin-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .account-sidebar-card {
        padding: 40px 20px;
    }

    .account-header {
        width: 100% !important;
        text-align: center !important;
        margin-top: 40px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .account-header .section-title-sm,
    .account-header .page-title {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    .page-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .admin-table-header {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .account-sidebar-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .user-avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 15px;
    }

    .account-nav-list {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 30px;
    }

    .account-nav-link {
        padding: 12px;
        justify-content: center;
        font-size: 11px;
        border: 1px solid #eee;
        background: #fafafa;
    }

    .account-nav-link svg {
        width: 16px;
        height: 16px;
    }
}

.padding-y-100-fixed {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

@media (max-width: 768px) {
    .padding-y-100-fixed {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

.padding-y-100 {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .padding-y-100 {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
    }
}

/* ─── 10. Product Detail Layout (Modern Grid) ─── */
.product-header-mobile {
    display: none;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 20px !important;
}

.product-title-mobile {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px;
    line-height: 1.1;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.product-price-mobile {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; /* Reduced gap from 40px to 20px for mobile */
}

@media (min-width: 992px) {
    .product-main-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 80px;
        align-items: start;
    }
    .product-header-desktop { display: block; }
    .product-header-mobile { display: none; }
    .product-gallery { position: sticky; top: 120px; }
}

@media (max-width: 991px) {
    .product-header-desktop { display: none; }
    .product-header-mobile { display: block; }
    .product-main-grid { grid-template-columns: 1fr; gap: 15px !important; }
}

/* Gallery */
.main-image-viewport {
    width: 100%;
    aspect-ratio: 4/5;
    background: #fdfdfd;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px; /* Reduced from 20px */
    border: 1px solid #f0f0f0;
}
@media (max-width: 991px) {
    .main-image-viewport {
        max-height: 50vh; /* Safety limit to keep info visible */
    }
}

.thumbnails-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .thumbnails-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        overflow-x: visible;
    }
    .thumb-item {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
}

.thumb-item {
    width: 80px; height: 80px; flex-shrink: 0;
    border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; opacity: 0.6; transition: all 0.3s;
}
.thumb-item.active, .thumb-item:hover { border-color: #000; opacity: 1; }

/* Info Aside */
.product-detail-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 10px 0;
    letter-spacing: -1.5px;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 30px 0;
}

.product-description-text {
    line-height: 1.6;
    color: #444;
    font-size: 14px;
    margin-bottom: 25px; /* Reduced from 40px */
}

/* Form */
.form-group-custom { margin-bottom: 30px; }
.label-caps {
    display: block; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    color: #999; margin-bottom: 12px;
}

.size-boxes { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-hidden { display: none; }
.box-visual {
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #ddd; cursor: pointer; font-weight: 700; transition: all 0.2s;
}
.box-visual:hover { border-color: #000; }
.radio-hidden:checked + .box-visual { background: #000; color: #fff; border-color: #000; }

.qty-wrapper { display: flex; align-items: center; gap: 15px; }
.qty-input-field {
    width: 80px; padding: 12px; border: 1px solid #ddd; text-align: center; font-weight: 700;
}
.stock-hint { font-size: 12px; color: #888; }

.btn-black-wide {
    width: 100%; border: none; background: #000; color: #fff;
    padding: 22px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 2px; cursor: pointer; transition: all 0.3s;
}
.btn-black-wide:hover:not(:disabled) { background: #333; transform: translateY(-2px); }
.btn-black-wide:disabled { background: #ccc; cursor: not-allowed; }

.extra-info-footer {
    margin-top: 40px; padding-top: 25px; border-top: 1px solid #eee;
}
.extra-info-footer p { font-size: 13px; color: #777; margin-bottom: 10px; }
.extra-info-footer i { margin-right: 8px; width: 16px; text-align: center; }