@font-face {
    font-family: "Sofia Sans";
    src: url("fonts/SofiaSans-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Sofia Sans";
    src: url("fonts/SofiaSans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "My Soul";
    src: url("fonts/MySoul-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --color-off-white: #f4f6fb;
    --color-sage-green: #8a9a86;
    --color-charcoal: #1f2937;
    --color-white: #ffffff;
    --color-light-gray: #dbe3f1;
    --font-body: "Sofia Sans", sans-serif;
    --font-heading: "Sofia Sans", sans-serif;
    --font-ui: "Sofia Sans", sans-serif;
    --font-logo: "My Soul", cursive;
    --color-accent: #6f846a;
    --color-accent-2: #06b6d4;
    --shadow-3d: 0 18px 38px rgba(24, 39, 75, 0.18);
    --shadow-3d-soft: 0 12px 24px rgba(24, 39, 75, 0.12);
    --glow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 10px 28px rgba(98, 116, 95, 0.22);
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background: radial-gradient(1200px 600px at 15% -20%, #eaf0ff 0%, transparent 55%), radial-gradient(900px 500px at 90% 0%, #e8fbff 0%, transparent 50%), var(--color-off-white);
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

header {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(219, 227, 241, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.06);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.logo {
    font-family: var(--font-logo);
    font-weight: 400;
    font-style: normal;
    font-size: 2.35rem;
    line-height: 1.05;
    display: inline-flex;
    min-width: 160px;
    text-decoration: none;
    color: var(--color-charcoal);
    letter-spacing: 0.4px;
    text-shadow: 0 6px 14px rgba(63, 140, 255, 0.25);
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.logo:hover {
    transform: translateY(-2px) rotate(-1deg);
    text-shadow: 0 10px 22px rgba(124, 58, 237, 0.35);
}

.my-soul-regular {
    font-family: "My Soul", cursive;
    font-weight: 400;
    font-style: normal;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 1.12rem;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #4d5f49;
    background-color: rgba(138, 154, 134, 0.22);
    transform: translateY(-1px);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--color-sage-green);
    outline-offset: 3px;
}

.cart-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

main {
    min-height: calc(100vh - 220px);
}

.page-title {
    margin: 2rem 0 0.6rem;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-subtitle {
    max-width: 760px;
    margin: 0 auto 2.2rem;
    text-align: center;
    color: #555;
    font-size: 1.15rem;
}

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

.product-card {
    background: linear-gradient(160deg, #ffffff 0%, #f8faf8 100%);
    border-radius: 12px;
    border: 1px solid #d2e2d2;
    overflow: hidden;
    box-shadow: var(--shadow-3d-soft);
    content-visibility: auto;
    contain-intrinsic-size: 420px;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: var(--shadow-3d);
    border-color: #b8cfae;
}

.product-img-wrapper {
    padding: 1rem;
    background: linear-gradient(180deg, #f0f5f0 0%, #e4efe4 100%);
}

.product-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 16px 18px rgba(98, 116, 95, 0.22));
    transition: transform 0.25s ease;
}

.product-card:hover .product-img {
    transform: translateY(-4px) scale(1.02);
}

.product-info {
    padding: 1rem 1rem 1.2rem;
}

.product-title {
    margin: 0 0 0.7rem;
    font-size: 1.45rem;
    font-weight: 600;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-volume {
    color: #666;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-sage-green);
}

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-optical-sizing: auto;
    background: linear-gradient(135deg, #8a9a86 0%, #73856f 55%, #62745f 100%);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 0.78rem 1.05rem;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset, 0 10px 24px rgba(98, 116, 95, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.06) brightness(1.03);
    box-shadow: 0 14px 28px rgba(98, 116, 95, 0.34);
}

.btn:active {
    transform: translateY(0);
}

footer {
    margin-top: 2rem;
    background: linear-gradient(165deg, #2f3b2e 0%, #415040 42%, #556854 72%, #62745f 100%);
    color: #f0f4ee;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 2.2rem 0;
}

.footer-col h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

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

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a {
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.8rem 0;
    text-align: center;
    color: #dfe8db;
}

.footer-links a:hover {
    color: #c8dcc4;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 200;
    transform: translateY(130%);
    transition: transform 0.25s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d4e1ff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-3d-soft);
}

.cookie-content p {
    margin: 0;
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.checkout-form-area,
.checkout-summary {
    background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d9e4ff;
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: var(--shadow-3d-soft);
}

.checkout-form-area h2,
.checkout-summary h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #1f2937;
}

.form-control {
    width: 100%;
    border: 1px solid #bfd4ff;
    border-radius: 10px;
    padding: 0.72rem 0.82rem;
    font: inherit;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #3f8cff;
    box-shadow: 0 0 0 3px rgba(63, 140, 255, 0.18);
}

.payment-method-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #eef4ff;
    border: 1px solid #c8d9ff;
    border-radius: 10px;
    padding: 0.72rem 0.85rem;
    color: #1f2937;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid #e5ecfa;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
}

.product-detail-page {
    padding: 4rem 1rem;
}

.product-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
    justify-content: center;
}

.product-detail-description-section {
    margin-top: 2.5rem;
    max-width: 1100px;
}

.product-detail-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.product-detail-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-3d-soft);
    mix-blend-mode: multiply;
}

.product-detail-copy {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    font-family: var(--font-ui);
}

.product-detail-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
}

.product-detail-volume {
    margin: 0 0 2rem;
    font-size: 1.15rem;
    color: #4b5563;
    font-weight: 500;
}

.product-detail-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-sage-green);
    margin-bottom: 2rem;
}

.product-detail-price-bgn {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0.35rem;
}

.product-detail-desc {
    margin-bottom: 0;
    font-size: 1.0625rem;
    line-height: 1.78;
    color: #374151;
    font-weight: 400;
}

.product-detail-cart-form {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.product-detail-qty {
    width: 88px;
    flex-shrink: 0;
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 0;
}

.product-detail-submit {
    flex: 1;
    min-width: 200px;
    font-size: 1.15rem;
    padding: 1rem 1.15rem;
}

.product-detail-features {
    margin-top: 3rem;
    padding: 1.25rem 1.3rem;
    border: 1px solid #d9e1d4;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbf6 0%, #f1f6ee 100%);
    box-shadow: 0 8px 20px rgba(98, 116, 95, 0.12);
}

.product-detail-features-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
}

.product-detail-features-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.product-detail-features-list li {
    position: relative;
    margin: 0;
    padding-left: 1.55rem;
    color: #1f2937;
    font-size: 0.98rem;
    font-weight: 600;
}

.product-detail-features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #6c8a63;
    font-weight: 700;
}

.hamburger {
    display: none;
}

@media (max-width: 860px) {
    header {
        backdrop-filter: none;
        box-shadow: 0 4px 12px rgba(31, 41, 55, 0.08);
    }

    .product-card,
    .product-card:hover {
        transform: none;
        box-shadow: 0 6px 14px rgba(31, 41, 55, 0.08);
    }

    .product-img {
        filter: none;
    }

    .btn {
        box-shadow: 0 6px 14px rgba(98, 116, 95, 0.22);
    }

    .btn:hover {
        transform: none;
        box-shadow: 0 8px 16px rgba(98, 116, 95, 0.24);
    }

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

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

    .hamburger {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        background: var(--color-charcoal);
        display: block;
    }

    #nav-menu {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-light-gray);
        display: none;
    }

    #nav-menu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem 4%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-img,
    .btn,
    .logo,
    .nav-links a {
        transition: none !important;
        transform: none !important;
    }
}
