.theme-fresh {
    --store-primary: #15803d;
    --store-primary-dark: #166534;
    --store-accent: #f97316;
    --store-bg: #f7fee7;
    --store-card: #ffffff;
    --store-text: #14301d;
    --store-muted: #64705b;
    --store-border: #d9f99d;
    --store-shadow: 0 18px 45px rgba(20, 83, 45, .10);
    background:
        radial-gradient(circle at top left, rgba(187, 247, 208, .45), transparent 34rem),
        linear-gradient(180deg, #f7fee7 0%, #ffffff 42%, #f8fafc 100%);
}

.theme-fresh .store-container { width: min(1180px, calc(100% - 32px)); }
.fresh-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(187, 247, 208, .9); backdrop-filter: blur(14px); }
.fresh-header__inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fresh-brand { display: inline-flex; align-items: center; gap: 12px; }
.fresh-brand__mark { width: 44px; height: 44px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #16a34a, #65a30d); color: #fff; font-weight: 900; font-size: 20px; box-shadow: 0 12px 26px rgba(22, 163, 74, .24); }
/* CP-LOGO1 — logo menggantikan fallback huruf tanpa mengubah ukuran header. */
.fresh-brand__mark--logo { overflow: hidden; padding: 4px; background: #fff; }
.fresh-brand__logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.fresh-brand strong { display: block; font-size: 17px; line-height: 1.1; }
.fresh-brand small { display: block; color: var(--store-muted); font-size: 12px; margin-top: 3px; }
.fresh-nav { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.fresh-nav a { color: #36533a; font-weight: 800; border-radius: 999px; padding: 8px 11px; }
.fresh-nav a:hover { background: #ecfccb; color: var(--store-primary-dark); }

.fresh-hero { padding: 68px 0 48px; background: linear-gradient(135deg, rgba(220, 252, 231, .94), rgba(255, 247, 237, .92)); border-bottom: 1px solid rgba(187, 247, 208, .9); overflow: hidden; position: relative; }
.fresh-hero::after { content: ""; position: absolute; right: -7rem; bottom: -9rem; width: 24rem; height: 24rem; border-radius: 999px; background: rgba(249, 115, 22, .11); pointer-events: none; }
.fresh-hero--compact { padding: 52px 0 38px; }
.fresh-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); gap: 28px; align-items: center; }
.fresh-hero__content h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.03; margin: 0 0 16px; color: #102817; letter-spacing: -.04em; }
.fresh-hero__content p { color: #4b6046; font-size: 18px; margin: 0; max-width: 760px; }
.fresh-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--store-primary-dark); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 9px; }
.fresh-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--store-accent); box-shadow: 0 0 0 4px rgba(249, 115, 22, .13); }
.fresh-hero__actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.fresh-trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.fresh-trust-row span { border: 1px solid rgba(22, 101, 52, .14); background: rgba(255,255,255,.7); color: #36533a; border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 800; }
.fresh-status-card { background: rgba(255,255,255,.92); border: 1px solid rgba(187, 247, 208, .95); border-radius: 30px; box-shadow: var(--store-shadow); padding: 26px; }
.fresh-status-card span { display: block; color: var(--store-muted); font-size: 13px; font-weight: 800; }
.fresh-status-card strong { display: block; font-size: 34px; margin: 6px 0 10px; color: var(--store-primary-dark); }
.fresh-status-card p { color: var(--store-muted); font-size: 14px; margin: 0 0 14px; }
.fresh-status-card a { color: var(--store-primary-dark); font-weight: 900; }
.theme-fresh .btn { border-radius: 999px; }
.theme-fresh .btn-primary { background: linear-gradient(135deg, #16a34a, #65a30d); box-shadow: 0 12px 24px rgba(22, 163, 74, .20); }
.theme-fresh .btn-primary:hover { background: linear-gradient(135deg, #15803d, #4d7c0f); }
.theme-fresh .btn-secondary { border-color: rgba(22, 101, 52, .18); color: var(--store-primary-dark); }

.fresh-catalog { padding: 38px 0; }
.fresh-category-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 16px; margin-bottom: 14px; scrollbar-width: thin; }
.fresh-category-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid rgba(187, 247, 208, .95); color: #36533a; border-radius: 999px; padding: 10px 13px; font-weight: 900; box-shadow: 0 8px 20px rgba(20, 83, 45, .05); }
.fresh-category-pill small { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: #ecfccb; color: var(--store-primary-dark); }
.fresh-category-pill.is-active { background: var(--store-primary-dark); border-color: var(--store-primary-dark); color: #fff; }
.fresh-category-pill.is-active small { background: rgba(255,255,255,.18); color: #fff; }
.fresh-filter { background: rgba(255,255,255,.96); border: 1px solid rgba(187, 247, 208, .95); border-radius: 26px; padding: 18px; box-shadow: 0 12px 32px rgba(20, 83, 45, .06); margin-bottom: 28px; }
.fresh-filter__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr auto; gap: 14px; align-items: end; }
.fresh-filter__grid--category { grid-template-columns: 1.45fr 1fr auto; }
.fresh-filter label span { display: block; font-weight: 900; font-size: 13px; margin-bottom: 6px; color: #36533a; }
.fresh-filter input, .fresh-filter select { width: 100%; border: 1px solid rgba(22, 101, 52, .18); border-radius: 16px; padding: 12px 13px; background: #fff; color: var(--store-text); font: inherit; }
.fresh-filter__actions { display: flex; gap: 8px; }
.fresh-section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fresh-section-title h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.fresh-section-title p { margin: 0; color: var(--store-muted); font-weight: 800; }
.fresh-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fresh-product-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.fresh-product-card { background: #fff; border: 1px solid rgba(187, 247, 208, .95); border-radius: 28px; overflow: hidden; box-shadow: 0 14px 36px rgba(20, 83, 45, .07); display: flex; flex-direction: column; }
.fresh-product-card__media { min-height: 218px; background: linear-gradient(135deg, #dcfce7, #ffedd5); display: grid; place-items: center; color: var(--store-primary-dark); font-weight: 900; font-size: 58px; position: relative; overflow: hidden; }
.fresh-product-card__media img { width: 100%; height: 238px; object-fit: cover; transition: transform .18s ease; }
.fresh-product-card:hover .fresh-product-card__media img { transform: scale(1.035); }
.fresh-product-card__media em { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); border: 1px solid rgba(22, 101, 52, .12); color: var(--store-primary-dark); border-radius: 999px; padding: 6px 9px; font-size: 12px; font-style: normal; font-weight: 900; }
.fresh-product-card__body { padding: 17px; display: flex; flex-direction: column; flex: 1; }
.fresh-product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: var(--store-muted); font-size: 12px; font-weight: 900; }
.fresh-product-card__meta span { color: #9a3412; background: #ffedd5; border-radius: 999px; padding: 5px 8px; }
.fresh-product-card__meta a { color: var(--store-primary-dark); }
.fresh-product-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.24; }
.fresh-product-card h3 a:hover { color: var(--store-primary-dark); }
.fresh-product-card__price { margin: 0 0 8px; color: var(--store-primary-dark); font-weight: 950; font-size: 20px; }
.fresh-product-card__desc { color: var(--store-muted); margin: 0 0 16px; flex: 1; font-size: 14px; }
.fresh-product-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.fresh-product-card__actions form { display: flex; margin: 0; }


/* CP-THEME4C: keep fresh action buttons aligned with base storefront buttons */
.fresh-product-card__actions .btn {
    min-height: 44px;
}
.fresh-product-card__actions form {
    min-width: 0;
}

.fresh-detail { padding: 38px 0 18px; }
.fresh-detail__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.fresh-detail__media { min-height: 460px; border-radius: 34px; background: linear-gradient(135deg, #dcfce7, #ffedd5); display: grid; place-items: center; color: var(--store-primary-dark); font-size: 96px; font-weight: 900; box-shadow: var(--store-shadow); overflow: hidden; }
.fresh-detail__media img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.fresh-detail__content { background: rgba(255,255,255,.98); border: 1px solid rgba(187, 247, 208, .95); border-radius: 34px; padding: 26px; box-shadow: var(--store-shadow); }
.fresh-detail__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fresh-detail__badges span, .fresh-detail__badges strong { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 10px; font-size: 12px; }
.fresh-detail__badges span { background: #ffedd5; color: #9a3412; }
.fresh-detail__badges strong { background: #dcfce7; color: #166534; }
.fresh-detail__content h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.fresh-detail__category, .fresh-detail__desc { color: var(--store-muted); }
.fresh-detail__price { font-size: 31px; color: var(--store-primary-dark); font-weight: 950; margin: 18px 0; }
.fresh-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.fresh-info-grid div, .fresh-notice { background: #f7fee7; border: 1px solid #d9f99d; border-radius: 18px; padding: 14px; }
.fresh-info-grid span { display: block; color: var(--store-muted); font-size: 12px; font-weight: 900; margin-bottom: 4px; }
.fresh-info-grid strong { font-size: 15px; }
.fresh-notice { color: #36533a; }
.fresh-add-cart { margin-top: 20px; border-top: 1px solid rgba(187, 247, 208, .95); padding-top: 18px; }
.fresh-add-cart label span { display: block; font-size: 13px; font-weight: 900; margin-bottom: 6px; }
.fresh-add-cart input { width: 100%; border: 1px solid rgba(22, 101, 52, .18); border-radius: 16px; padding: 12px 13px; background: #fff; color: var(--store-text); font: inherit; }
.fresh-detail__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.fresh-footer { border-top: 1px solid rgba(187, 247, 208, .9); background: #fff; margin-top: 42px; padding: 30px 0; color: var(--store-muted); }
.fresh-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.fresh-footer strong { color: var(--store-text); }
.fresh-footer p { margin: 6px 0 0; }
.fresh-footer a { color: var(--store-primary-dark); font-weight: 900; }

@media (max-width: 920px) {
    .fresh-header__inner, .fresh-hero__grid, .fresh-filter__grid, .fresh-filter__grid--category, .fresh-detail__grid { grid-template-columns: 1fr; }
    .fresh-header__inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
    .fresh-nav { justify-content: flex-start; }
    .fresh-product-grid, .fresh-product-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fresh-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .theme-fresh .store-container { width: min(100% - 24px, 1180px); }
    .fresh-hero { padding: 40px 0 32px; }
    .fresh-hero__content p { font-size: 16px; }
    .fresh-product-grid, .fresh-product-grid--compact, .fresh-info-grid, .fresh-footer__grid { grid-template-columns: 1fr; }
    .fresh-nav { width: 100%; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .fresh-nav::-webkit-scrollbar { display: none; }
    .fresh-nav .store-nav__optional { display: none; }
    .fresh-nav a { flex: 0 0 auto; padding: 7px 10px; }
    .fresh-filter__actions, .fresh-detail__actions { width: 100%; }
    .fresh-filter__actions .btn, .fresh-detail__actions .btn, .fresh-product-card__actions, .fresh-product-card__actions .btn { width: 100%; }
    .fresh-product-card__actions { grid-template-columns: 1fr; }
    .fresh-detail__media { min-height: 300px; }
    .fresh-detail__media img { min-height: 300px; }
}


.fresh-page-hero { padding-bottom: 42px; }
.fresh-info-page { margin-top: 30px; }
.fresh-info-page__content { border-color: rgba(187, 247, 208, .95); }

/* CP-PUBLISH3 */
.store-wa-float--fresh { background: linear-gradient(135deg, #16a34a, #65a30d); }
.theme-fresh .order-next-step {
    border-color: rgba(187, 247, 208, .95);
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 32px rgba(20, 83, 45, .06);
}


/* CP-THEME4B: fresh storefront UX polish without new config/flow */
.fresh-nav__cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.fresh-nav__cart span {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a, #65a30d);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}
.fresh-steps {
    margin-top: -22px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.fresh-steps > div {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(187, 247, 208, .95);
    border-radius: 24px;
    padding: 17px;
    box-shadow: 0 14px 34px rgba(20, 83, 45, .07);
}
.fresh-steps span {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: var(--store-primary-dark);
    font-size: 13px;
    font-weight: 950;
}
.fresh-steps strong {
    display: block;
    margin: 10px 0 4px;
    color: var(--store-text);
    font-size: 16px;
}
.fresh-steps p {
    margin: 0;
    color: var(--store-muted);
    font-size: 14px;
}
.fresh-product-card {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fresh-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 101, 52, .20);
    box-shadow: 0 20px 42px rgba(20, 83, 45, .10);
}
.fresh-product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.fresh-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}
.fresh-badge--soft { background: #dcfce7; color: #166534; }
.fresh-badge--warning { background: #ffedd5; color: #9a3412; }
.fresh-badge--success { background: #dcfce7; color: #166534; }
.fresh-detail__badges strong.is-warning {
    background: #ffedd5;
    color: #9a3412;
}
.fresh-notice--warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.theme-fresh .cart-page,
.theme-fresh .info-page {
    padding-top: 38px;
}
.theme-fresh .section-heading .eyebrow {
    color: var(--store-primary-dark);
}
.theme-fresh .cart-item,
.theme-fresh .summary-card,
.theme-fresh .checkout-card,
.theme-fresh .info-page__content,
.theme-fresh .payment-history__item {
    border-color: rgba(187, 247, 208, .95);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(20, 83, 45, .06);
}
.theme-fresh .notice-card,
.theme-fresh .info-grid div,
.theme-fresh .mini-items div,
.theme-fresh .shipment-info div,
.theme-fresh .status-grid div {
    background: #f7fee7;
    border-color: #d9f99d;
}
.theme-fresh .notice-card--warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.theme-fresh .notice-card--strong,
.theme-fresh .payment-total-box {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}
.theme-fresh .flow-hint__item {
    border-color: rgba(187, 247, 208, .95);
    background: rgba(255,255,255,.96);
}
.theme-fresh .flow-hint__item span {
    background: #dcfce7;
    color: var(--store-primary-dark);
}
.theme-fresh .flow-hint__item.is-active {
    border-color: rgba(22, 101, 52, .30);
    background: #f0fdf4;
}
.theme-fresh .flow-hint__item.is-active span,
.theme-fresh .flow-hint__item.is-done span {
    background: linear-gradient(135deg, #16a34a, #65a30d);
    color: #fff;
}
.theme-fresh .order-hero,
.theme-fresh .info-page__hero {
    background: linear-gradient(135deg, rgba(220, 252, 231, .94), rgba(255, 247, 237, .92));
    border-color: rgba(187, 247, 208, .95);
}
.theme-fresh .payment-total-box strong {
    color: var(--store-primary-dark);
}
@media (max-width: 920px) {
    .fresh-steps { grid-template-columns: 1fr; margin-top: 18px; }
}
@media (max-width: 560px) {
    .fresh-nav__cart { width: auto; }
    .fresh-steps > div { padding: 14px; }
}


/* CP-THEME4D: final fresh micro UI polish */
.fresh-product-card__media {
    min-height: 238px;
}

.fresh-product-card__media > span {
    min-height: 238px;
    display: grid;
    place-items: center;
}

.fresh-filter input:focus,
.fresh-filter select:focus,
.fresh-add-cart input:focus {
    outline: 3px solid rgba(22, 101, 52, .16);
    border-color: rgba(22, 101, 52, .48);
    box-shadow: 0 0 0 1px rgba(22, 101, 52, .08);
}

.theme-fresh .form-grid input:focus,
.theme-fresh .form-grid select:focus,
.theme-fresh .form-grid textarea:focus,
.theme-fresh .payment-form input:focus,
.theme-fresh .payment-form textarea:focus,
.theme-fresh .qty-form input:focus {
    outline-color: rgba(22, 101, 52, .16);
    border-color: rgba(22, 101, 52, .48);
}

.theme-fresh .empty-state {
    border-color: rgba(187, 247, 208, .95);
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 32px rgba(20, 83, 45, .06);
}


.theme-fresh .shipment-timeline__item {
    border-color: rgba(187, 247, 208, .95);
    background: rgba(255,255,255,.96);
}
.theme-fresh .shipment-timeline__item.is-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.theme-fresh .shipment-timeline__item.is-active {
    background: #ecfdf5;
    border-color: #86efac;
}
.theme-fresh .shipment-timeline__item.is-active > span,
.theme-fresh .shipment-timeline__item.is-done > span {
    background: linear-gradient(135deg, #16a34a, #65a30d);
    border-color: #16a34a;
}
.theme-fresh .shipment-timeline__item.is-problem {
    background: #fff7ed;
    border-color: #fed7aa;
}


/* CP-UX2: preserve customer status meaning inside the fresh theme */
.theme-fresh .order-next-step--warning {
    background: #fffbeb;
    border-color: #fde68a;
}
.theme-fresh .order-next-step--info {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.theme-fresh .order-next-step--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.theme-fresh .order-next-step--danger {
    background: #fff7ed;
    border-color: #fed7aa;
}
.theme-fresh .customer-order-progress__item {
    border-color: rgba(187, 247, 208, .95);
    background: rgba(255,255,255,.96);
}
.theme-fresh .customer-order-progress__item.is-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.theme-fresh .customer-order-progress__item.is-active {
    background: #ecfdf5;
    border-color: #86efac;
}
.theme-fresh .customer-order-progress__item.is-active .customer-order-progress__marker,
.theme-fresh .customer-order-progress__item.is-done .customer-order-progress__marker {
    background: linear-gradient(135deg, #16a34a, #65a30d);
}
.theme-fresh .customer-order-progress__item.is-problem {
    background: #fff7ed;
    border-color: #fed7aa;
}
.theme-fresh .order-total-primary--estimate {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.theme-fresh .order-total-primary--estimate strong {
    color: #92400e;
}
