@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Manrope:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    background: radial-gradient(circle at top right, rgba(255, 79, 139, 0.12), transparent 35%), var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

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

p {
    margin: 0 0 0.8rem;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.7rem;
    line-height: 1.2;
    font-family: 'Fraunces', serif;
}

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

.main-content {
    padding: 1.25rem 0 2rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.4px;
    font-family: 'Fraunces', serif;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.35rem;
}

.desktop-nav a {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.desktop-nav a.active,
.desktop-nav a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.menu-btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.55rem 1rem 1rem;
    background: #fff;
}

.mobile-nav.open {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav a {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
}

.alert {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-success {
    background: #e3fff0;
    color: #115e39;
}

.alert-error {
    background: #ffe6eb;
    color: #9e183d;
}

.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 14px 30px rgba(31, 26, 34, 0.05);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.section-head-stack {
    flex-wrap: wrap;
}

.hero-grid {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.category-card {
    background: linear-gradient(150deg, #fff, rgba(255, 241, 246, 0.85));
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card h3 {
    margin-bottom: 0.2rem;
}

.category-card p {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(31, 26, 34, 0.08);
}

.hero-card {
    min-height: 280px;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-overlay {
    width: 100%;
    padding: 1.4rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42));
}

.eyebrow {
    display: inline-flex;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 20px rgba(31, 26, 34, 0.05);
    display: flex;
    flex-direction: column;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

.product-card:hover .product-image {
    transform: scale(1.05);
}

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

.category-chip {
    display: inline-flex;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.73rem;
    font-weight: 700;
    width: fit-content;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.price-row strong {
    color: var(--primary);
    font-size: 1rem;
}

.price-row span {
    color: rgba(0, 0, 0, 0.5);
    text-decoration: line-through;
    font-size: 0.88rem;
}

.price-row.detail strong {
    font-size: 1.35rem;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(140deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 20px rgba(216, 27, 96, 0.24);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-light {
    background: rgba(255, 255, 255, 0.92);
    color: #1c0f19;
}

.btn-danger {
    background: #de2d2d;
    color: #fff;
}

.btn.block {
    width: 100%;
}

.inline-form {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.inline-form input,
.filter-form select,
.filter-form input {
    padding: 0.6rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    min-height: 40px;
}

.filter-form {
    display: flex;
    gap: 0.6rem;
}

.product-detail {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.product-detail-image-wrap {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-detail-image {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.product-detail-body {
    display: grid;
    gap: 0.8rem;
}

.product-detail-text {
    font-size: 1.02rem;
    color: rgba(0, 0, 0, 0.75);
}

.empty-state {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

.cart-items {
    display: grid;
    gap: 0.65rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0.7rem;
    align-items: center;
    padding: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 9px;
    object-fit: cover;
}

.cart-item input {
    width: 78px;
    padding: 0.5rem;
    border-radius: 9px;
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.link-btn {
    border: none;
    background: transparent;
    color: #b31f48;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.cart-summary {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.coupon-form {
    display: grid;
    gap: 0.6rem;
}

.coupon-row {
    display: flex;
    gap: 0.5rem;
}

.coupon-row input {
    flex: 1;
}

.totals-card p {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0;
}

.totals-card .grand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.checkout-grid {
    display: grid;
    gap: 1rem;
}

.form-card form,
.form-card {
    display: grid;
    gap: 0.8rem;
}

.field-grid {
    display: grid;
    gap: 0.8rem;
}

.field-grid label,
.form-card label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.74);
}

.field-grid label.full {
    grid-column: 1/-1;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 10px;
    padding: 0.66rem 0.72rem;
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
    background: #fff;
    color: var(--text);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.radio-stack {
    display: grid;
    gap: 0.55rem;
}

.radio-stack label,
.check-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.radio-stack input,
.check-line input {
    width: auto;
}

.auth-wrap {
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    display: grid;
    gap: 0.8rem;
}

.auth-switch {
    text-align: center;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
}

.hint-block {
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.84rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    margin-bottom: 1rem;
}

.tabs a {
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    font-weight: 600;
}

.tabs a.active {
    background: var(--primary);
    color: #fff;
}

.admin-tabs {
    margin-bottom: 1.15rem;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.metric-pill {
    background: var(--secondary);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
}

.table-card {
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 0.7rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 700;
}

.badge {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 79, 139, 0.2);
    color: #8a1e4c;
    font-weight: 700;
    font-size: 0.76rem;
}

.inline-edit-form {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

details summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: linear-gradient(160deg, #fff, rgba(255, 241, 246, 0.8));
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.9rem;
}

.stat-card p {
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 0.4rem;
}

.site-footer {
    margin-top: 2.2rem;
    background: #161219;
    color: #f0e8f4;
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    gap: 1.1rem;
}

.footer-grid h3 {
    color: #fff;
    margin-bottom: 0.7rem;
}

.footer-grid a {
    display: block;
    color: #d6c4de;
    margin-bottom: 0.35rem;
}

.newsletter-form {
    display: grid;
    gap: 0.55rem;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.newsletter-form button {
    border: none;
    border-radius: 9px;
    padding: 0.62rem 0.86rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 760px) {
    .main-content {
        padding: 1.55rem 0 2.3rem;
    }

    .menu-btn,
    .mobile-nav {
        display: none !important;
    }

    .desktop-nav {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-card {
        min-height: 340px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .product-detail {
        grid-template-columns: minmax(0, 420px) 1fr;
        align-items: start;
    }

    .cart-item {
        grid-template-columns: 64px 1fr 100px 110px 70px;
    }

    .cart-summary {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }

    .checkout-grid {
        grid-template-columns: 1.3fr 1fr;
    }

    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
