@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #fffaf0;
    color: #193b29;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */

.header {
    height: 95px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    width: 130px;
    height: 80px;
    object-fit: contain;
}

.navbar {
    display: flex;
    gap: clamp(12px, 2vw, 30px);
    /* Keep Home through Track Order beside the Savi logo. */
    margin-left: clamp(8px, 1.5vw, 26px);
    margin-right: 0;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: clamp(14px, 2vw, 32px);
    border-left: 1px solid #e7e9e1;
}

.navbar a {
    font-weight: 600;
    transition: 0.3s;
}

.navbar a:hover {
    color: #b42020;
}

.cart-btn {
    background: #123b27;
    color: white;
    border: none;
    padding: 13px 22px;
    border-radius: 30px;
    cursor: pointer;
}

/* HERO SECTION */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8%;
    background: linear-gradient(120deg, #fffaf0, #f6e6c7);
    gap: 45px;
}

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

.hero-label {
    color: #b42020;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 13px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 65px;
    line-height: 1.2;
    margin: 25px 0;
}

.hero h1 span {
    color: #b42020;
}

.hero p {
    font-size: 17px;
    line-height: 1.9;
    color: #616b62;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.primary-btn {
    background: #123b27;
    color: white;
    padding: 16px 28px;
    border-radius: 6px;
    transition: 0.3s;
}

.primary-btn:hover {
    background: #b42020;
    transform: translateY(-3px);
}

.secondary-btn {
    border: 2px solid #123b27;
    padding: 14px 25px;
    border-radius: 6px;
}

/* HERO VISUAL */

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.food-showcase {
    width: 370px;
    height: 370px;
    background: radial-gradient(circle, #d33e22, #9c1515);
    border: 10px solid #d7a84b;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 30px 65px rgba(97, 34, 13, 0.25);
    animation: floating 4s ease-in-out infinite;
}

.showcase-icon {
    font-size: 110px;
}

.showcase-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: white;
    margin-top: 10px;
    letter-spacing: 2px;
}

.showcase-text strong {
    font-size: 20px;
    margin-top: 5px;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* FEATURES */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 70px 8%;
    background: #ffffff;
    text-align: center;
}

.feature span {
    font-size: 38px;
}

.feature h3 {
    margin: 15px 0;
}

.feature p {
    color: #777;
    line-height: 1.7;
}

/* PRODUCTS */

.products {
    padding: 100px 8%;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading span {
    color: #b42020;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 45px;
    margin: 15px 0;
}

.section-heading p {
    color: #777;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,0.07);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.product-image {
    height: 180px;
    background: #fff2d8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 85px;
}

.product-card h3 {
    margin: 22px 0 10px;
}

.product-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    min-height: 48px;
}

.product-card a {
    display: inline-block;
    margin-top: 20px;
    color: #b42020;
    font-weight: 700;
}

/* ABOUT */

.about {
    padding: 110px 8%;
    background: #123b27;
    color: white;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: auto;
}

.about-content > span {
    color: #e6c179;
    letter-spacing: 3px;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 45px;
    margin: 20px 0;
}

.about p {
    line-height: 2;
    color: #e0e6df;
}

.slogan {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #e6c179 !important;
    margin-top: 25px;
}

/* CONTACT */

.contact {
    padding: 100px 8%;
    text-align: center;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 43px;
    margin-bottom: 20px;
}

.contact p {
    color: #667066;
    line-height: 2;
}

.coming-soon {
    margin-top: 25px;
    font-weight: 700;
    color: #b42020 !important;
}

/* FOOTER */

.footer {
    background: #102f20;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 13px;
}

.footer p {
    margin: 8px 0;
}

/* MOBILE */

