/* ============================================================
   SACHK — Main Stylesheet
   Theme Colors:
     Berry Jam:       #720002
     Strawberry Milk: #DB8291
     Pink Foam:       #F4D6DC
   ============================================================ */

:root {
    --berry:     #720002;
    --berry-dk:  #550002;
    --berry-lt:  #9a0003;
    --strawberry:#DB8291;
    --foam:      #F4D6DC;
    --foam-dk:   #ecc0cc;
    --white:     #ffffff;
    --offwhite:  #fdf6f8;
    --text-dark: #2c1015;
    --text-mid:  #5a3540;
    --text-light:#a08090;
    --border:    #eedde3;
    --shadow:    rgba(114,0,2,.10);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --radius:    10px;
    --radius-lg: 18px;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    color: var(--berry);
    font-weight: 600;
}

a { color: var(--berry); text-decoration: none; }
a:hover { color: var(--berry-lt); }

img { max-width: 100%; height: auto; }

/* ---- Utility classes ---- */
.text-berry    { color: var(--berry) !important; }
.text-strawberry{ color: var(--strawberry) !important; }
.bg-foam       { background: var(--foam) !important; }
.bg-berry      { background: var(--berry) !important; color:#fff !important; }

/* ---- Buttons ---- */
.btn-primary-sachk {
    background: var(--berry);
    border-color: var(--berry);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .2s;
}
.btn-primary-sachk:hover,
.btn-primary-sachk:focus {
    background: var(--berry-dk);
    border-color: var(--berry-dk);
    color: var(--white);
}
.btn-outline-sachk {
    border: 2px solid var(--berry);
    color: var(--berry);
    border-radius: var(--radius);
    font-weight: 600;
    background: transparent;
    transition: all .2s;
}
.btn-outline-sachk:hover {
    background: var(--berry);
    color: var(--white);
}
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    transition: background .2s;
}
.btn-whatsapp:hover { background: #1da851; color:#fff; }

/* ---- Announcement Bar ---- */
.announcement-bar {
    background: var(--berry);
    color: var(--foam);
    padding: 6px 0;
    font-size: .82rem;
    letter-spacing: .3px;
}
.announcement-bar a { color: var(--foam); }

/* ---- Navbar ---- */
.sachk-navbar {
    background: var(--white);
    border-bottom: 2px solid var(--foam);
    box-shadow: 0 2px 12px var(--shadow);
    padding: 12px 0;
}
.sachk-navbar .navbar-toggler {
    border-color: var(--strawberry);
}
.sachk-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23720002' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.logo-text {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--berry);
    letter-spacing: 2px;
}
.sachk-navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 6px 14px !important;
    border-radius: var(--radius);
    transition: all .2s;
}
.sachk-navbar .nav-link:hover {
    color: var(--berry) !important;
    background: var(--foam);
}

/* Dropdown */
.sachk-dropdown {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--shadow);
    min-width: 220px;
}
.sachk-dropdown .dropdown-item {
    font-size: .9rem;
    padding: 8px 18px;
    color: var(--text-mid);
    transition: all .15s;
}
.sachk-dropdown .dropdown-item:hover {
    background: var(--foam);
    color: var(--berry);
    padding-left: 24px;
}

/* Cart icon */
.cart-icon {
    color: var(--berry);
    font-size: 1.4rem;
    position: relative;
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--strawberry);
    color: #fff;
    font-size: .65rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---- Section Headings ---- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--berry);
    position: relative;
    display: inline-block;
    margin-bottom: .4rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 55px;
    height: 3px;
    background: var(--strawberry);
    border-radius: 2px;
    margin: 8px auto 0;
}
.section-subtitle {
    color: var(--text-light);
    font-size: .97rem;
    margin-bottom: 2.2rem;
}

/* ---- Product Cards ---- */
.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: box-shadow .25s, transform .22s;
    overflow: hidden;
    height: 100%;
}
.product-card:hover {
    box-shadow: 0 10px 32px var(--shadow);
    transform: translateY(-3px);
}
.product-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--foam);
    aspect-ratio: 1/1;
}
.product-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.06);
}
.product-card .card-body {
    padding: 14px 16px 16px;
}
.product-card .card-cat {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--strawberry);
    font-weight: 700;
}
.product-card .card-name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 3px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .price-orig {
    font-size: .8rem;
    color: var(--text-light);
    text-decoration: line-through;
}
.product-card .price-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--berry);
}
.product-card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.product-card .btn-cart {
    flex: 1;
    font-size: .82rem;
    padding: 7px 10px;
}

/* Badge: Featured / Sale */
.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--berry);
    color: #fff;
    font-size: .68rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: .5px;
}
.badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--strawberry);
    color: #fff;
    font-size: .68rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
}

/* ---- Category Cards ---- */
.category-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    background: var(--foam);
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow);
}
.category-card img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.category-card .cat-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(114,0,2,.85));
    padding: 40px 16px 16px;
    color: #fff;
}
.category-card .cat-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

/* ---- Hero Section ---- */
.sachk-hero {
    background: linear-gradient(135deg, var(--foam) 0%, var(--foam-dk) 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.sachk-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, var(--strawberry) 0%, transparent 70%);
    opacity: .18;
    border-radius: 50%;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--berry);
    line-height: 1.15;
}
.hero-subtitle {
    color: var(--text-mid);
    font-size: 1.1rem;
    max-width: 420px;
}
.hero-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 48px var(--shadow);
}

/* ---- Reviews ---- */
.review-card {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 100%;
}
.review-stars { color: #f5a623; font-size: 1rem; }
.review-text { font-style: italic; color: var(--text-mid); margin: 10px 0 14px; }
.review-author { font-weight: 700; font-size: .9rem; color: var(--berry); }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: #fff;
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 18px rgba(37,211,102,.4);
    z-index: 1050;
    transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 24px rgba(37,211,102,.55);
}

/* ---- Footer ---- */
.sachk-footer {
    background: var(--text-dark);
    color: #ccc;
}
.footer-brand {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--foam);
    letter-spacing: 2px;
}
.footer-heading {
    color: var(--foam);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .8rem;
    margin-bottom: 1rem;
}
.footer-links { padding: 0; }
.footer-links li { margin-bottom: 7px; font-size: .88rem; }
.footer-links a { color: #bbb; transition: color .15s; }
.footer-links a:hover { color: var(--foam); }
.footer-divider { border-color: rgba(255,255,255,.1); }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #ddd;
    font-size: 1rem;
    margin-right: 6px;
    transition: all .2s;
}
.social-links a:hover {
    background: var(--berry);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Forms ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--strawberry);
    box-shadow: 0 0 0 .2rem rgba(219,130,145,.25);
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--text-mid); }

/* ---- Alert customization ---- */
.alert-success { background: #f0fdf4; border-color: #a7f3d0; color: #065f46; }
.alert-danger   { background: #fff1f2; border-color: #fecdd3; color: var(--berry); }

/* ---- Breadcrumb ---- */
.sachk-breadcrumb .breadcrumb-item a { color: var(--berry); }
.sachk-breadcrumb .breadcrumb-item.active { color: var(--text-light); }

/* ---- Pagination ---- */
.page-link { color: var(--berry); border-color: var(--border); }
.page-link:hover { background: var(--foam); color: var(--berry); border-color: var(--border); }
.page-item.active .page-link { background: var(--berry); border-color: var(--berry); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .sachk-hero { min-height: 360px; }
    .hero-title  { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 16px; }
}
