@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    --bg: #eef7f8;
    --bg-soft: #f7fcfc;
    --surface: #fbffff;
    --surface-strong: #ffffff;
    --ink: #12212a;
    --muted: #4b6470;
    --line: #cfe4e7;
    --primary: #0f766e;
    --primary-2: #0891b2;
    --accent: #22d3ee;
    --danger: #c1121f;
    --card-shadow: 0 8px 20px rgba(25, 32, 45, 0.08);
    --soft-shadow: 0 4px 12px rgba(25, 32, 45, 0.07);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    padding: clamp(14px, 2.6vw, 28px);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, #d3f3ef 0%, transparent 34%),
        radial-gradient(circle at 84% 16%, #d4edff 0%, transparent 38%),
        linear-gradient(180deg, #f3fcfd 0%, #e9f4f6 100%);
    min-height: 100vh;
    line-height: 1.45;
}

.page-shell {
    max-width: 1220px;
    margin: 0 auto;
}

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px 22px;
    border: 1px solid #cfe4e7;
    border-radius: var(--radius);
    background: #fbffff;
    box-shadow: var(--card-shadow);
}

.floating-header {
    position: fixed;
    top: 12px;
    left: 50%;
    width: min(1220px, calc(100% - 28px));
    margin: 0;
    transform: translate(-50%, -140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 999;
}

.floating-header.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.9rem, 1.6rem + 1vw, 2.6rem);
    letter-spacing: 0.2px;
}

h2 {
    font-size: 1.4rem;
    font-family: 'DM Serif Display', serif;
}

nav {
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-2);
}

header nav a {
    padding: 6px 10px;
    border-radius: 999px;
}

header nav a+a::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin-right: 10px;
    background: #c5dfe4;
    vertical-align: -2px;
}

header nav a:hover {
    background: rgba(8, 145, 178, 0.14);
}

main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.discount-marquee {
    margin-bottom: 16px;
    border: 1px solid #9ed0da;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8fbff 0%, #d8f3f8 100%);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}

.discount-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    padding: 10px 0;
    width: max-content;
    color: #0f5e6c;
    font-weight: 700;
    will-change: transform;
    animation: discountSlideRight 8s linear infinite;
}

.discount-marquee-track span::after {
    content: "•";
    margin-left: 28px;
    color: #0f8a88;
}

@keyframes discountSlideRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

.hero {
    margin-bottom: 22px;
    padding: 24px 24px 22px;
    border-radius: var(--radius);
    border: 1px solid #cde3e7;
    background: linear-gradient(130deg, #f0fbfc 0%, #f8fdff 100%);
    box-shadow: var(--card-shadow);
}

.hero-kicker {
    margin: 0 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--primary);
}

.hero-rebrand {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.hero-copy {
    display: grid;
    gap: 10px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
}

.hero-btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
}

.hero-btn.ghost {
    color: #0f4f5d;
    border: 1px solid #92c9d5;
    background: #eaf9fc;
}

.hero-proof {
    display: grid;
    gap: 10px;
}

.proof-item {
    border: 1px solid #cce5ea;
    border-radius: 12px;
    background: #f8fdff;
    padding: 12px;
    display: grid;
    gap: 4px;
}

.proof-item strong {
    color: #0f4f5d;
}

.proof-item span {
    color: var(--muted);
    font-size: 0.92rem;
}

.conversion-strip {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.conversion-strip article {
    border: 1px solid #cfe4e7;
    border-radius: 14px;
    background: #f8fdff;
    padding: 14px;
}

.strip-label {
    margin: 0 0 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0f5e6c;
}

.conversion-strip h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.conversion-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.hero h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 65ch;
    text-wrap: pretty;
}

.cta-banner {
    margin-bottom: 22px;
    border-radius: var(--radius);
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid #9ed0da;
    background: linear-gradient(140deg, #0f766e 0%, #0f8a88 52%, #0891b2 100%);
    color: #f2feff;
    box-shadow: 0 12px 28px rgba(8, 120, 143, 0.22);
}

.cta-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #c7f6ff;
}

.cta-banner h2 {
    margin: 0 0 8px;
    color: #ffffff;
}

.cta-banner p {
    margin: 0;
    color: #d9f8ff;
    max-width: 62ch;
    text-wrap: pretty;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 700;
    min-height: 42px;
}

.cta-btn:hover {
    filter: none;
}

.cta-btn.primary {
    background: #ffffff;
    color: #0f5e6c;
}

.cta-btn.ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(219, 251, 255, 0.55);
    color: #f2feff;
}

.catalog-section {
    background: rgba(251, 255, 255, 0.92);
    border: 1px solid #cfe4e7;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.catalog-head h2 {
    margin: 0;
}

.product-count {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
}

.collection-note {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.98rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 900px;
}

.card {
    background: var(--surface-strong);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid #efe8d9;
    box-shadow: 0 2px 8px rgba(20, 27, 38, 0.06);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(20, 27, 38, 0.06);
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #ece7dc;
}

.card:hover img {
    transform: none;
}

