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

:root {
    --burgundy: #651315;
    --burgundy-dark: #451012;
    --cream: #fff5e8;
    --cream-light: #fffaf4;
    --white: #ffffff;
    --text: #32191b;
    --muted: #725e60;
    --border: #ead9ce;
    --shadow: 0 16px 40px rgba(69, 16, 18, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream-light);
    color: var(--text);
    line-height: 1.6;
}

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

button,
a {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--burgundy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-container {
    width: min(1180px, 92%);
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-link {
    display: block;
}

.logo {
    width: 135px;
    height: 70px;
    object-fit: cover;
    object-position: center;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.main-nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.4px;
}

.main-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.cart-button {
    border: 1px solid var(--cream);
    background: transparent;
    color: var(--cream);
    padding: 10px 15px;
    border-radius: 999px;
    cursor: pointer;
}

.cart-button:hover {
    background: var(--cream);
    color: var(--burgundy);
}

#cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    margin-left: 5px;
    padding: 0 5px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--burgundy);
    font-weight: bold;
}

.cart-button:hover #cart-count {
    background: var(--burgundy);
    color: var(--cream);
}

.hero {
    min-height: 650px;
    display: grid;
    place-items: center;
    padding: 100px 20px;
    text-align: center;
    background:
        linear-gradient(
            rgba(255, 245, 232, 0.94),
            rgba(255, 250, 244, 0.96)
        ),
        url("../images/product-1.jpg") center / cover;
}

.hero-content {
    max-width: 850px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--burgundy);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 7vw, 82px);
    font-weight: normal;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-text {
    max-width: 650px;
    margin: 0 auto 36px;
    color: var(--muted);
    font-size: 19px;
}

.primary-button {
    display: inline-block;
    background: var(--burgundy);
    color: var(--cream);
    padding: 15px 28px;
    border: 2px solid var(--burgundy);
    border-radius: 3px;
    text-decoration: none;
    transition: 0.2s ease;
}

.primary-button:hover {
    background: transparent;
    color: var(--burgundy);
}

.products-section {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 100px 0;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2,
.about-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: normal;
    line-height: 1.15;
    margin-bottom: 18px;
}

.section-heading > p:last-child,
.about-content > p:last-child {
    color: var(--muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 55px rgba(69, 16, 18, 0.17);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--cream);
}

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

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 245, 232, 0.93);
    color: var(--burgundy);
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--burgundy);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.product-info h3 {
    margin: 7px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: normal;
}

.product-description {
    min-height: 52px;
    color: var(--muted);
    font-size: 15px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 24px;
}

.product-price {
    font-size: 19px;
    font-weight: bold;
}

.add-to-cart {
    border: 1px solid var(--burgundy);
    background: var(--burgundy);
    color: var(--cream);
    padding: 11px 17px;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s ease;
}

.add-to-cart:hover {
    background: transparent;
    color: var(--burgundy);
}

.about-section {
    padding: 100px 20px;
    background: var(--cream);
}

.about-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.site-footer {
    padding: 55px 20px;
    background: var(--burgundy-dark);
    color: var(--cream);
    text-align: center;
}

.footer-logo {
    width: 150px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: cover;
}

.copyright {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.8;
}

.notification {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 200;
    max-width: 320px;
    padding: 15px 18px;
    background: var(--burgundy-dark);
    color: var(--cream);
    border-radius: 4px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: 0.25s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 800px) {
    .header-container {
        padding: 15px 0;
        flex-direction: column;
    }

    .main-nav {
        justify-content: center;
        gap: 14px;
    }

    .hero {
        min-height: 560px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (max-width: 520px) {
    .main-nav a {
        font-size: 13px;
    }

    .hero {
        padding: 80px 18px;
    }

    .hero-text {
        font-size: 17px;
    }

    .product-info {
        padding: 20px;
    }
}

.cart-page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cream);
    text-decoration: none;
    border: 1px solid var(--cream);
    padding: 10px 15px;
    border-radius: 999px;
}

.cart-page-link:hover {
    background: var(--cream);
    color: var(--burgundy);
}

.cart-page {
    min-height: 70vh;
    padding: 90px 20px;
    background: var(--cream-light);
}

.cart-container {
    width: min(1050px, 94%);
    margin: 0 auto;
}

.cart-heading {
    margin-bottom: 45px;
    text-align: center;
}

.cart-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: normal;
}

.cart-items {
    display: grid;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px minmax(180px, 1fr) auto auto auto;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

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

.cart-item-info h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: normal;
}

.cart-item-price {
    margin-top: 6px;
    color: var(--muted);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--burgundy);
    background: transparent;
    color: var(--burgundy);
    font-size: 20px;
    cursor: pointer;
}

.quantity-button:hover {
    background: var(--burgundy);
    color: var(--cream);
}

.cart-item-subtotal {
    min-width: 90px;
    font-weight: bold;
}

.remove-item {
    border: none;
    background: transparent;
    color: var(--burgundy);
    text-decoration: underline;
    cursor: pointer;
}

.cart-summary {
    max-width: 420px;
    margin: 35px 0 0 auto;
    padding: 28px;
    background: var(--cream);
    border: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 21px;
}

