/* Homex — industrial luxury RTL */
:root {
    --bg: #ffffff;
    --ink: #111111;
    --accent: #f5c518;
    --muted-bg: #f8f8f8;
    --muted-text: #666666;
    --section-gray: #f4f4f4;
    --font-head: "Cairo", system-ui, sans-serif;
    --font-body: "Tajawal", system-ui, sans-serif;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(17, 17, 17, 0.08);
    --shadow-hover: 0 16px 40px rgba(245, 197, 24, 0.35);
    --header-h: 84px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    padding-top: calc(40px + var(--header-h));
}

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

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

.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

/* Announcement */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--ink);
    color: var(--accent);
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.announcement-bar__track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
    gap: 4rem;
    white-space: nowrap;
}

.announcement-bar__text {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 1rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Header */
.site-header {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    transition: box-shadow 0.25s ease;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent) 25%,
        var(--accent) 75%,
        transparent 100%
    );
    opacity: 0.5;
    pointer-events: none;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow);
}

.site-header.is-scrolled::after {
    opacity: 1;
}

.navbar-inner {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 4vw;
    min-height: var(--header-h);
}

.navbar-cluster {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo img {
    object-fit: contain;
    height: 64px;
    width: auto;
    max-width: 220px;
    /* removes the white rectangular background — blends with white navbar */
    mix-blend-mode: multiply;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
    will-change: transform;
    display: block;
}

.brand-logo:hover img {
    opacity: 0.82;
    transform: scale(1.03);
}

.brand-logo__fallback {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    border: 2.5px solid var(--ink);
    line-height: 1;
    white-space: nowrap;
    background: transparent;
}

.main-nav {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--muted-text);
}

.customer-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted-text);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--muted-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.2s,
        background 0.2s;
    flex-shrink: 0;
}

.icon-link:hover {
    transform: translateY(-2px);
    background: #eee;
}

.icon-link--wa {
    background: #25d36622;
}
.icon-link--wa::after {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325D366'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E")
        center/contain no-repeat;
}

.icon-link--salla::after {
    content: "S";
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 0.75rem;
    color: #0d47a1;
}
.icon-link--amazon::after {
    content: "a";
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #111;
}
.icon-link--noon::after {
    content: "N";
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 0.75rem;
    color: #febc11;
    background: #232f3e;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-link--trendyol::after {
    content: "T";
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 0.7rem;
    color: #f27a1a;
}

.btn-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.35rem;
    color: var(--ink);
    border-radius: 10px;
    position: relative;
}
.btn-icon:hover {
    background: var(--muted-bg);
}

.cart-toggle__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-burger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
}

/* Cart drawer */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cart-drawer.is-open {
    pointer-events: auto;
    opacity: 1;
}
.cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(400px, 92vw);
    height: 100%;
    background: var(--bg);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.cart-drawer.is-open .cart-drawer__panel {
    transform: translateX(0);
}
.cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}
.cart-drawer__head h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.1rem;
}
.cart-drawer__body {
    flex: 1;
    overflow: auto;
    padding: 1rem;
}
.cart-item {
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.cart-item__title {
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.cart-item__meta {
    color: var(--muted-text);
    font-size: 0.85rem;
}
.cart-item__actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}
.cart-drawer__hint {
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    color: var(--muted-text);
    border-top: 1px solid #eee;
    margin: 0;
}

.btn-close {
    border: none;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: radial-gradient(
        circle at 1px 1px,
        #e8e8e8 1px,
        transparent 0
    );
    background-size: 28px 28px;
    pointer-events: none;
}

.hero__pattern::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -35deg,
        transparent,
        transparent 40px,
        rgba(17, 17, 17, 0.03) 40px,
        rgba(17, 17, 17, 0.03) 41px
    );
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: center;
    direction: ltr;
}

.hero__content {
    direction: rtl;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.hero-bag {
    width: min(320px, 80vw);
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(17, 17, 17, 0.12));
}

.hero__title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.25;
    margin: 0 0 1rem;
}

