/* Global theme */
:root {
    color-scheme: light;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #302828;
    background: #faf5f3;
    --bg: #faf5f3;
    --surface: #ffffff;
    --surface-alt: #fff6f7;
    --border: #ebdde0;
    --accent: #c81d3d;
    --accent-2: #8f4451;
    --text-muted: #766061;
    --heading: #2a1e20;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: inherit;
    line-height: 1.6;
    background: var(--bg);
}

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

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

.container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(200, 29, 61, 0.12);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner,
.hero-inner,
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.header-inner {
    padding: 18px 0;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading);
}

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

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #57383d;
    transition: background 0.2s ease;
}

.nav-links a:hover {
    background: rgba(200, 29, 61, 0.08);
}

.hero {
    background: linear-gradient(135deg, #fff4f5 0%, #fff8f8 100%);
    padding: 60px 0;
}

.hero-shop {
    background: linear-gradient(160deg, rgba(232, 248, 247, 1) 0%, rgba(255, 246, 246, 1) 40%);
    padding: 60px 0;
}

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

.hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.02;
    max-width: 640px;
    color: var(--heading);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    color: #a12d46;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
}

.hero p,
.section-header p,
.card-body p,
.footer-grid p,
.product-summary p {
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.hero-image {
    flex: 1 1 360px;
    text-align: right;
}

.hero-image img {
    width: min(520px, 100%);
    border-radius: 30px;
    object-fit: cover;
}

.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 28px;
}

.section-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--heading);
}

.category-grid,
.brand-grid,
.grid {
    display: grid;
    gap: 20px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.sale-card,
.category-card,
.brand-card,
.form-card,
.product-details-card,
.product-meta,
.product-gallery,
.product-info,
.product-hero,
.admin-card {
    background: var(--surface);
    border-radius: 26px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}

.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img,
.sale-card img,
.product-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card h3,
.product-meta h1,
.product-details-card h2,
.footer h3,
.footer h4 {
    margin: 0;
    color: var(--heading);
}

.category-card,
.brand-card,
.hero,
.hero-shop {
    padding: 32px;
}

.category-card {
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card strong {
    font-size: 1.05rem;
}

.category-card span {
    color: var(--text-muted);
    margin-top: 10px;
}

.brand-card {
    padding: 28px 20px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #7f5260;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-height: 100px;
    border: 1px solid rgba(200, 29, 61, 0.12);
}

.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(200, 29, 61, 0.18);
}

.button.secondary {
    background: #6f4450;
}

.product-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 60px 0;
}

.product-meta {
    padding: 40px;
}

.breadcrumb {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent-2);
}

.product-meta h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.price-panel {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin: 22px 0;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
}

.sale-badge,
.discount-tag,
.badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(200, 29, 61, 0.12);
    color: var(--accent);
    font-weight: 700;
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.product-summary {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
}

.product-gallery {
    padding: 12px;
}

.product-gallery img {
    border-radius: 28px;
}

.product-details-card {
    padding: 32px;
}

.product-info-block {
    padding: 28px;
}

.card-bottom,
.product-summary,
.footer-bottom,
.form-group,
.form-card,
.message {
    width: 100%;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sale-card {
    overflow: hidden;
    position: relative;
}

.sale-card .card-body {
    padding: 22px;
}

.discount-tag {
    position: absolute;
    top: 18px;
    left: 18px;
}

.form-card {
    margin: 0 auto;
    max-width: 640px;
    padding: 36px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid #e9dadf;
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
}

.form-group textarea {
    min-height: 160px;
}

.message {
    padding: 18px 22px;
    border-radius: 20px;
    margin: 24px 0;
}

.message.success {
    background: #e8f7f1;
    color: #1f6d56;
}

.message.error {
    background: #fde8e8;
    color: #9b1f27;
}

.footer {
    padding: 48px 0 24px;
    background: #fff;
}

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

.footer-grid div {
    max-width: 320px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 16px;
}

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

.footer-grid li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid #f0e6e7;
    padding-top: 18px;
    margin-top: 28px;
    text-align: center;
    color: var(--text-muted);
}

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

.brand-chip {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(200, 29, 61, 0.14);
    font-size: 0.9rem;
    color: #844256;
    width: fit-content;
}

@media (max-width: 960px) {
    .product-hero,
    .footer-grid,
    .hero-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .product-hero {
        padding: 32px 0;
    }

    .product-gallery img,
    .card img,
    .sale-card img {
        height: auto;
    }
}

@media (max-width: 720px) {
    .nav-links {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
