/* =========================
   GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #171717;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* =========================
   TOP BAR
========================= */

.top-bar {
    height: 36px;
    background: #c91418;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6.5%;
    font-size: 13px;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================
   HEADER
========================= */

.main-header {
    height: 88px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 6.5%;
    gap: 40px;
    border-bottom: 1px solid #eeeeee;
}

.logo-area {
    display: flex;
    align-items: center;
    min-width: 280px;
}

.logo-icon {
    width: 62px;
    height: 45px;
    border: 3px solid #c91418;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    margin-left: 14px;
}

.logo-text h1 {
    color: #c91418;
    font-size: 25px;
    font-weight: 800;
}

.logo-text p {
    color: #333;
    font-size: 12px;
    margin-top: 3px;
}

/* =========================
   NAVIGATION
========================= */

.navigation {
    display: flex;
    align-items: center;
    gap: 35px;
    flex: 1;
}

.navigation a {
    position: relative;
    text-decoration: none;
    color: #161616;
    font-size: 15px;
    font-weight: 500;
    padding: 32px 0;
}

.navigation a:hover,
.navigation a.active {
    color: #c91418;
}

.navigation a.active {
    font-weight: 700;
}

.navigation a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 2px;
    background: #c91418;
}

/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    width: 260px;
    height: 43px;
    border: 1px solid #dddddd;
    border-radius: 7px;
    display: flex;
    align-items: center;
    padding: 0 13px;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 13px;
}

.search-box span {
    font-size: 23px;
    color: #555;
}

.account-button {
    width: 46px;
    height: 43px;
    background: white;
    border: 1px solid #dddddd;
    border-radius: 7px;
    font-size: 22px;
}

.cart-button {
    height: 43px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: #c91418;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.cart-button:hover {
    background: #a90f13;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 390px;
    display: flex;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 48%,
        #fafafa 62%,
        #c91418 100%
    );
    overflow: hidden;
}

.hero-content {
    width: 53%;
    padding: 34px 0 30px 7%;
    z-index: 2;
}

.hero-small-title {
    color: #c91418;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 54px;
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-content h2 span {
    color: #c91418;
}

.hero-description {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 18px;
}

/* =========================
   HERO FEATURES
========================= */

.hero-features {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 22px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    background: #c91418;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.hero-feature strong {
    font-size: 14px;
}

.hero-feature p {
    font-size: 12px;
    margin-top: 4px;
    color: #444;
}

.shop-now-button {
    background: #c91418;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 700;
}

.shop-now-button:hover {
    background: #a90f13;
}

/* =========================
   HERO IMAGE
========================= */

.hero-image-area {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-area::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 450px;
    background: #c91418;
    right: -80px;
    top: -40px;
    transform: rotate(-5deg);
    z-index: 0;
}

.hero-meat-image {
    position: relative;
    width: 650px;
    max-width: 100%;
    margin-left: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-meat-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.fresh-badge {
    position: absolute;
    right: 70px;
    top: 28px;
    width: 105px;
    height: 105px;
    border: 1px solid white;
    border-radius: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    text-align: center;
}

.fresh-badge strong {
    font-size: 23px;
}

.fresh-badge span {
    font-size: 13px;
    font-weight: 700;
}

/* =========================
   PRODUCTS HEADING
========================= */

.products-heading {
    text-align: center;
    padding: 12px 20px 10px;
}

.heading-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #c91418;
    font-size: 13px;
    font-weight: 800;
}

.heading-line span {
    width: 60px;
    height: 1px;
    background: #c91418;
}

.products-heading h2 {
    font-size: 25px;
    margin: 5px 0;
}

.products-heading p {
    font-size: 14px;
    color: #333;
}

/* =========================
   PRODUCTS
========================= */

.products-section {
    display: flex;
    gap: 35px;
    padding: 0 5.5% 20px;
}

.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.08);
}

/* PRODUCT IMAGE */

