/* =========================================================
   Linea Media Theme — style.css
   Dark tech aesthetic: navy/charcoal + electric blue accent
   No Bootstrap — 100% custom
   ========================================================= */

/* ---------------------------------------------------------
   CSS Custom Properties
   --------------------------------------------------------- */
:root {
    --bg-page:      #0d1117;
    --bg-surface:   #161b22;
    --bg-card:      #1c2128;
    --accent:       #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.15);
    --text-primary: #e6edf3;
    --text-muted:   #8b949e;
    --border:       #30363d;
    --danger:       #e63946;
    --nav-height:   64px;
}

/* ---------------------------------------------------------
   Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ---------------------------------------------------------
   Utilities
   --------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge--danger {
    background-color: var(--danger);
    color: #fff;
}

.badge--accent {
    background-color: var(--accent);
    color: #fff;
}

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    width: 100%;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo */
.nav-logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* Main nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Nav actions — right side */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Cart button */
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    text-decoration: none;
}

.cart-btn:hover {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--text-primary);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background-color: var(--accent);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* Currency select */
.currency-select {
    align-self: stretch;
    padding: 0.4rem 1.75rem 0.4rem 0.75rem;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b949e'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.currency-select option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

.currency-select:hover,
.currency-select:focus {
    border-color: var(--accent);
    color: var(--text-primary);
    outline: none;
}

/* Shared button style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.5;
}

.btn-ghost {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background-color: var(--accent-light);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0303c;
    border-color: #c0303c;
    color: #fff;
}

/* Hamburger — mobile only */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-muted);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav.nav-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav.nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
}
.site-nav.nav-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    z-index: 99;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.site-nav.nav-open .nav-mobile {
    display: flex;
}

.nav-mobile .nav-link {
    font-size: 15px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}

.nav-mobile .nav-link::after {
    display: none;
}

.nav-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ---------------------------------------------------------
   Hero Carousel
   --------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-surface);
    line-height: 0;
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

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

/* Static fallback slide */
.carousel-slide--static {
    width: 100%;
    height: 520px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-static-content {
    text-align: center;
    padding: 0 2rem;
    line-height: 1.5;
}

.carousel-static-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.carousel-static-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Product name / price overlay */
.carousel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    line-height: 1.4;
}

.carousel-name {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.carousel-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
}

/* Arrow buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(22, 27, 34, 0.75);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.carousel-btn-prev { left: 1.5rem; }
.carousel-btn-next { right: 1.5rem; }

.carousel-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Dot indicators */
.carousel-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
}

/* ---------------------------------------------------------
   Section commons
   --------------------------------------------------------- */
.section {
    width: 100%;
    padding: 3.5rem 3rem;
}

.section--surface {
    background-color: var(--bg-surface);
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.4em;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-subtitle {
    margin-top: 0.4rem;
    font-size: 13px;
    color: var(--text-muted);
}

.section-head-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

/* ---------------------------------------------------------
   Product Card
   --------------------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(37, 99, 235, 0.1);
}

.product-card-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-surface);
    overflow: hidden;
}

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

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

.product-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.product-card-body {
    padding: 0.9rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.product-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.product-card-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card-footer {
    padding: 0 1rem 0.9rem;
}

.product-card-btn {
    width: 100%;
    padding: 0.55rem;
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: center;
}

.product-card-btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.product-card-btn:disabled {
    background-color: var(--bg-surface);
    border-color: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ---------------------------------------------------------
   Single Product Page
   --------------------------------------------------------- */
.single-product {
    padding: 3.5rem 0 4rem;
}

.single-product-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 2.5rem;
}