.card h3 {
    margin-bottom: 0;
}

.card p {
    margin: 0;
    color: var(--muted);
    min-height: 44px;
}

.card h3,
.card span,
.card p {
    text-wrap: pretty;
}

.product-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-popular {
    color: #7c2d12;
    background: #ffe4d6;
    border: 1px solid #ffd1bb;
}

.badge-best-choice {
    color: #6b4e00;
    background: #fff2b8;
    border: 1px solid #ffe282;
}

.card span {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

.card button {
    margin-top: auto;
}

button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

button:hover {
    filter: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

button:active {
    transform: none;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(217, 119, 6, 0.65);
    outline-offset: 2px;
}

#cart {
    position: sticky;
    top: 18px;
    background: var(--surface);
    border: 1px solid #cfe4e7;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    padding: 18px;
}

#cart h2 {
    margin-bottom: 10px;
}

#cart button {
    width: 100%;
}

.cart-actions {
    display: grid;
    gap: 8px;
}

.secondary-btn {
    color: #0f5e6c;
    background: linear-gradient(90deg, #d6f5fa 0%, #bae8f3 100%);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.16);
}

.secondary-btn:hover {
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.16);
}

#cart-content {
    color: var(--muted);
    margin-bottom: 14px;
}

#cart-content ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

#cart-content li {
    line-height: 1.4;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid #ece3d4;
    background: #fffdf8;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    align-items: flex-start;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}

.cart-item-title {
    display: block;
    color: var(--ink);
}

.cart-item-subtotal {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.92rem;
}

.cart-item-controls {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cart-mini-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-mini-btn:hover {
    background: var(--primary-2);
    transform: scale(1.08);
}

.cart-mini-btn:active {
    transform: scale(0.95);
}

.cart-remove-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #d62839 0%, var(--danger) 100%);
    box-shadow: none;
}

#cart-content p {
    margin-top: 14px;
    margin-bottom: 0;
    color: var(--ink);
}

.checkout-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.checkout-box,
.checkout-summary,
.contact-card {
    background: var(--surface);
    border: 1px solid #ece3d4;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.checkout-box {
    padding: 20px;
}

.checkout-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #ece3d4;
    background: #ffffff;
}

.checkout-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.checkout-item h3 {
    margin: 0 0 4px;
}

.checkout-item p {
    margin: 0;
    color: var(--muted);
}

.checkout-item strong {
    color: #a64f03;
}

.qty-controls {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid #e5ded1;
    border-radius: 999px;
    background: #fcfbf7;
}

.qty-controls span {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

.qty-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.checkout-summary {
    padding: 18px;
    position: sticky;
    top: 18px;
    overflow: hidden;
}

.checkout-summary::before {
    content: '';
    display: block;
    height: 4px;
    margin: -18px -18px 14px;
    background: linear-gradient(90deg, #facc15 0%, #f59e0b 50%, #ea580c 100%);
}

.checkout-total-row {
    margin: 14px 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.1rem;
}

.back-link {
    margin-top: 12px;
    display: inline-block;
}

.contact-card {
    padding: 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}

.add-product-card {
    align-items: start;
}

.add-product-card .contact-info {
    position: sticky;
    top: 18px;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d8d2c7;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
    background: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #efb365;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.contact-form textarea {
    resize: vertical;
}

.image-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

#edit-image-preview {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d8d2c7;
}

.contact-info {
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed #d8d2c7;
    background: #fffef8;
}

.contact-form button {
    margin-top: 4px;
}

.contact-info h3 {
    margin-bottom: 10px;
}

.contact-info p {
    margin: 0 0 8px;
    color: var(--muted);
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #f0e0c7;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 3px 10px rgba(20, 27, 38, 0.07);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-link:hover {
    color: #ffffff;
    filter: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.admin-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid #ece3d4;
}

.admin-empty {
    color: var(--muted);
    text-align: center;
    padding: 22px;
}

table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-soft);
    border: 1px solid #efe8d9;
    box-shadow: var(--soft-shadow);
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #fff2de;
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

tr+tr td {
    border-top: 1px solid var(--line);
}

tbody tr:hover {
    background: #fff7ea;
}

td {
    color: #3e352f;
}

td button {
    background: linear-gradient(90deg, #d62839 0%, var(--danger) 100%);
    padding: 8px 12px;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        grid-template-columns: 1fr;
    }

    .hero-rebrand,
    .conversion-strip {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        justify-content: flex-start;
    }

    .checkout-page,
    .contact-card {
        grid-template-columns: 1fr;
    }

    #cart {
        position: static;
    }

    .checkout-summary {
        position: static;
    }

    .grid {
        max-width: none;
    }

    .card p {
        min-height: auto;
    }

    .admin-toolbar {
        align-items: flex-start;
    }

    header nav a+a::before {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        padding: 14px;
    }

    header {
        padding: 14px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-btn {
        width: 100%;
    }

    .checkout-item {
        grid-template-columns: 56px 1fr;
    }

    .checkout-item strong {
        grid-column: 2;
    }
}