:root {
    --rose: #c45b7a;
    --rose-deep: #9e3d5c;
    --blush: #f7e4ea;
    --petal: #ffe8ef;
    --ink: #3a2a30;
    --muted: #6e5560;
    --cream: #fffafb;
    --surface: #ffffff;
    --line: #f0c9d4;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse at top left, rgba(255, 196, 210, 0.45), transparent 45%),
        radial-gradient(ellipse at bottom right, rgba(255, 220, 200, 0.35), transparent 40%),
        var(--cream);
    color: var(--ink);
    min-height: 100vh;
}

h1, h2, h3, .brand-mark, .logo {
    font-family: var(--font-display);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 251, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 201, 212, 0.7);
    padding: 0.9rem 2rem;
}

.navbar-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--rose-deep);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rose-deep);
}

.container,
.section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container {
    margin: 2rem auto;
}

.section {
    padding: 4.5rem 0;
}

.page-hero {
    padding: 3.5rem 0 1rem;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--rose-deep);
    margin-bottom: 0.6rem;
}

.section-lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 36rem;
}

.brand-mark {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 0.95;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: rise-in 0.9s ease both;
}

.brand-mark--page {
    color: var(--rose);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    animation: none;
}

/* Full-bleed hero */
.hero-bleed {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}

.hero-bleed__media {
    position: absolute;
    inset: 0;
    /* Soft yarn / crochet studio — section only, not a product image */
    background-image: url('https://images.unsplash.com/photo-1584992236310-6edddc08acff?auto=format&fit=crop&w=1800&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: slow-zoom 18s ease-in-out infinite alternate;
}

.hero-bleed__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(88, 28, 48, 0.72) 10%, rgba(158, 61, 92, 0.45) 55%, rgba(255, 180, 190, 0.25) 100%);
}

.hero-bleed__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem 4.5rem;
}

.hero-bleed h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    font-weight: 500;
    max-width: 18ch;
    margin-bottom: 0.75rem;
    animation: rise-in 0.9s ease 0.12s both;
}

.hero-lead {
    font-size: 1.1rem;
    max-width: 28ch;
    opacity: 0.92;
    margin-bottom: 1.6rem;
    animation: rise-in 0.9s ease 0.22s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: rise-in 0.9s ease 0.32s both;
}

.about-snippet__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.about-snippet__copy h2 {
    color: var(--rose-deep);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.about-snippet__copy p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 38rem;
}

.about-snippet__visual {
    min-height: 320px;
    border-radius: 4px;
    /* Handmade yarn texture — section only, not a product image */
    background:
        linear-gradient(160deg, rgba(196, 91, 122, 0.12), rgba(255, 232, 239, 0.15)),
        url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=900&q=80') center / cover no-repeat;
    background-position: center;
    background-size: cover;
    animation: float-soft 7s ease-in-out infinite;
}

.product-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    min-height: 340px;
    animation: float-soft 7s ease-in-out infinite;
}

.product-collage__item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--line);
    min-height: 340px;
}

.product-collage__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.product-collage__item:hover img {
    transform: scale(1.05);
}

.product-collage__item--empty {
    background: var(--petal);
}

.about-intro__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.about-intro__grid--reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.about-photo {
    min-height: 320px;
    border-radius: 4px;
    background-position: center;
    background-size: cover;
    border: 1px solid var(--line);
}

.about-photo--story {
    background-image: url('https://images.unsplash.com/photo-1584992236310-6edddc08acff?auto=format&fit=crop&w=1000&q=80');
}

.about-photo--belief {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1000&q=80');
}

.about-gallery-title {
    color: var(--rose-deep);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-gallery__item {
    display: block;
    text-decoration: none;
    color: var(--ink);
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: #fff;
}

.about-gallery__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-gallery__item:hover img {
    transform: scale(1.04);
}

.about-gallery__item span {
    display: block;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--rose-deep);
}

.feedback-form-section {
    padding-top: 1rem;
}

.feedback-form-wrap {
    max-width: 640px;
}

.feedback-form-wrap h2 {
    color: var(--rose-deep);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.feedback-form {
    margin-top: 1.5rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.featured-header h2 {
    color: var(--rose-deep);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.45rem;
}

.featured-section .products-grid {
    margin-top: 0.5rem;
}

.feedback-section {
    background: linear-gradient(180deg, transparent, rgba(247, 228, 234, 0.55) 20%, rgba(247, 228, 234, 0.55) 80%, transparent);
}

.feedback-section h2 {
    color: var(--rose-deep);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}

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

.feedback-item {
    border-top: 2px solid var(--rose);
    padding-top: 1.25rem;
}

.feedback-item blockquote {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 1rem;
}

.feedback-item figcaption {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.prose h2 {
    color: var(--rose-deep);
    margin: 2rem 0 0.8rem;
}

.prose p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 42rem;
}

.prose .btn {
    margin-top: 1rem;
}

.text-link {
    color: var(--rose-deep);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #e8a0b4;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.35rem;
}

.product-name {
    font-size: 1.2rem;
    color: var(--rose-deep);
    margin-bottom: 0.45rem;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rose);
    margin-bottom: 1rem;
}

.btn {
    padding: 0.75rem 1.4rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-body);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--rose);
    color: #fff;
}