.single-product-row {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Image column — 55% */
.single-product-image-col {
    flex: 0 0 55%;
    min-width: 0;
}

.single-product-img-frame {
    position: relative;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.single-product-img-frame .big-image {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    padding: 1.5rem;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.thumbnail {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    background-color: var(--bg-surface);
}

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

/* Info column — remaining space */
.single-product-info-col {
    flex: 1;
    min-width: 0;
    padding-top: 0.5rem;
    border-left: 2px solid var(--border);
    padding-left: 2.5rem;
}

.product-author {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.product-author a {
    color: var(--text-muted);
    text-decoration: none;
}

.product-author a:hover {
    color: var(--accent);
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.product-price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.product-details {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.product-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.4rem;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 1.25rem;
}

.product-cart-row form {
    display: block;
}

.product-quantity-input {
    width: 80px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.product-cart-row .add-to-cart,
.product-cart-row .add-to-cart-disabled {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.04em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.product-cart-row .add-to-cart {
    background-color: var(--accent);
    color: #fff;
}

.product-cart-row .add-to-cart:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.product-cart-row .add-to-cart-disabled {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    cursor: not-allowed;
}

.product-source-link {
    padding-top: 1rem;
}

.product-source-link a {
    text-decoration: underline;
    color: var(--text-primary);
}

.product-source-link a:hover {
    color: var(--accent);
}

/* Similar products */
.similar-products {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0;
}

.similar-products-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.similar-products-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent);
    margin-top: 8px;
}

/* ---------------------------------------------------------
   Promotions
   --------------------------------------------------------- */
.promoted {
    border-bottom: 1px solid var(--border);
    padding-bottom: 3rem;
    margin-bottom: 0.5rem;
}

.promoted-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.promoted-end-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ---------------------------------------------------------
   Products listing page
   --------------------------------------------------------- */
.products-layout {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - var(--nav-height));
}

/* Sidebar */
.products-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.products-filter {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.filter-input,
.filter-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    padding: 0.45rem 0.65rem;
    width: 100%;
    transition: border-color 0.2s;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-clear {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -0.25rem;
    transition: color 0.2s;
}

.filter-clear:hover {
    color: var(--danger);
}

/* Main grid area */
.products-main {
    flex: 1;
    min-width: 0;
    padding: 2.5rem 2.5rem 3rem;
}

/* Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.btn-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Empty state */
.products-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* product-card-link: make the top part of the card a link */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

/* ---------------------------------------------------------
   Collection (products per category)
   --------------------------------------------------------- */
.collection-category {
    margin-bottom: 2.5rem;
}

.collection-category-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* ---------------------------------------------------------
   Categories mosaic
   --------------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.category-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
}

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

.category-tile:hover img {
    transform: scale(1.06);
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: background 0.3s;
}

.category-tile:hover .category-tile-overlay {
    background: linear-gradient(transparent 20%, rgba(37, 99, 235, 0.55) 100%);
}

.category-tile-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 3rem 2.5rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(1.8);
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.footer-social-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background-color: var(--accent-light);
}

.footer-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links li:not(:has(a)) {
    font-size: 13px;
}

.footer-paypal {
    border-top: 1px solid var(--border);
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-paypal img {
    height: 28px;
    opacity: 0.45;
    filter: grayscale(1) brightness(1.5);
}

.footer-copy {
    border-top: 1px solid var(--border);
    padding: 0.9rem 3rem;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy a {
    color: var(--text-primary);
}

.footer-copy a:hover {
    color: var(--accent);
}

/* ---------------------------------------------------------
   Auth (Login)
   --------------------------------------------------------- */
.auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}

.auth-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-submit {
    width: 100%;
    padding: 0.65rem;
    font-size: 14px;
    margin-top: 0.25rem;
}

.auth-reset-link {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.auth-reset-link:hover {
    color: var(--accent);
}

.auth-subtitle {
    margin-top: 0.4rem;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-card--result {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.auth-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.auth-result-icon svg {
    width: 26px;
    height: 26px;
}

.auth-result-icon--success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* ---------------------------------------------------------
   Shared form controls
   --------------------------------------------------------- */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label--inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-label-sm {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.pw-hint {
    margin: 0.4rem 0 0;
    padding: 0.4rem 0.75rem;
    list-style: none;
    font-size: 0.8rem;
    color: #c0392b;
    background: #fdf0ee;
    border-left: 3px solid #e74c3c;
    border-radius: 4px;
}

.pw-hint li + li {
    margin-top: 0.2rem;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b949e'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 2rem;
}

.form-select[multiple] {
    background-image: none;
    padding-right: 0.75rem;
    height: 9rem;
}

.form-select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-input--narrow {
    max-width: 140px;
}

.form-file {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    background-color: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-file:hover {
    border-color: var(--accent);
}

/* ---------------------------------------------------------
   Config / admin submenu
   --------------------------------------------------------- */
.config-nav {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.config-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.6rem 2rem;
}

.config-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.config-nav-link:hover,
.config-nav-link.active {
    color: var(--text-primary);
    background-color: var(--accent-light);
}

/* ---------------------------------------------------------
   Admin page layout
   --------------------------------------------------------- */
.admin-page {
    padding: 2.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ---------------------------------------------------------
   Data table
   --------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background-color: var(--bg-surface);
}

.data-table th {
    padding: 0.75rem 1rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.data-table tbody tr:hover {
    background-color: var(--bg-surface);
}

.data-table td a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.col-check {
    width: 36px;
    padding-left: 1.25rem;
}

/* ---------------------------------------------------------
   Order detail
   --------------------------------------------------------- */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.detail-section h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.detail-section dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
}

.detail-section dt {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.detail-section dd {
    font-size: 13px;
}

.col-num {
    text-align: right;
    width: 90px;
}

.col-action {
    width: 110px;
}

.table-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
}

.table-link:hover {
    color: var(--accent);
}

input[type="checkbox"].row-check {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.bulk-price-btn {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    padding: 2px 6px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, border-color 0.2s;
}

.bulk-price-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 12px;
}

/* ---------------------------------------------------------
   Product create form
   --------------------------------------------------------- */
.product-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tags dual-list */
.tags-dual-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tags-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tags-col-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Prices */
.prices-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.price-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 130px;
}

/* Dimensions */
.dimensions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dimension-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Existing image management (product update) */
.image-manage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.image-manage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.image-manage-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-surface);
}

/* Image slots */
.image-slots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.image-slot {
    display: flex;
    align-items: center;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------
   About page
   --------------------------------------------------------- */
.about-hero {
    background-color: var(--bg-surface);
    border-bottom: 3px solid var(--accent);
    padding: 5rem 3rem 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 90% at 50% 50%, var(--accent-light), transparent);
    pointer-events: none;
}

.about-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.about-hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.about-section {
    padding: 4rem 3rem;
}

.about-container {
    max-width: 760px;
    margin: 0 auto;
}

.about-body {
    flex: 1;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.about-body ul,
.about-body ol {
    padding-left: 1.5rem;
}

.about-body ul {
    list-style: disc;
}

.about-body ol {
    list-style: decimal;
}

/* Summernote editor */
.note-editable {
    background-color: var(--bg-card);
}

.note-editable p,
.note-editable ul,
.note-editable ol,
.note-editable li,
.note-editable a {
    color: #FFFFFF;
}

.note-editable ul,
.note-editable ol {
    padding-left: 1.5rem;
}

.note-editable ul {
    list-style: disc;
}

.note-editable ol {
    list-style: decimal;
}

.about-aside {
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.about-cta {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.about-cta:hover {
    background-color: var(--accent);
    color: #fff;
}

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.contact-section {
    padding: 4rem 3rem;
}

.contact-container {
    max-width: 680px;
    margin: 0 auto;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-captcha {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------------------------------------------------------
   Dashboard
   --------------------------------------------------------- */
.dashboard-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 180px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* ---------------------------------------------------------
   Import page
   --------------------------------------------------------- */
.import-wrap {
    max-width: 760px;
}

.import-section {
    margin-bottom: 3rem;
}

.import-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.import-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.import-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.import-file-input {
    padding: 0.5rem 0;
}

.import-actions {
    display: flex;
    gap: 0.75rem;
}

.import-result {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.import-result-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.import-success {
    color: var(--success, #2e7d32);
    font-size: 0.95rem;
}

.import-error {
    color: var(--danger, #c62828);
    font-size: 0.95rem;
}

.import-error-heading,
.import-warning-heading {
    font-weight: 600;
    font-size: 0.95rem;
}

.import-error-heading {
    color: var(--danger, #c62828);
}

.import-warning-heading {
    color: var(--warning, #e65100);
}

.import-error-list,
.import-warning-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.import-error-list {
    color: var(--danger, #c62828);
}

.import-warning-list {
    color: var(--warning, #e65100);
}

/* ---------------------------------------------------------
   Cart page
--------------------------------------------------------- */

.cart-page {
    padding: 2rem 1rem;
}

.cart-wrap {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-count-label {
    color: var(--text-muted, #666);
    font-size: 0.9rem;
    margin: 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #ddd);
}

.cart-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #666);
}

.cart-table td:nth-child(2),
.cart-table th:nth-child(2) {
    text-align: center;
    width: 3rem;
}

.cart-table td:nth-child(3),
.cart-table th:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

.cart-table td:nth-child(4) {
    text-align: right;
    width: 2.5rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

.cart-total-amount {
    font-weight: 600;
}

.cart-continue {
    align-self: flex-start;
}

.cart-divider {
    border: none;
    border-top: 1px solid var(--border, #ddd);
    margin: 0.5rem 0;
}

.cart-payment-label {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    margin: 0;
}

.cart-shipping-row,
.cart-final-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0.75rem;
    font-size: 0.95rem;
}

.cart-order-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}
