/* HoneyShop storefront - modern redesign layer (loaded last) */
:root {
    --sf-r-sm: 10px;
    --sf-r-md: 14px;
    --sf-r-lg: 20px;
    --sf-card-shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 4px 14px rgba(28, 25, 23, .05);
    --sf-card-shadow-hover: 0 10px 30px rgba(28, 25, 23, .13);
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Intro / hero ---------- */
.hs-intro {
    padding: 28px 0 14px;
}

.hs-intro-card {
    background: linear-gradient(120deg, #fff7ee 0%, #fff 60%);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-r-lg);
    padding: 26px 28px;
}

.hs-intro h1 {
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
}

.hs-intro .btn {
    border-radius: 999px;
    padding: 9px 22px;
    font-weight: 700;
}

/* ---------- Category chips grid ---------- */
.sf-cat-strip-wrap {
    padding: 22px 0 8px;
}

.sf-cat-strip-wrap .sf-section-head h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 14px;
}

.hs-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
}

.hs-cat-card {
    border-radius: var(--sf-r-md);
    box-shadow: var(--sf-card-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    min-height: 0;
    padding: 16px 10px;
}

.hs-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sf-card-shadow-hover);
}

.hs-cat-card img {
    width: 48px;
    height: 48px;
}

/* ---------- Product sections ---------- */
.sf-section {
    margin: 0 0 26px;
}

.sf-section-card {
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-r-lg);
    padding: 20px 20px 24px;
    box-shadow: var(--sf-card-shadow);
}

.sf-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sf-line);
}

.sf-sec-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--sf-ink) !important;
    text-decoration: none;
}

.sf-sec-title img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    flex: 0 0 34px;
}

.sf-sec-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-sec-title h2::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--sf-orange);
    margin-top: 5px;
}

.sf-view-all {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--sf-orange) !important;
    background: var(--sf-orange-soft);
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.sf-view-all:hover {
    background: var(--sf-orange);
    color: #fff !important;
}

/* ---------- Product grid + card ---------- */
.sf-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.sf-product-grid--shop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sf-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-r-md);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sf-pcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--sf-card-shadow-hover);
    border-color: #f6c9a3;
}

.sf-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #faf8f5;
    overflow: hidden;
}

.sf-card-img > a {
    display: block;
    width: 100%;
    height: 100%;
}

.sf-card-img img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    padding: 10px;
    transition: opacity .25s ease, transform .35s ease;
}

.sf-card-img .secondary-img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.sf-pcard:hover .sf-card-img .secondary-img {
    opacity: 1;
}

.sf-pcard:hover .sf-card-img .primary-img:not(:only-child) {
    opacity: 0;
}

.sf-pcard:hover .sf-card-img img:only-child {
    transform: scale(1.05);
}

.sf-pcard .sf-sale-badge {
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 3px 8px;
}

.sf-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 12px 12px 14px;
}

/* full product name: readable size, up to 3 lines instead of a cut-off 2 */
.sf-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
}

.sf-card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 3);
    color: var(--sf-ink);
    text-decoration: none;
}

.sf-card-title a:hover {
    color: var(--sf-orange);
}

.sf-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: auto;
}

.sf-card-price .price {
    font-size: 17px;
    font-weight: 800;
    color: var(--sf-orange);
}

.sf-card-price .prev-price {
    font-size: 12px;
    color: #a8a29c;
    margin: 0;
}

.sf-card-actions {
    display: flex;
    gap: 8px;
}

.sf-add-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    border-radius: 10px;
    background: var(--sf-orange);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease;
}

.sf-add-btn:hover {
    background: var(--sf-orange-dark);
}

.sf-add-btn.processing {
    opacity: .8;
    pointer-events: none;
}

.sf-wa-btn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f8ee;
    color: #1ea952 !important;
    font-size: 19px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.sf-wa-btn:hover {
    background: #25d366;
    color: #fff !important;
}

/* ---------- Listing header (shop / search) ---------- */
.sf-search-banner {
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-r-md);
}