.hero__subtitle {
    color: var(--muted-text);
    font-size: 1.1rem;
    margin: 0 0 1.75rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s,
        color 0.2s;
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent);
}
.btn--primary:hover {
    box-shadow: var(--shadow-hover);
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn--outline:hover {
    background: var(--ink);
    color: var(--bg);
}

.btn--ghost {
    background: transparent;
    border: none;
    color: var(--muted-text);
    text-decoration: underline;
    padding: 0.5rem 0;
}
.btn--ghost:hover {
    color: var(--ink);
}

.btn--block {
    width: 100%;
}

.btn--lg {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
}

.btn--sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.cart-empty {
    color: var(--muted-text);
    text-align: center;
    margin: 2rem 0;
}

.btn--wa {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
    margin: 0 auto 1rem;
    display: flex;
    width: fit-content;
}
.btn--wa:hover {
    filter: brightness(1.05);
}

/* Stats */
.stats-bar {
    background: var(--muted-bg);
    padding: 2rem 0;
    border-block: 1px solid #eee;
}

.stats-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-item__num {
    display: block;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    color: var(--accent);
    text-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
}

.stat-item__label {
    font-size: 0.95rem;
    color: var(--muted-text);
}

.stat-item__sep {
    width: 1px;
    height: 48px;
    background: #ddd;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 1.5rem;
}

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

.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

.about__text p {
    color: #333;
}

.about__values {
    display: grid;
    gap: 1rem;
}

.value-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

.service-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-family: var(--font-head);
    margin: 0 0 0.75rem;
}

.service-card__list {
    margin: 0 0 1rem;
    padding-inline-start: 1.25rem;
    color: #333;
}

.service-card__note {
    font-size: 0.9rem;
    color: var(--muted-text);
}

.service-card__stores {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.why__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.why__item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    background: var(--muted-bg);
    padding: 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
}

.why__item--wide {
    grid-column: 1 / -1;
}

.why__check {
    color: var(--accent);
    font-weight: 900;
    flex-shrink: 0;
}

.why__tagline,
.clients__tagline {
    text-align: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.15rem;
    margin-top: 2rem;
}

.clients__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.client-card span {
    font-size: 1.75rem;
}

.client-card p {
    margin: 0;
    font-weight: 600;
}

.payment__icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.pay-icon {
    font-size: 2.25rem;
    background: var(--muted-bg);
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment__text {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.5rem;
    color: var(--muted-text);
}

.payment__stores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.payment__stores-label {
    width: 100%;
    text-align: center;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* ========== Customizer ========== */
.customizer {
    background: #0e0e0e;
    padding-block: 0;
}

.customizer__header {
    padding: clamp(2.5rem, 5vh, 4rem) clamp(1.5rem, 5vw, 4rem)
        clamp(1.5rem, 3vh, 2rem);
    text-align: center;
    background: var(--section-gray);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.customizer__title {
    margin-bottom: 0;
}

.customizer__layout {
    display: grid;
    grid-template-columns: 1fr clamp(360px, 30vw, 480px);
    gap: 0;
    align-items: start;
    width: 100%;
    min-height: calc(100vh - 40px - var(--header-h));
}

/* ---- Preview column (sticky dark canvas) ---- */
.customizer__preview {
    position: sticky;
    top: calc(40px + var(--header-h));
    height: calc(100vh - 40px - var(--header-h));
    background:
        radial-gradient(
            circle at 1px 1px,
            rgba(255, 255, 255, 0.055) 1px,
            transparent 0
        ),
        linear-gradient(160deg, #1a1a1a 0%, #111111 70%, #181818 100%);
    background-size:
        28px 28px,
        100% 100%;
    border-radius: 0;
    padding: 1.75rem clamp(1.5rem, 3vw, 3rem);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.85rem;
    overflow: hidden;
}

/* ---- Control panel column ---- */
.customizer__panel {
    background: #fafafa;
    border-radius: 0;
    padding: 2rem clamp(1.25rem, 2.5vw, 2rem);
    box-shadow: inset 2px 0 12px rgba(0, 0, 0, 0.06);
    border-left: 1px solid rgba(17, 17, 17, 0.08);
}

/* ---- Preview stage (white card that holds the bag) ---- */
.preview-stage {
    background: linear-gradient(145deg, #ffffff 0%, #f2f2f2 100%);
    border-radius: var(--radius);
    padding: clamp(0.75rem, 2vw, 1.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.07),
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.3);
}

#bag-preview {
    width: auto;
    height: 100%;
    max-height: calc(100vh - 40px - var(--header-h) - 12rem);
    max-width: 100%;
    color: #ffffff;
    cursor: default;
    user-select: none;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    filter: drop-shadow(0 14px 30px rgba(17, 17, 17, 0.18))
        drop-shadow(0 3px 10px rgba(17, 17, 17, 0.08));
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Override preview-meta & button on dark bg */
.customizer__preview .preview-meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin: 0;
}

.customizer__preview .preview-meta__dot {
    color: rgba(255, 255, 255, 0.2);
}

.customizer__preview .btn--outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    transition:
        background 0.2s,
        color 0.2s;
}

.customizer__preview .btn--outline:hover {
    background: var(--accent);
    color: var(--ink);
}

#bag-preview .draggable {
    cursor: grab;
}
#bag-preview .draggable.is-dragging {
    cursor: grabbing;
}