.checkout-button {
    width: 100%;
    margin-top: 24px;
    border: 2px solid var(--burgundy);
    background: var(--burgundy);
    color: var(--cream);
    padding: 15px 22px;
    cursor: pointer;
}

.checkout-button:hover {
    background: transparent;
    color: var(--burgundy);
}

.empty-cart {
    padding: 65px 20px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
}

.empty-cart h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    font-weight: normal;
}

.empty-cart p {
    margin: 12px 0 30px;
    color: var(--muted);
}

[hidden] {
    display: none !important;
}

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

    .cart-item-image {
        width: 95px;
        height: 115px;
    }

    .quantity-controls,
    .cart-item-subtotal,
    .remove-item {
        grid-column: 2;
    }

}
.checkout-page {
    min-height: 70vh;
    padding: 90px 20px;
    background: var(--cream-light);
}

.checkout-container {
    width: min(1150px, 94%);
    margin: 0 auto;
}

.checkout-heading {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.checkout-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: normal;
    line-height: 1.1;
}

.checkout-heading > p:last-child {
    margin-top: 15px;
    color: var(--muted);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    align-items: start;
    gap: 40px;
}

.checkout-form,
.order-summary {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label,
.payment-options legend {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--cream-light);
    color: var(--text);
    padding: 13px 14px;
    font: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid rgba(101, 19, 21, 0.2);
    border-color: var(--burgundy);
}

.payment-options {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid var(--border);
}

.radio-option {
    display: block;
    margin-top: 12px;
}

.radio-option input,
.terms-checkbox input {
    margin-right: 8px;
}

.disabled-option {
    color: var(--muted);
}

.terms-checkbox {
    display: block;
    margin: 20px 0;
}

.place-order-button {
    width: 100%;
    border: 2px solid var(--burgundy);
    background: var(--burgundy);
    color: var(--cream);
    padding: 15px 22px;
    cursor: pointer;
}

.place-order-button:hover {
    background: transparent;
    color: var(--burgundy);
}

.checkout-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.order-summary {
    position: sticky;
    top: 120px;
}

.order-summary h2 {
    margin-bottom: 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: normal;
}

.checkout-item {
    display: grid;
    grid-template-columns: 65px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item-image {
    width: 65px;
    height: 78px;
    object-fit: cover;
}

.checkout-item h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: normal;
}

.checkout-item p {
    color: var(--muted);
    font-size: 14px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 2px solid var(--burgundy);
    font-size: 21px;
}

.checkout-empty {
    color: var(--muted);
}

.checkout-empty a {
    color: var(--burgundy);
}

.order-message {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 300;
    max-width: 380px;
    padding: 18px;
    background: var(--burgundy-dark);
    color: var(--cream);
    box-shadow: var(--shadow);
}

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

    .order-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-form,
    .order-summary {
        padding: 22px;
    }

    .checkout-item {
        grid-template-columns: 55px 1fr;
    }

    .checkout-item > strong {
        grid-column: 2;
    }
}
.product-page {
    min-height: 75vh;
    padding: 85px 20px;
    background: var(--cream-light);
}

.product-details {
    width: min(1180px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
    gap: 60px;
}

.main-product-image-wrapper {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--cream);
    border: 1px solid var(--border);
}

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

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.thumbnail-button {
    overflow: hidden;
    padding: 0;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    background: var(--cream);
    cursor: pointer;
}

.thumbnail-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-button.active,
.thumbnail-button:hover {
    border-color: var(--burgundy);
}

.product-details-info {
    position: sticky;
    top: 125px;
    padding-top: 20px;
}

.product-details-info h1 {
    margin-bottom: 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 68px);
    font-weight: normal;
    line-height: 1.05;
}

.detail-price {
    margin-bottom: 28px;
    color: var(--burgundy);
    font-size: 27px;
    font-weight: bold;
}

.detail-description {
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.product-features {
    margin-bottom: 30px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-features p + p {
    margin-top: 8px;
}

.product-detail-cart-button {
    width: 100%;
    padding: 16px 25px;
    font-size: 17px;
}

.delivery-information {
    margin-top: 35px;
    padding: 25px;
    background: var(--cream);
    border: 1px solid var(--border);
}

.delivery-information h2 {
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: normal;
}

.delivery-information p {
    color: var(--muted);
}

@media (max-width: 850px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-details-info {
        position: static;
        padding-top: 0;
    }
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:hover {
    color: var(--burgundy);
}

.product-gallery {
    width: 100%;
}

/* Бутон „Любими“ върху продуктовата снимка */
.favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--burgundy);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, color 0.2s ease;
}

.favorite-button:hover {
    transform: scale(1.08);
}

.favorite-button.active {
    color: #c4003b;
}
.favorites-page {
    min-height: 75vh;
    padding: 90px 20px;
    background: var(--cream-light);
}

.favorites-container {
    width: min(1180px, 94%);
    margin: 0 auto;
}

.favorites-heading {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

.favorites-heading h1 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: normal;
    line-height: 1.1;
}

.favorites-heading > p:last-child {
    color: var(--muted);
    font-size: 17px;
}

.empty-favorites {
    grid-column: 1 / -1;
    padding: 65px 25px;
    background: var(--white);
    border: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    box-shadow: var(--shadow);
}

.remove-favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #c4003b;

    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.remove-favorite-button:hover {
    transform: scale(1.08);
}