.product-image {
    height: 175px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c91418;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.heart {
    position: absolute;
    top: 13px;
    right: 16px;
    font-size: 25px;
    color: #777;
    z-index: 2;
}

/* PRODUCT INFO */

.product-info {
    padding: 8px 15px 13px;
}

.product-info h3 {
    font-size: 15px;
    min-height: 20px;
    margin-bottom: 6px;
}

.price {
    color: #c91418;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
}

.price span {
    color: #222;
    font-weight: 500;
}

/* WEIGHT */

.weight-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.weight-buttons button {
    flex: 1;
    height: 30px;
    background: white;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.weight-buttons button:hover {
    border-color: #c91418;
}

.weight-buttons button.selected {
    background: #c91418;
    border-color: #c91418;
    color: white;
}

/* PRODUCT BOTTOM */

.product-bottom {
    display: flex;
    gap: 12px;
    align-items: center;
}

.quantity {
    display: flex;
    height: 32px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity button,
.quantity span {
    width: 30px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 13px;
}

.quantity button:hover {
    background: #f2f2f2;
}

.quantity span {
    border-left: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
}

.add-cart {
    flex: 1;
    height: 32px;
    border: none;
    border-radius: 5px;
    background: #c91418;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.add-cart:hover {
    background: #a90f13;
}

/* =========================
   SERVICE BOXES
========================= */

.service-boxes {
    width: 190px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-box {
    min-height: 82px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    background: white;
}

.service-icon {
    font-size: 28px;
    color: #c91418;
}

.service-box strong {
    font-size: 12px;
}

.service-box p {
    font-size: 11px;
    line-height: 1.45;
    margin-top: 5px;
    color: #333;
}

/* =========================
   PROMOTION
========================= */

.promotion-section {
    margin: 0 5.5% 20px;
    min-height: 94px;
    background: #c91418;
    border-radius: 15px;
    color: white;
    display: flex;
    align-items: center;
    padding: 14px 40px;
    gap: 55px;
}

.promotion-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.promotion-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
}

.promotion-item h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.promotion-item p {
    font-size: 12px;
    line-height: 1.35;
}

.promotion-button-area {
    border-left: 1px solid rgba(255,255,255,0.6);
    padding-left: 45px;
}

.promotion-button {
    width: 210px;
    height: 43px;
    background: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.promotion-button:hover {
    background: white;
    color: #c91418;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #191919;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {

    .main-header {
        padding: 0 3%;
        gap: 20px;
    }

    .logo-area {
        min-width: 230px;
    }

    .navigation {
        gap: 20px;
    }

    .search-box {
        width: 190px;
    }

    .products-section {
        padding-left: 3%;
        padding-right: 3%;
    }

    .products-grid {
        gap: 14px;
    }

    .promotion-section {
        margin-left: 3%;
        margin-right: 3%;
        gap: 25px;
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 900px) {

    .top-right {
        display: none;
    }

    .main-header {
        height: auto;
        padding: 15px 5%;
        flex-wrap: wrap;
    }

    .logo-area {
        min-width: auto;
    }

    .navigation {
        order: 3;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero {
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
        padding: 40px 7%;
    }

    .hero-image-area {
        width: 100%;
        min-height: 330px;
    }

    .products-section {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-boxes {
        width: 100%;
        flex-direction: row;
    }

    .service-box {
        flex: 1;
    }

    .promotion-section {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {

    .top-bar {
        padding: 0 15px;
    }

    .main-header {
        padding: 15px;
    }

    .header-actions {
        width: 100%;
    }

    .search-box {
        flex: 1;
    }

    .navigation {
        justify-content: flex-start;
        gap: 25px;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .hero-features {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .service-boxes {
        flex-direction: column;
    }

    .promotion-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .promotion-button-area {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }

    .promotion-button {
        width: 100%;
    }
}
/* =========================================
   CHECKOUT PAGE
========================================= */

.checkout-page {
    min-height: 70vh;
    background: #f8f8f8;
    padding: 40px 6%;
}

.checkout-title {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-title h2 {
    font-size: 32px;
    margin: 10px 0;
}

.checkout-title p {
    color: #666;
    font-size: 14px;
}

.checkout-container {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.checkout-form,
.checkout-summary {
    background: white;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.checkout-form h2,
.checkout-summary h2 {
    color: #222;
    font-size: 21px;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    padding: 12px;
    font-size: 14px;
    outline: none;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c91418;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-title {
    border-top: 1px solid #eeeeee;
    padding-top: 22px;
    margin-top: 25px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.payment-option:hover {
    border-color: #c91418;
}

.payment-option input {
    accent-color: #c91418;
}

.checkout-summary {
    position: sticky;
    top: 20px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eeeeee;
}

.checkout-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}

.checkout-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-item-info strong {
    font-size: 13px;
}

.checkout-item-info span {
    font-size: 12px;
    color: #777;
}

.checkout-item > strong {
    color: #c91418;
    font-size: 13px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
}

.summary-line span {
    color: #555;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #dddddd;
    margin-top: 8px;
    padding-top: 18px;
    font-size: 20px;
    font-weight: 800;
}

.summary-total strong {
    color: #c91418;
}

#place-order {
    width: 100%;
    height: 48px;
    margin-top: 22px;
    border: none;
    border-radius: 7px;
    background: #c91418;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#place-order:hover {
    background: #a90f13;
}

.secure-text {
    text-align: center;
    color: #777;
    font-size: 11px;
    margin-top: 13px;
}

.empty-checkout {
    text-align: center;
    padding: 30px 10px;
    color: #777;
}


/* =========================================
   CHECKOUT MOBILE
========================================= */

@media (max-width: 800px) {

    .checkout-page {
        padding: 30px 15px;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

}

@media (max-width: 500px) {

    .checkout-form,
    .checkout-summary {
        padding: 20px;
    }

    .checkout-title h2 {
        font-size: 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

}
/* =========================================
   ORDER SUCCESS PAGE
========================================= */

.success-page {
    min-height: 70vh;
    background: #f8f8f8;
    padding: 55px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-card {
    width: 100%;
    max-width: 650px;
    background: white;
    border-radius: 18px;
    padding: 42px;
    text-align: center;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.success-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #c91418;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
}

.success-card h1 {
    color: #c91418;
    font-size: 32px;
    margin-bottom: 12px;
}

.success-message {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 25px;
}

.order-number-box {
    background: #fff5f5;
    border: 1px dashed #c91418;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
}

.order-number-box span {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.order-number-box strong {
    color: #c91418;
    font-size: 22px;
}

.success-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.success-details > div {
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 9px;
    padding: 13px 8px;
}

.success-details span {
    display: block;
    color: #777;
    font-size: 11px;
    margin-bottom: 6px;
}

.success-details strong {
    font-size: 13px;
}

.success-total {
    color: #c91418 !important;
}

.delivery-message {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    background: #fff5f5;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 25px;
    color: #c91418;
    font-size: 27px;
}

.delivery-message strong {
    display: block;
    color: #222;
    font-size: 14px;
    margin-bottom: 4px;
}

.delivery-message p {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.success-buttons {
    display: flex;
    gap: 12px;
}

.success-buttons button {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 7px;
    background: #c91418;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.success-buttons button:hover {
    background: #a90f13;
}

.success-buttons .secondary-button {
    background: white;
    color: #c91418;
    border: 1px solid #c91418;
}

.success-buttons .secondary-button:hover {
    background: #fff5f5;
}


/* MOBILE */

@media (max-width: 600px) {

    .success-page {
        padding: 30px 15px;
    }

    .success-card {
        padding: 28px 18px;
    }

    .success-card h1 {
        font-size: 27px;
    }

    .success-details {
        grid-template-columns: 1fr;
    }

    .success-buttons {
        flex-direction: column;
    }

}
/* Hide product descriptions */
.dynamic-product-description {
    display: none !important;
}