.preview-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 1rem 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
}

.preview-meta__dot {
    color: var(--muted-text);
}

.panel-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.panel-block:last-of-type {
    border-bottom: none;
}

.panel-block__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
    font-size: 1.1rem;
}

.panel-block__hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.panel-block__hint--sm {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.panel-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.field-label {
    display: block;
    font-weight: 700;
    margin: 0.75rem 0 0.35rem;
    font-size: 0.9rem;
}

.req {
    color: #c62828;
}

.optional {
    font-weight: 400;
    color: var(--muted-text);
    font-size: 0.85rem;
}

.input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.input--area {
    resize: vertical;
    min-height: 72px;
}

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

.slider-row input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
}

.slider-value {
    font-family: var(--font-head);
    font-weight: 700;
    min-width: 4.5rem;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.swatch {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
}
.swatch.is-active,
.swatch:focus-visible {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px var(--ink);
}

.swatch--custom {
    overflow: hidden;
    position: relative;
    background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
}
.swatch--custom input[type="color"] {
    opacity: 0;
    width: 200%;
    height: 200%;
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.qty-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.qty-tab {
    flex: 1;
    padding: 0.55rem;
    border-radius: 10px;
    border: 2px solid #ddd;
    background: var(--bg);
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
}
.qty-tab.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

.is-hidden {
    display: none !important;
}

.text-field-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed #e5e5e5;
}

.text-field-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.text-style-editor {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--muted-bg);
    border-radius: 12px;
    border: 1px solid #eee;
}

.text-style-editor__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.text-style-editor__grid {
    display: grid;
    grid-template-columns: minmax(0, 100px) 1fr;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.text-style-editor__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}

.input--compact {
    padding: 0.45rem 0.65rem;
    font-size: 0.95rem;
}

.text-style-editor__size {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.text-style-editor__size input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
}

.text-style-editor__size-val {
    font-family: var(--font-head);
    font-weight: 800;
    min-width: 2rem;
    font-size: 0.9rem;
}

.input-color {
    width: 100%;
    max-width: 120px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: var(--bg);
    cursor: pointer;
}

.style-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.style-toggle {
    flex: 1;
    min-width: 4.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    border: 2px solid #ccc;
    background: var(--bg);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--ink);
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.style-toggle:hover {
    border-color: var(--ink);
}

.style-toggle.is-active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

/* ===== Free Text Items ===== */
.free-text-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.free-text-item {
    border: 1.5px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.free-text-item:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15);
}

.free-text-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    background: #f6f6f6;
    cursor: pointer;
    user-select: none;
    border-bottom: 1.5px solid transparent;
    transition: background 0.15s;
}

.free-text-item__header:hover {
    background: #efefef;
}

.free-text-item:not(.is-collapsed) .free-text-item__header {
    border-bottom-color: #e8e8e8;
}

