/* ============================================
   VLab — Premium 3D Printing Store
   Design tokens
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap");

:root {
    --color-bg: #f5f5f3;
    --color-surface: #ffffff;
    --color-border: #e5e5e2;
    --color-text: #1a1a1a;
    --color-muted: #6b6b6b;
    --color-accent: #1d3a2f; /* deep forest green — brand */
    --color-accent-lite: #2d5442;
    --color-badge: #e8f0ea;
    --color-footer: #1a2820;
    --color-danger: #c0392b;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-card:
        0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.1);

    --font-main: "Tajawal", sans-serif;

    --nav-h: 60px;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    direction: rtl;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
button,
input,
select,
textarea {
    font-family: inherit;
}

/* .v-lab {
    color: var(--color-accent);
} */

/* ============ NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 24px;
}

.navbar__brand {
    /* font-size: 22px; */
    /* font-weight: 800; */
    /* letter-spacing: -.5px; */
    /* color: var(--color-text); */
    margin-right: auto;
    width: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.navbar__brand-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.navbar__links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.navbar__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.navbar__links a:hover,
.navbar__links a.active {
    color: var(--color-text);
}

.navbar__links a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

.navbar__icons {
    display: flex;
    gap: 16px;
    margin-right: 8px;
}

.navbar__icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    position: relative;
    transition: opacity 0.2s;
}

.navbar__icons a:hover {
    opacity: 0.6;
}

.cart-count {
    position: absolute;
    top: -6px;
    left: -12px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Navbar search ── */
.navbar__search-toggle {
    display: none; /* hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--color-text);
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s;
}
.navbar__search-toggle:hover {
    background: var(--color-bg);
}

.navbar__search {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    height: 38px;
    transition:
        border-color 0.2s,
        width 0.25s;
}
.navbar__search:focus-within {
    border-color: var(--color-accent);
}

.navbar__search-input {
    background: transparent;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 14px;
    color: inherit;
    width: 200px;
    font-family: inherit;
    direction: rtl;
}
.navbar__search-input::placeholder {
    color: #9b9b9b;
}

.navbar__search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: inherit;
    opacity: 0.65;
    transition: opacity 0.2s;
}
.navbar__search-btn:hover {
    opacity: 1;
}

/* ── Search results page ── */
.search-page-header {
    padding: 40px 40px 24px;
    text-align: right;
}
.search-page-header h1 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 6px;
}
.search-query-highlight {
    color: var(--color-accent);
}
.search-meta {
    font-size: 14px;
    color: var(--color-muted);
}

.search-section {
    padding: 0 40px 48px;
}
.search-section__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.search-section__header h2 {
    font-size: 18px;
    font-weight: 700;
}
.search-count {
    background: var(--color-badge);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 100px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
    border-color: var(--color-text);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    background: var(--color-accent-lite);
}

/* ============ HERO ============ */
.hero {
    background: var(--color-bg);
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 480px;
    overflow: hidden;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-badge);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero__badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

.hero__title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero__desc {
    font-size: 15px;
    color: var(--color-muted);
    max-width: 420px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-frame {
    background: #e8eae6;
    border-radius: var(--radius-xl);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ============ SECTION HEADER ============ */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header__text h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.section-header__text p {
    font-size: 14px;
    color: var(--color-muted);
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
    margin-top: 4px;
    transition: color 0.2s;
}
.view-all-link:hover {
    color: var(--color-text);
}

/* ============ PRODUCT CARD ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    grid-auto-flow: column;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4/3;
    background: #f0f0ed;
    overflow: hidden;
}

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

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

.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.product-card__body {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-card__name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.product-card__sub {
    font-size: 12px;
    color: var(--color-muted);
}

.product-card__price {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    color: var(--color-accent);
}

/* ============ FEATURED PRODUCT CARD (large) ============ */
.featured-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: grid;
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 0;
}

.featured-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-card__image img {
    transform: scale(1.04);
}

.featured-card__body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.featured-card__name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.featured-card__desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--color-badge);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}

.featured-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* ============ SECTION WRAPPER ============ */
.section {
    padding: 64px 40px;
}

.section + .section {
    padding-top: 0;
}