@media (max-width: 900px) {

    .header {
        padding: 0 4%;
    }

    .navbar {
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-buttons {
        justify-content: center;
    }

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

}

@media (max-width: 600px) {

    .header {
        height: auto;
        min-height: 85px;
        flex-wrap: wrap;
        padding: 10px 5%;
    }

    .logo img {
        width: 95px;
    }

    .navbar {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .hero {
        padding: 65px 5%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .food-showcase {
        width: 280px;
        height: 280px;
    }

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

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

    .section-heading h2,
    .about h2,
    .contact h2 {
        font-size: 34px;
    }
}
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.hero-food-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    transition: transform 0.5s ease;
}

.hero-food-image:hover {
    transform: scale(1.03);
}

.hero-image-badge {
    position: absolute;
    bottom: 25px;
    left: -20px;
    background: #ffffff;
    padding: 18px 28px;
    border-left: 5px solid #c79b49;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.hero-image-badge span {
    font-size: 13px;
    color: #b42020;
}

.hero-image-badge strong {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    color: #123b27;
}

@media (max-width: 600px) {
    .hero-food-image {
        height: 320px;
    }

    .hero-image-badge {
        left: 10px;
        bottom: 15px;
    }
}
/* =====================================
   SAVI PRODUCT SHOP
===================================== */

.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eee5d5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.product-image {
    height: 245px;
    background: #faf2e5;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    display: block;
    font-size: initial;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #123b27;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 30px;
}

.product-badge.veg {
    background: #47833e;
}

.product-details {
    padding: 24px;
    text-align: left;
}

.product-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0 0 10px;
    color: #123b27;
}

.product-details p {
    font-size: 13px;
    line-height: 1.7;
    color: #777;
    margin: 0 0 18px;
    min-height: 44px;
}

/* PACK SIZE BUTTONS */

.pack-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.pack-btn {
    background: #fff;
    border: 1px solid #d9d9d0;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #123b27;
    cursor: pointer;
    transition: 0.2s;
}

.pack-btn:hover {
    border-color: #123b27;
}

.pack-btn.selected {
    background: #123b27;
    border-color: #123b27;
    color: white;
}

/* PRICE AND ADD BUTTON */

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 23px;
    font-weight: 800;
    color: #b42020;
}

.add-cart-btn {
    padding: 12px 16px;
    border: none;
    background: #123b27;
    color: white;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.add-cart-btn:hover {
    background: #b42020;
}

/* =====================================
   SHOPPING CART
===================================== */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(430px, 100%);
    height: 100dvh;
    background: #fffaf0;
    z-index: 999;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 35px rgba(0,0,0,0.15);
}

.cart-panel.active {
    transform: translateX(0);
}

.cart-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5dfd2;
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 34px;
    cursor: pointer;
    color: #123b27;
}

.cart-items {
    padding: 20px 25px;
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    border-bottom: 1px solid #e3ded2;
    padding: 17px 0;
}

.cart-item h4 {
    margin-bottom: 7px;
    color: #123b27;
}

.cart-item p {
    color: #777;
    font-size: 12px;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

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

.cart-quantity button {
    border: none;
    background: #e8e9df;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
}

.cart-footer {
    border-top: 1px solid #e3ded2;
    padding: 22px 25px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cart-total strong {
    color: #b42020;
    font-size: 22px;
}

.cart-footer p {
    font-size: 11px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 18px;
}

.checkout-btn {
    width: 100%;
    border: none;
    padding: 17px;
    background: #123b27;
    color: white;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #b42020;
}

.empty-cart {
    text-align: center;
    color: #777;
    padding-top: 60px;
}

@media (max-width: 600px) {
    .product-image {
        height: 260px;
    }

    .product-bottom {
        flex-wrap: wrap;
    }
}
/* =====================================
   SAVI PRODUCT SHOP
===================================== */

.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eee5d5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.product-image {
    height: 245px;
    background: #faf2e5;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    display: block;
    font-size: initial;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #123b27;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 30px;
}

.product-badge.veg {
    background: #47833e;
}

.product-details {
    padding: 24px;
    text-align: left;
}

.product-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0 0 10px;
    color: #123b27;
}

.product-details p {
    font-size: 13px;
    line-height: 1.7;
    color: #777;
    margin: 0 0 18px;
    min-height: 44px;
}

/* PACK SIZE BUTTONS */

.pack-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.pack-btn {
    background: #fff;
    border: 1px solid #d9d9d0;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #123b27;
    cursor: pointer;
    transition: 0.2s;
}

.pack-btn:hover {
    border-color: #123b27;
}

.pack-btn.selected {
    background: #123b27;
    border-color: #123b27;
    color: white;
}

/* PRICE AND ADD BUTTON */

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 23px;
    font-weight: 800;
    color: #b42020;
}

.add-cart-btn {
    padding: 12px 16px;
    border: none;
    background: #123b27;
    color: white;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.add-cart-btn:hover {
    background: #b42020;
}

/* =====================================
   SHOPPING CART
===================================== */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(430px, 100%);
    height: 100dvh;
    background: #fffaf0;
    z-index: 999;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 35px rgba(0,0,0,0.15);
}

.cart-panel.active {
    transform: translateX(0);
}

.cart-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5dfd2;
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 34px;
    cursor: pointer;
    color: #123b27;
}

.cart-items {
    padding: 20px 25px;
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    border-bottom: 1px solid #e3ded2;
    padding: 17px 0;
}

.cart-item h4 {
    margin-bottom: 7px;
    color: #123b27;
}