.sf-empty {
    background: #fff;
    border: 1px dashed var(--sf-line);
    border-radius: var(--sf-r-lg);
    padding: 40px 20px;
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .sf-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sf-product-grid--shop {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .sf-product-grid,
    .sf-product-grid--shop {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sf-section-card {
        padding: 14px 12px 16px;
        border-radius: var(--sf-r-md);
    }

    .sf-product-grid,
    .sf-product-grid--shop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sf-card-title {
        font-size: 13px;
    }

    .sf-card-price .price {
        font-size: 15px;
    }

    .sf-add-btn span {
        display: none;
    }

    .sf-sec-title h2 {
        font-size: 17px;
    }

    .hs-intro-card {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-pcard,
    .sf-card-img img,
    .hs-cat-card {
        transition: none;
    }
}

/* ---------- Compact pass: smaller, normal-weight names, tighter spacing ---------- */
.sf-card-title,
.sf-card-title a {
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none !important;
    letter-spacing: 0;
}

.sf-card-title a {
    min-height: 0;
    -webkit-line-clamp: 3;
}

.sf-card-body {
    gap: 5px;
    padding: 8px 9px 10px;
}

.sf-card-img img {
    padding: 6px;
}

.sf-card-price .price {
    font-size: 15px;
}

.sf-card-price .prev-price {
    font-size: 11px;
}

.sf-card-actions {
    gap: 6px;
}

.sf-add-btn,
.sf-wa-btn {
    height: 32px;
}

.sf-add-btn {
    font-size: 12px;
    border-radius: 8px;
}

.sf-wa-btn {
    flex-basis: 32px;
    width: 32px;
    font-size: 17px;
    border-radius: 8px;
}

.sf-product-grid {
    gap: 10px;
}

.sf-section {
    margin-bottom: 14px;
}

.sf-section-card {
    padding: 12px 12px 14px;
    border-radius: var(--sf-r-md);
}

.sf-sec-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.sf-sec-title h2 {
    font-size: 17px;
}

.sf-sec-title h2::after {
    margin-top: 3px;
}

.sf-sec-title img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.sf-view-all {
    padding: 5px 12px;
    font-size: 12px;
}

.hs-intro {
    padding: 14px 0 6px;
}

.hs-intro-card {
    padding: 16px 20px;
}

.hs-intro h1 {
    font-size: clamp(20px, 2.4vw, 26px);
    margin-bottom: 4px;
}

.hs-intro p {
    margin-bottom: 10px;
}

.hs-intro .btn {
    padding: 6px 18px;
}

.sf-cat-strip-wrap {
    padding: 12px 0 4px;
}

.sf-cat-strip-wrap .sf-section-head h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.hs-cat-grid {
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.hs-cat-card {
    padding: 10px 6px;
    gap: 6px;
}

.hs-cat-card img {
    width: 40px;
    height: 40px;
}

.main-page-banner {
    padding: 14px 0 6px;
}

@media (max-width: 767px) {
    .sf-product-grid {
        gap: 8px;
    }

    .sf-section-card {
        padding: 10px 8px 12px;
    }
}

/* =====================================================================
   v3 redesign: honey palette, clean cards, equal-height buttons
   ===================================================================== */
:root {
    --sf-honey: #ffb21e;
    --sf-honey-soft: #fff6dd;
    --sf-bg: #f6f3ee;
}

body {
    background: var(--sf-bg);
}

/* ---------- Product card (no inherited padding from legacy .sf-card) ---------- */
.sf-pcard {
    padding: 0;
    height: auto;
    background: #fff;
    border: 1px solid #efe9e1;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(28, 25, 23, .04);
}

.sf-pcard:hover {
    border-color: var(--sf-honey);
    box-shadow: 0 12px 28px rgba(28, 25, 23, .12);
    transform: translateY(-3px);
}

.sf-pcard .sf-card-img {
    background: #fff;
    border-bottom: 1px solid #f5f0e9;
}

.sf-pcard .sf-card-img img {
    padding: 8px;
}

.sf-pcard .sf-card-body {
    padding: 8px 10px 10px;
    gap: 6px;
}

.sf-pcard .sf-card-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
    color: #3b3631;
    text-transform: none;
}

.sf-pcard .sf-card-title a {
    color: inherit;
    font-weight: 400;
    text-transform: none !important;
}

.sf-pcard .sf-card-price {
    margin-top: auto;
    padding-top: 2px;
}

.sf-pcard .sf-card-price .price {
    font-size: 15px;
    font-weight: 800;
    color: #d9560b;
}

/* both action buttons: same 34px height, same radius */
.sf-pcard .sf-card-actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.sf-pcard .sf-card-actions .sf-add-btn.btn-add-to-cart,
.sf-pcard .sf-card-actions .sf-wa-btn.btn-whatsapp {
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    box-sizing: border-box;
    line-height: 1 !important;
    float: none !important;
}

.sf-pcard .sf-card-actions .sf-add-btn.btn-add-to-cart {
    flex: 1 1 auto;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    background: linear-gradient(180deg, #ff8a1f, #ff6d02) !important;
    color: #fff !important;
}

.sf-pcard .sf-card-actions .sf-add-btn.btn-add-to-cart:hover {
    background: #e25f00 !important;
}

.sf-pcard .sf-card-actions .sf-wa-btn.btn-whatsapp {
    flex: 0 0 34px;
    width: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #e8f8ee !important;
    color: #1ea952 !important;
    font-size: 18px;
}

.sf-pcard .sf-card-actions .sf-wa-btn.btn-whatsapp:hover {
    background: #25d366 !important;
    color: #fff !important;
}

.sf-pcard .sf-sale-badge {
    background: #e5322d;
    top: 8px;
    left: 8px;
    border-radius: 6px;
    font-size: 10.5px;
    padding: 2px 7px;
}

/* ---------- Sections ---------- */
.sf-section-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.sf-sec-head {
    border: 0;
    padding: 0;
    margin-bottom: 10px;
}

.sf-sec-title h2 {
    font-size: 19px;
    padding-left: 12px;
    border-left: 4px solid var(--sf-honey);
    line-height: 1.15;
}

.sf-sec-title h2::after {
    display: none;
}

.sf-view-all {
    background: #fff;
    border: 1px solid #efe9e1;
    color: #d9560b !important;
}

.sf-view-all:hover {
    background: var(--sf-orange);
    border-color: var(--sf-orange);
}

.sf-section {
    margin-bottom: 22px;
}

/* ---------- Hero / intro ---------- */
.hs-intro-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #3a2412 0%, #6b3d12 55%, #b8650e 100%);
    border: 0;
    color: #fff;
}

.hs-intro-card::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 178, 30, .45), transparent 70%);
}