/* ============ CATEGORIES PAGE ============ */
.page-header {
    padding: 48px 40px 32px;
}

.page-header__breadcrumb {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header__breadcrumb a {
    color: var(--color-muted);
}
.page-header__breadcrumb a:hover {
    color: var(--color-text);
}
.page-header__breadcrumb span {
    opacity: 0.4;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 15px;
    color: var(--color-muted);
    max-width: 500px;
}

/* ============ BRAND GRID (subcategories) ============ */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 40px 64px;
}

.brand-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

.brand-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.brand-card--large {
    grid-column: span 2;
}

.brand-card__image {
    aspect-ratio: 4/2;
    background: #e5e5e2;
    overflow: hidden;
    position: relative;
}

.brand-card--small .brand-card__image {
    aspect-ratio: 4/3;
}

.brand-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.brand-card:hover .brand-card__image img {
    transform: scale(1.04);
}

.brand-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    opacity: 0.4;
}

.c {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.brand-card__overlay-name {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.brand-card__body {
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

.brand-card__name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.brand-card__desc {
    display: none;
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ============ PRODUCTS LISTING ============ */
.products-listing {
    padding: 0 40px 64px;
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.listing-toolbar__right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s;
}
.toolbar-btn:hover {
    border-color: var(--color-text);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    direction: rtl;
}

/* ============ PRODUCT DETAIL ============ */
.product-detail {
    padding: 40px 40px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail__gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color 0.2s;
    background: #f0f0ed;
}

.gallery-thumb.active {
    border-color: var(--color-accent);
}

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

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f0f0ed;
    aspect-ratio: 4/3;
}

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

.product-detail__info {
    padding-top: 12px;
}

.product-detail__category {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.product-detail__name {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.product-detail__price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-detail__desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-muted);
}

.features-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5 6.5-6.5' stroke='%231D3A2F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
        center/contain no-repeat;
}

.color-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.color-btn {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: var(--color-bg);
}

.qty-val {
    min-width: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border-left: 1.5px solid var(--color-border);
    border-right: 1.5px solid var(--color-border);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}
.add-to-cart-btn:hover {
    background: var(--color-accent-lite);
}

/* ============ RELATED PRODUCTS ============ */
.related-section {
    padding: 0 40px 64px;
    border-top: 1px solid var(--color-border);
}

/* ============ CART PAGE ============ */
.cart-page {
    padding: 0 40px 64px;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 48px;
    align-items: start;
}

.cart-right h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
    text-align: right;
}

.cart-right > p {
    font-size: 14px;
    color: var(--color-muted);
    text-align: right;
    margin-bottom: 24px;
}

.cart-items-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: right;
}

.cart-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cart-item__image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f0f0ed;
    flex-shrink: 0;
}

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

.cart-item__info {
    flex: 1;
    text-align: right;
}

.cart-item__name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item__sub {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 12px;
}

.cart-item__price {
    font-size: 15px;
    font-weight: 700;
}

.cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-muted);
    padding: 4px;
    transition: color 0.2s;
}
.remove-btn:hover {
    color: var(--color-danger);
}

.security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-muted);
    justify-content: flex-end;
    margin-top: 12px;
}

/* Shipping form card */
.form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
}

.form-card h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: right;
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 6px;
    text-align: right;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s;
    text-align: right;
    direction: rtl;
}

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

.form-input::placeholder {
    color: var(--color-muted);
    opacity: 0.6;
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

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

/* Order summary */
.order-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.order-summary h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: right;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--color-muted);
    padding: 8px 0;
}

.summary-row.total {
    border-top: 1.5px solid var(--color-border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}
.checkout-btn:hover {
    background: var(--color-accent-lite);
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 12px;
}

/* ============ CUSTOM ORDER PAGE ============ */
.custom-order-page {
    padding: 0 40px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    background: var(--color-surface);
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

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

.upload-zone__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--color-muted);
}