.free-text-item__preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.free-text-item__label {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.free-text-item__actions {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.free-text-item__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.28rem 0.35rem;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    transition:
        background 0.15s,
        color 0.15s;
    line-height: 0;
}

.free-text-item__btn:hover {
    background: rgba(17, 17, 17, 0.08);
    color: var(--ink);
}

.free-text-item__btn--delete:hover {
    background: #fde8e8;
    color: #c62828;
}

.free-text-item__body {
    padding: 0.9rem;
}

.free-text-item.is-collapsed .free-text-item__body {
    display: none;
}

.free-text-item.is-collapsed .ft-chevron {
    transform: rotate(-90deg);
}

.ft-chevron {
    transition: transform 0.2s;
    display: block;
}

/* Contact */
.contact__inner {
    text-align: center;
}

.contact__icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #0d0d0d;
    color: #e0e0e0;
    position: relative;
}

/* gold accent line at top */
.site-footer::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent) 20%,
        var(--accent) 80%,
        transparent 100%
    );
}

/* ---- Top section ---- */
.footer__top {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__top-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.footer__logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer__logo {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
    display: block;
}

.footer__logo-link:hover .footer__logo {
    opacity: 0.8;
}

.footer__desc {
    font-size: 0.93rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.5rem;
    max-width: 300px;
}

.footer__social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Column titles */
.footer__col-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1.25rem;
}

/* Nav links */
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer__nav a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    transition:
        color 0.2s,
        padding-right 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__nav a::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer__nav a:hover {
    color: #fff;
    padding-right: 4px;
}

.footer__nav a:hover::before {
    opacity: 1;
}

/* Contact items */
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer__contact-item:hover {
    color: #fff;
}

.footer__contact-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer__stores {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* icon-link overrides inside footer */
.site-footer .icon-link {
    background: rgba(255, 255, 255, 0.07);
    transition:
        background 0.2s,
        transform 0.2s;
}

.site-footer .icon-link:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

/* ---- Bottom bar ---- */
.footer__bottom {
    padding: 1.25rem 0;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__copy {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.28);
}

.footer__back-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        color 0.2s,
        border-color 0.2s;
}

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

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.modal__dialog {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    width: min(420px, 100%);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}
.modal__dialog h2 {
    margin: 0 0 1rem;
    font-family: var(--font-head);
}
.modal__close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}
.modal__lead {
    margin: 0 0 1rem;
    color: var(--muted-text);
    font-size: 0.95rem;
}
.modal-form .btn {
    margin-top: 0.5rem;
}

/* Scroll animations */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}
.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-stagger-1 {
    transition-delay: 0.05s;
}
.hero-stagger-2 {
    transition-delay: 0.15s;
}
.hero-stagger-3 {
    transition-delay: 0.28s;
}

/* Mobile */
@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
    .about__grid {
        grid-template-columns: 1fr;
    }
    .services__grid {
        grid-template-columns: 1fr;
    }
    .customizer__layout {
        grid-template-columns: 1fr;
    }
    .customizer__preview {
        position: static;
        height: auto;
        min-height: clamp(400px, 60vh, 560px);
        border-radius: 0;
    }
    .customizer__panel {
        border-left: none;
        border-top: 1px solid rgba(17, 17, 17, 0.1);
        box-shadow: none;
    }
    .preview-stage {
        flex: none;
        min-height: 340px;
    }
    #bag-preview {
        height: auto;
        max-height: none;
        width: 100%;
        max-width: min(320px, 100%);
    }
    .footer__top-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .footer__desc {
        max-width: 100%;
        margin-inline: auto;
    }
    .footer__nav {
        align-items: center;
    }
    .footer__social,
    .footer__stores,
    .footer__contact-list {
        justify-content: center;
    }
    .footer__contact-item {
        justify-content: center;
    }
    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .footer__nav a::before {
        display: none;
    }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed;
        top: calc(40px + var(--header-h));
        right: 0;
        left: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        border-bottom: 1px solid #eee;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }
    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-burger {
        display: flex;
    }
    .stat-item__sep {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .announcement-bar__track {
        animation: none;
        justify-content: center;
        width: 100%;
    }
}