.cart-item p {
    color: #777;
    font-size: 12px;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

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

.cart-quantity button {
    border: none;
    background: #e8e9df;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
}

.cart-footer {
    border-top: 1px solid #e3ded2;
    padding: 22px 25px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cart-total strong {
    color: #b42020;
    font-size: 22px;
}

.cart-footer p {
    font-size: 11px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 18px;
}

.checkout-btn {
    width: 100%;
    border: none;
    padding: 17px;
    background: #123b27;
    color: white;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #b42020;
}

.empty-cart {
    text-align: center;
    color: #777;
    padding-top: 60px;
}

@media (max-width: 600px) {
    .product-image {
        height: 260px;
    }

    .product-bottom {
        flex-wrap: wrap;
    }
}
/* SAVI ACCOUNT BUTTON */

.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 2px solid #123b28;
    border-radius: 30px;
    color: #123b28;
    background: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s;
}

.account-link:hover {
    background: #123b28;
    color: white;
}

.install-app-btn {
    margin-top: 13px;
    padding: 11px 21px;
    border: 1px solid #d9b878;
    border-radius: 999px;
    color: #fff;
    background: #174b35;
    font: 700 14px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background .2s ease;
}

.install-app-btn:hover { background: #0b3222; }
.install-app-btn[hidden] { display: none !important; }
.install-app-btn:focus-visible {
    outline: 3px solid #c69a4c;
    outline-offset: 3px;
}

/* When space gets tight, keep Cart / Account on the top row and
   move the five navigation links together onto their own row. */
@media (max-width: 1160px) {
    .header {
        height: auto;
        min-height: 90px;
        padding-top: 8px;
        padding-bottom: 8px;
        flex-wrap: wrap;
        row-gap: 0;
    }

    .header .navbar {
        order: 3;
        flex: 1 0 100%;
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 18px;
        padding: 8px 0 4px;
        overflow-x: auto;
    }

    .header .navbar a {
        white-space: nowrap;
    }

    .header-actions {
        margin-left: auto;
        padding-left: 0;
        border-left: 0;
    }
}

/* SAVI_MOBILE_POLISH_V1 */

@media (max-width: 780px) {

    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .header {
        height: auto;
        min-height: 76px;
        padding: 10px 4%;
        flex-wrap: wrap;
        gap: 8px 12px;
        justify-content: space-between;
    }

    .header .logo img {
        width: 88px;
        height: 61px;
    }

    .header .cart-btn {
        min-height: 44px;
        padding: 10px 13px;
        font-size: 13px;
        white-space: nowrap;
    }

    .header .account-link {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .header .navbar {
        order: 3;
        margin-left: 0;
        display: flex;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 7px;
        padding: 10px 0 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .header-actions {
        gap: 7px;
        margin-left: auto;
    }

    .header .navbar a {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 44px;
        padding: 9px 12px;
        border-radius: 9px;
        background: #f6f8f4;
        font-size: 13px;
    }

    .header .navbar a:focus-visible,
    .header button:focus-visible,
    .header .account-link:focus-visible {
        outline: 3px solid #bb9456;
        outline-offset: 2px;
    }

    .hero {
        min-height: unset;
        padding: 50px 5%;
        gap: 25px;
    }

    .hero h1 {
        font-size: clamp(33px, 8vw, 46px);
    }

    .hero p {
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-content,
    .hero-visual,
    .hero-image-container {
        min-width: 0;
        max-width: 100%;
    }

    .hero-food-image {
        max-width: 100%;
        height: auto;
    }

    .hero-buttons a {
        text-align: center;
        min-height: 46px;
    }

    .product-grid {
        gap: 16px;
    }

    .product-card {
        min-width: 0;
    }

    .product-card img {
        max-width: 100%;
    }

    .cart-panel {
        width: min(430px, 100vw);
        height: 100dvh;
    }

    .cart-header {
        padding: 18px;
    }

    .cart-items {
        padding: 15px 18px;
        min-height: 0;
    }

    .cart-footer {
        padding: 16px 18px
            max(16px, env(safe-area-inset-bottom));
    }

    .checkout-btn {
        min-height: 48px;
    }
}

@media (max-width: 420px) {

    .header {
        gap: 5px 7px;
    }

    .header .logo img {
        width: 71px;
        height: 52px;
    }

    .header .cart-btn,
    .header .account-link {
        font-size: 12px;
        padding: 9px;
    }

    .hero {
        padding: 40px 5%;
    }

    .hero-buttons {
        gap: 11px;
    }

    .product-image {
        height: 215px;
    }

    .cart-header h2 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-food-image,
    .food-showcase {
        animation: none !important;
    }
}