.upload-zone h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.upload-zone p {
    font-size: 12px;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.material-hint {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 14px;
}

.material-hint__icon {
    width: 24px;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.material-hint h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.material-hint p {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.6;
}

.submit-custom-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    transition: background 0.2s;
}
.submit-custom-btn:hover {
    background: var(--color-accent-lite);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--color-footer);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    margin-top: auto;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer__brand {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.footer__links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer__links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}
.footer__links a:hover {
    color: #fff;
}

.footer__copy {
    font-size: 12px;
    opacity: 0.5;
}

/* ============ FLASH/ALERTS ============ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}
.alert-success {
    background: #d1fae5;
    color: #065f46;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--color-muted);
}
.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}
.empty-state p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* ============ PAGE HERO (internal pages) ============ */
.page-hero {
    padding: 64px 40px 40px;
    text-align: right;
}
.page-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}
.page-hero p {
    font-size: 15px;
    color: var(--color-muted);
    max-width: 520px;
    margin-right: 0;
    margin-left: auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
    }
    .navbar__links {
        gap: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 32px;
    }
    .hero__image-wrap {
        order: -1;
    }

    .section {
        padding: 40px 20px;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: row;
    }
    .brand-grid {
        padding: 0 20px 40px;
    }
    .products-listing {
        padding: 0 20px 40px;
    }
    .listing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding: 24px 20px 40px;
        gap: 32px;
    }
    .product-detail__gallery {
        grid-template-columns: 60px 1fr;
    }
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .cart-page {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        gap: 24px;
    }
    .cart-right {
        order: -1;
    }

    .custom-order-page {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }
    .custom-order-page .form-card {
        grid-row: 1;
    }

    .page-header {
        padding: 32px 20px 20px;
    }
    .page-hero {
        padding: 40px 20px 24px;
    }
    .related-section {
        padding: 0 20px 40px;
    }
    .brand-card--large {
        grid-column: span 1;
    }
    .featured-card {
        grid-template-columns: 1fr;
        grid-column: span 1;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    .brand-card__body {
        flex-direction: column;
    }
    .brand-card__image {
        aspect-ratio: 4/3;
    }
    .brand-card__body .btn {
        width: fit-content;
        margin: auto;
    }
}

@media (max-width: 600px) {
    .navbar__links {
        display: none;
    }
    .navbar__brand-name {
        margin: auto;
    }
    .navbar__search-toggle {
        display: flex;
    }
    .navbar__search {
        display: none;
        position: absolute;
        top: var(--nav-h);
        right: 0;
        left: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        height: 48px;
        z-index: 200;
        background: var(--color-surface);
    }
    .navbar__search.is-open {
        display: flex;
    }
    .navbar__search-input {
        width: 100%;
        padding: 0 20px;
        font-size: 15px;
    }
    .search-section,
    .search-page-header {
        padding-left: 20px;
        padding-right: 20px;
    }
    .products-grid,
    .listing-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cart-right h1 {
        font-size: 26px;
    }

    .brand-card__name {
        font-size: 13px;
    }
    .brand-card__body .btn,
    .product-card__body .btn {
        font-size: 9px !important;
    }

    .featured-card__body {
        padding: 16px;
        gap: 6px;
        align-items: center;
    }
    .featured-card__footer {
        flex-direction: column-reverse;
        gap: 6px;
    }
}

/* ============ HOME SCROLL ROW ============ */
.home-scroll-row {
    display: flex;
    flex-direction: row-reverse; /* RTL: first item on right */
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.home-scroll-row::-webkit-scrollbar {
    display: none;
} /* Chrome/Safari */

.home-scroll-card {
    flex: 0 0 450px;
    scroll-snap-align: start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
    display: flex;
    flex-direction: column;
}
.home-scroll-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.home-scroll-card__image {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0ed;
    overflow: hidden;
    flex-shrink: 0;
}
.home-scroll-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.home-scroll-card:hover .home-scroll-card__image img {
    transform: scale(1.04);
}
.home-scroll-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-scroll-card__body {
    padding: 12px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    flex: 1;
}
.home-scroll-card__name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
}
.home-scroll-card__sub {
    font-size: 15px;
    color: var(--color-muted);
}
.home-scroll-card__price {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-accent);
    margin-top: auto;
    padding-top: 6px;
}

/* Mobile: slightly smaller cards */
@media (max-width: 600px) {
    .home-scroll-card {
        flex: 0 0 140px;
    }
    .home-scroll-card__body {
        align-items: center;
    }
    .home-scroll-card__name {
        font-size: 16px;
    }
}
