:root {
    --color-main: #024434;
    --color-main-dark: #013429;
    --color-main-soft: #e9f4f1;
    --color-text: #17312b;
    --color-muted: #61756f;
    --color-bg: #ffffff;
    --color-soft: #f7fbfa;
    --color-border: #d9e8e3;
    --shadow-soft: 0 20px 60px rgba(2, 68, 52, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

.site-header {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.shop-brand,
.nav-link {
    color: var(--color-main);
    font-weight: 700;
}

.nav-link:hover { color: var(--color-main-dark); }

.section-block { scroll-margin-top: 90px; }

.hero-section { background: linear-gradient(180deg, #fff 0%, #f6fbf9 100%); }

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 16px 0;
}

.hero-copy p,
.section-head p,
.product-body p,
.contact-row span {
    color: var(--color-muted);
}

.hero-slider,
.product-card,
.review-card,
.contact-card,
.empty-box {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.slider-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.bg-soft { background: var(--color-soft); }

.section-head { margin-bottom: 24px; }

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 8px;
}

/* PRODUCT CARDS */
.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #eef5f3;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-body h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.price-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.price-line strong {
    font-size: 1.25rem;
    color: var(--color-main);
}

.old-price {
    text-decoration: line-through;
    color: #a0a9a6;
}

/* NORMAL PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* FEATURED / DISCOUNT ONLY */
.featured-product-wrap { position: relative; }

.featured-product-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 14px;
    -webkit-overflow-scrolling: touch;
}

.featured-product-scroll::-webkit-scrollbar { height: 8px; }

.featured-product-scroll::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 999px;
}

.featured-product-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: calc((100% - 60px) / 4);
    scroll-snap-align: start;
}

.featured-more-hint {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(2, 68, 52, .88);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    font-size: 22px;
    font-weight: 800;
}

/* REVIEWS */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

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

.review-card { padding: 20px; }

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

.review-top span {
    color: #e0a100;
    font-weight: 700;
}

.review-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-top: 10px;
    cursor: pointer;
}

/* CONTACT */
.contact-card { padding: 22px; }

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-row:last-child { border-bottom: none; }

.map-box iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: var(--radius-lg);
}

/* BUTTONS */
.btn-main {
    background: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
}

.btn-main:hover {
    background: var(--color-main-dark);
    border-color: var(--color-main-dark);
    color: #fff;
}

.btn-outline-main {
    border: 1px solid var(--color-main);
    color: var(--color-main);
    background: #fff;
}

.btn-outline-main:hover {
    background: var(--color-main);
    color: #fff;
}

/* FORMS */
.form-control,
.form-select,
textarea.form-control {
    min-height: 50px;
    border-radius: 14px;
    border-color: var(--color-border);
}

textarea.form-control { min-height: 120px; }

.form-control:focus,
.form-select:focus {
    border-color: var(--color-main);
    box-shadow: 0 0 0 .2rem rgba(2,68,52,.1);
}

/* MODALS */
.custom-modal,
.custom-modal .modal-content {
    border-radius: var(--radius-lg);
}

.custom-modal .modal-content,
.modal-content.custom-modal {
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

/* CART */
.offcanvas { border-left: 1px solid var(--color-border); }

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.empty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    min-height: 120px;
    text-align: center;
}

/* STAR RATING */
.star-rating-live {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 50px;
}

.star-rating-live .star {
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    color: #d0d5dd !important;
    transition: 0.15s ease;
}

.star-rating-live .star.active {
    color: #ffb11b !important;
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .featured-product-card {
        flex-basis: calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 767.98px) {
    .slider-img { height: 260px; }

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

    .featured-product-scroll {
        gap: 14px;
        padding-bottom: 10px;
    }

    .featured-product-scroll::-webkit-scrollbar { display: none; }

    .featured-product-card {
        flex: 0 0 88%;
        min-width: 88%;
        max-width: 88%;
    }

    .featured-more-hint { display: none; }
}


@media (max-width: 767.98px) {
    #products .home-products-grid {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 14px !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    #products .home-products-grid::-webkit-scrollbar {
        display: none;
    }

    #products .home-products-grid > .product-card {
        flex: 0 0 88% !important;
        width: 88% !important;
        min-width: 88% !important;
        max-width: 88% !important;
        scroll-snap-align: start;
    }
}