/* Explain: App-specific component styles for buttons, cards, and other UI elements. */
.btn-gold,
.btn-ghost,
.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: .95rem;
    padding: .8rem 1.4rem;
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.btn-gold { background: var(--accent-color); color: #1a1205; }
.btn-gold:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-weight: 600;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent-color); color: var(--accent-hover); }

.btn-add {
    margin-top: auto;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    padding: .8rem 1rem;
}
.btn-add:hover { background: var(--accent-color); color: #1a1205; }
.btn-add:disabled { opacity: .6; cursor: default; }

/* Icon button + cart badge */
.icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.05rem;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.icon-button:hover { border-color: var(--accent-color); color: var(--accent-color); }

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.cart-count.hide { display: none; }

/* Hero bits */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(212, 160, 23, .15);
    border: 1px solid rgba(212, 160, 23, .4);
    color: var(--accent-hover);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero h1 { margin: 1.15rem 0 0; max-width: 30ch; color: #fff; font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
.hero h1 em { color: var(--accent-color); font-style: normal; }

.hero-sub {
    margin: 1.15rem 0 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, .88);
    font-size: 1.05rem;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: .85rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
}

.hero-panel {
    max-width: 620px;
    margin: 0;
    padding: 2.25rem 2rem;
    border-radius: 22px;
    background: rgba(10, 45, 40, .58);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(9px);
    box-shadow: var(--shadow-lg);
}

.hero-showcase {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero-showcase { grid-template-columns: repeat(5, 1fr); }
    .hero-panel { padding: 2.75rem 2.25rem; }
}

.hero-thumb {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: .6rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hero-thumb:hover { transform: translateY(-3px); border-color: var(--accent-color); box-shadow: var(--shadow-md); }

.hero-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: var(--surface-2);
}

.hero-thumb span {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
}

/* Section eyebrow */
.section-eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.section-head h2 { margin-top: .5rem; }

/* Category tile */
.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.35rem 1rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-tile:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.cat-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gold-soft);
    color: var(--accent-color);
    font-size: 1.35rem;
}

.cat-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .92rem;
    color: var(--text-color);
}

.cat-link { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

/* Product card */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.product-card:hover .product-media img { transform: scale(1.05); }

.product-tag {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .6rem;
    padding: 1.1rem 1.15rem 1.25rem;
}
.product-body h3 { font-size: 1.02rem; font-weight: 700; }

.product-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-color);
}

.product-desc { font-size: .86rem; color: var(--text-muted); line-height: 1.55; }

.stock { margin-top: .15rem; }
.stock-track {
    height: 7px;
    width: 100%;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}
.stock-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), #b8860b);
}
.stock-meta {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .45rem;
    font-size: .75rem;
    font-weight: 600;
}
.stock-meta span:first-child { color: var(--success-color); }
.stock-meta span:last-child { color: var(--text-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-color);
}
.faq-q i { color: var(--accent-color); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.15rem 1.1rem; font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* Forms */
.form-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 1.15rem; }
.form-card .form-intro { margin: .35rem 0 1.15rem; font-size: .88rem; color: var(--text-muted); }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-color); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text-color);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, .15);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 520px) {
    .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.form-status { margin-top: .75rem; font-size: .85rem; font-weight: 600; }
.form-status.ok { color: var(--success-color); }
.form-status.err { color: #dc2626; }

/* Cart drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 60;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 70;
    transform: translateX(100%);
    transition: transform .32s ease;
    box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: none; }

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.cart-head h2 { font-size: 1.15rem; }

.cart-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.cart-close:hover { border-color: var(--accent-color); color: var(--accent-color); }

.cart-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.25rem; }

.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.cart-empty i { font-size: 2rem; color: var(--border-color); margin-bottom: .75rem; }
.cart-empty p { font-family: var(--font-heading); font-weight: 700; color: var(--text-color); margin: .25rem 0; }

.cart-line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--border-color);
}
.cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--surface-2);
}
.cart-thumb-empty {
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.cart-line-info h4 { font-size: .88rem; font-weight: 600; margin: 0 0 .2rem; }
.cart-line-price { font-size: .85rem; color: var(--accent-color); font-weight: 700; }

.qty { display: inline-flex; align-items: center; gap: .35rem; margin-top: .45rem; }
.qty button {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 7px;
    font-size: .75rem;
    cursor: pointer;
}
.qty button:hover { border-color: var(--accent-color); color: var(--accent-color); }
.qty span { min-width: 22px; text-align: center; font-size: .85rem; font-weight: 600; }

.cart-line-right { display: flex; align-items: flex-start; }
.cart-remove {
    background: none;
    border: 0;
    padding: .2rem;
    color: var(--text-muted);
    font-size: .85rem;
    cursor: pointer;
}
.cart-remove:hover { color: #dc2626; }

.cart-foot {
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
    padding: 1.1rem 1.25rem 1.35rem;
    max-height: 62%;
    overflow-y: auto;
}
.cart-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 700;
}
.cart-subtotal-row strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 160%);
    background: var(--primary-color);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    z-index: 90;
    box-shadow: var(--shadow-lg);
    transition: transform .3s ease;
    max-width: calc(100% - 2rem);
}
.toast.show { transform: translate(-50%, 0); }

/* Footer details */
.footer-brand { margin-bottom: 1rem; }
.footer-brand-name { color: #fff; }
.footer-about { font-size: .88rem; line-height: 1.65; color: #94a3b8; max-width: 34ch; }

.social-row { display: flex; gap: .6rem; margin-top: 1.15rem; }
.social-row a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    color: #e2e8f0;
    transition: background .2s, color .2s;
}
.social-row a:hover { background: var(--accent-color); color: #1a1205; }

.footer-col-title { color: #fff; font-size: .95rem; margin-bottom: 1rem; }

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .88rem; color: #94a3b8; transition: color .2s; }
.footer-links a:hover { color: var(--accent-color); }

.footer-contact { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.footer-contact li { display: flex; gap: .65rem; font-size: .88rem; color: #94a3b8; line-height: 1.5; }
.footer-contact i { color: var(--accent-color); margin-top: .2rem; }
.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: var(--accent-color); }

.footer-bottom {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    font-size: .85rem;
    color: #94a3b8;
    text-align: center;
}