.btn-primary:hover {
    background: var(--rose-deep);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
    background: #fff;
    color: var(--rose-deep);
    border: 1.5px solid var(--line);
}

.btn-secondary:hover {
    background: var(--petal);
}

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

.btn-danger:hover {
    background: #c82333;
}

.cart-badge {
    background: var(--rose-deep);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1rem;
}

.product-detail-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.product-detail-info h1 {
    color: var(--rose-deep);
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rose);
    margin-bottom: 1.5rem;
}

.product-detail-description {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--rose-deep);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

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

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    color: var(--rose-deep);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rose);
}

.quantity-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    background: var(--rose);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

.cart-summary {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rose-deep);
    margin-bottom: 1.5rem;
}

.admin-body {
    background: var(--cream);
    min-height: 100vh;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #3a2a30;
    color: #fff;
    padding: 1.75rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar__brand {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
}

.admin-sidebar__label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    margin: 0.35rem 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-sidebar__nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-sidebar__nav a:hover,
.admin-sidebar__nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-sidebar__logout {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1rem !important;
}

.admin-main {
    padding: 1.5rem;
}

.admin-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--line);
}

.admin-navbar {
    display: none;
}

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

.analytics-card {
    background: var(--petal);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.25rem;
}

.analytics-card__label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.analytics-card__value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--rose-deep);
}

.analytics-panels {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-bar-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--petal);
    border-radius: 8px;
}

.content-subheading {
    color: var(--rose-deep);
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
}

.payment-wrap {
    max-width: 560px;
}

.payment-title {
    color: var(--rose-deep);
    margin-bottom: 0.5rem;
}

.payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--petal);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.payment-amount strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--rose-deep);
}

.payment-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.payment-tab {
    flex: 1;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    font-family: var(--font-body);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

.payment-tab.active {
    border-color: var(--rose);
    color: var(--rose-deep);
    background: var(--petal);
}

.payment-panel {
    text-align: center;
    margin-bottom: 1.25rem;
}

.payment-qr {
    width: min(100%, 280px);
    height: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0.75rem;
}

.payment-qr--official {
    max-width: 180px;
    margin-top: 0.5rem;
}

.official-qr-box {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}


.payment-hint,
.payment-note {
    color: var(--muted);
    margin-top: 1rem;
    line-height: 1.6;
}

.bank-details {
    text-align: left;
    margin: 1rem auto;
    max-width: 320px;
    color: var(--ink);
}

.payment-steps {
    margin: 1.5rem 0;
    padding-left: 1.25rem;
    color: var(--muted);
    line-height: 1.8;
}

.payment-confirm-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

.payment-status {
    margin-top: 1rem;
    color: #c62828;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 800px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .admin-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .analytics-grid,
    .analytics-panels {
        grid-template-columns: 1fr;
    }
}

.admin-navbar__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-navbar__brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--rose-deep);
    text-decoration: none;
    font-size: 1.2rem;
}

.admin-navbar__links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    flex-wrap: wrap;
}

.admin-navbar__links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.admin-navbar__links a:hover,
.admin-navbar__links a.active {
    color: var(--rose-deep);
}

.content-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.content-image-field {
    background: var(--petal);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.content-image-field h3 {
    color: var(--rose-deep);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.content-preview {
    width: 100%;
    max-width: 280px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
}

.field-hint {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .content-image-grid {
        grid-template-columns: 1fr;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.admin-header h1 {
    color: var(--rose-deep);
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-section h2 {
    color: var(--rose-deep);
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--petal);
    color: var(--rose-deep);
    font-weight: 700;
}

.order-status {
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-pending-payment {
    background: #ffebee;
    color: #c62828;
}

.status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.login-container {
    max-width: 400px;
    margin: 5rem auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.login-container h1 {
    text-align: center;
    color: var(--rose-deep);
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.empty-note {
    color: var(--muted);
    grid-column: 1 / -1;
}

.footer {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 2rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slow-zoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
    .about-snippet__grid,
    .about-intro__grid,
    .about-intro__grid--reverse,
    .feedback-row,
    .product-detail-container,
    .about-gallery {
        grid-template-columns: 1fr;
    }

    .product-collage {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
    }

    .product-collage__item {
        min-height: 200px;
    }

    .hero-bleed {
        min-height: 78vh;
        align-items: center;
    }

    .hero-bleed__content {
        padding-bottom: 3rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.85rem 1rem;
    }

    .section-inner,
    .hero-bleed__content {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