.hs-intro h1 {
    color: #fff;
}

.hs-intro p {
    color: rgba(255, 255, 255, .8);
}

.hs-intro .hs-btn-ghost {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
}

.hs-intro .hs-btn-ghost:hover {
    background: #fff;
    color: #3a2412;
}

/* ---------- Category tiles ---------- */
.hs-cat-card {
    border: 1px solid #efe9e1;
    box-shadow: none;
    border-radius: 14px;
}

.hs-cat-card:hover {
    border-color: var(--sf-honey);
    background: var(--sf-honey-soft);
}

.sf-cat-strip-wrap .sf-section-head h2 {
    padding-left: 12px;
    border-left: 4px solid var(--sf-honey);
    line-height: 1.15;
}

/* ---------- Header / nav polish ---------- */
.hs-nav.header-bottom {
    box-shadow: 0 2px 10px rgba(28, 25, 23, .05);
}

.hs-primary-nav .header-bottom-list > li > a {
    border-radius: 8px;
}

.hs-primary-nav .header-bottom-list > li > a:hover {
    background: var(--sf-honey-soft);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .sf-pcard .sf-card-actions .sf-add-btn.btn-add-to-cart span {
        display: inline;
    }

    .sf-pcard .sf-card-body {
        padding: 7px 8px 9px;
    }

    .sf-sec-title h2 {
        font-size: 16px;
    }
}
