/* ============================================================
   Foxsories Product Widgets – widgets.css  v1.2.1
   ============================================================ */

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

/* ── Foxsories brand tokens ── */
:root {
    --fox-primary:       #116D7D;
    --fox-primary-hover: #1A8FA3;
    --fox-wa-green:      #25D366;
}

/* ── Base reset ── */
.mtw-card,
.mtw-card *,
.mtw-card__info,
.mtw-card__title,
.mtw-card__price {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
/* Category archive title */
.mtw-grid__cat-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
}

/* Grid layout */
.mtw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

/* ============================================================
   PRODUCT CARD (shared)
   ============================================================ */
.mtw-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: visible;
    transition: transform 300ms ease, box-shadow 300ms ease;
    cursor: pointer;
    position: relative;
    min-width: 0; /* KRITIS: tanpa ini grid item tidak bisa menyusut */
}

.mtw-card__img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 12px;
}

.mtw-card__img {
    position: absolute;
    inset: 0;
}

.mtw-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.mtw-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    border-radius: inherit;
}

.mtw-card__info {
    padding: 10px 0 12px;
    overflow: hidden;
}

.mtw-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
}

.mtw-card__price {
    font-size: 13px;
    font-weight: 400;
    color: #555555;
    margin-top: 4px;
}

.mtw-card__price .price,
.mtw-card__price .woocommerce-Price-amount {
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    color: inherit;
}

.mtw-card__price del  { opacity: 0.6; margin-right: 4px; }
.mtw-card__price ins  { text-decoration: none; font-weight: 600; }

/* ── Hover ── */
.mtw-card:hover .mtw-card__title             { text-decoration: underline !important; }
.mtw-card--effect-zoom:hover .mtw-card__img img { transform: scale(1.06); }
.mtw-card--effect-lift:hover                 { transform: translateY(-6px); }
.mtw-card--effect-shadow:hover               { box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.mtw-card--effect-overlay:hover .mtw-card__overlay { opacity: 1; }

/* ============================================================
   CAROUSEL
   ============================================================ */
.mtw-carousel-wrapper    { position: relative; width: 100%; }
.mtw-carousel__track-outer { overflow: hidden; width: 100%; }
.mtw-carousel__track     { display: flex; transition: transform 400ms cubic-bezier(.4,0,.2,1); will-change: transform; }
.mtw-carousel__slide     { flex: 0 0 auto; }

.mtw-carousel__btn {
    position: absolute; top: 40%; transform: translateY(-50%); z-index: 10;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #e5e5e5; background: #ffffff; color: #1a1a1a;
    font-size: 14px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: background 200ms ease, color 200ms ease; padding: 0;
}
.mtw-carousel__btn:hover     { background: #1a1a1a; color: #ffffff; }
.mtw-carousel__btn--prev     { left: -18px; }
.mtw-carousel__btn--next     { right: -18px; }
.mtw-carousel__btn:disabled  { opacity: 0.3; cursor: default; pointer-events: none; }

.mtw-carousel__nav {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 20px;
    font-family: 'Inter', sans-serif; font-size: 14px;
    font-weight: 400; color: #1a1a1a; user-select: none; line-height: 1;
}

.mtw-carousel__nav-btn {
    background: none; border: none; padding: 2px 4px; margin: 0; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 16px; color: #1a1a1a;
    line-height: 1; display: flex; align-items: center;
    transition: opacity 200ms ease;
}
.mtw-carousel__nav-btn:hover:not(:disabled) { opacity: 0.45; }
.mtw-carousel__nav-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.mtw-carousel__nav-counter { font-size: 14px; font-weight: 400; color: #1a1a1a; letter-spacing: .02em; min-width: 40px; text-align: center; }

/* ============================================================
   RESPONSIVE — GRID & CAROUSEL
   ============================================================ */
@media (max-width: 1024px) { .mtw-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .mtw-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; } .mtw-carousel__btn--prev { left: -8px; } .mtw-carousel__btn--next { right: -8px; } }
@media (max-width: 480px)  { .mtw-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; } }

/* ============================================================
   SHOP PRODUCT LIST + FILTER
   ============================================================ */
.mtw-shop, .mtw-shop * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}
/* KRITIS: overflow-x hidden mencegah konten dalam (select 220px dll)
   menyebabkan grid melebar melebihi container, bikin kolom tidak equal */
.mtw-shop {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.mtw-shop__heading { font-size: 48px; font-weight: 700; line-height: 1.1; color: #1a1a1a; margin: 0 0 32px; letter-spacing: -.01em; }
.mtw-shop__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 8px 0 12px; margin-bottom: 12px; font-size: 14px; color: #1a1a1a; width: 100%; }
.mtw-shop__filters { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mtw-shop__filter-label, .mtw-shop__sort-label { font-size: 14px; font-weight: 400; color: #1a1a1a; line-height: 1; white-space: nowrap; }

.mtw-shop__disclosure          { position: relative; }
.mtw-shop__disclosure-summary  { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; font-size: 14px; font-weight: 400; color: #1a1a1a; line-height: 1; user-select: none; transition: opacity 200ms ease; }
.mtw-shop__disclosure-summary::-webkit-details-marker { display: none; }
.mtw-shop__disclosure-summary::marker { content: ''; }
.mtw-shop__disclosure-summary:hover { opacity: 0.65; }
.mtw-shop__disclosure-count    { font-size: 13px; color: #666; }
.mtw-shop__disclosure-count:empty { display: none; }
.mtw-shop__caret               { transition: transform 220ms ease; flex-shrink: 0; margin-top: 1px; }
.mtw-shop__disclosure[open] .mtw-shop__caret { transform: rotate(180deg); }

.mtw-shop__panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 240px; max-width: 320px; max-height: 360px; overflow-y: auto; padding: 12px 0; background: #ffffff; border: 1px solid #e5e5e5; border-radius: 6px; box-shadow: 0 8px 28px rgba(0,0,0,.08); animation: mtw-shop-fade-down 180ms ease-out; }
@keyframes mtw-shop-fade-down { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
.mtw-shop__panel::-webkit-scrollbar { width: 6px; }
.mtw-shop__panel::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }
.mtw-shop__panel::-webkit-scrollbar-track { background: transparent; }

.mtw-shop__options { list-style: none; margin: 0; padding: 0; }
.mtw-shop__option  { display: flex; align-items: center; gap: 10px; padding: 8px 16px; cursor: pointer; transition: background-color 120ms ease; font-size: 14px; line-height: 1.3; }
.mtw-shop__option:hover { background-color: #f7f7f7; }
.mtw-shop__option input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

.mtw-shop__check { flex-shrink: 0; width: 16px; height: 16px; border: 1.5px solid #1a1a1a; border-radius: 3px; background: #ffffff; display: inline-flex; align-items: center; justify-content: center; color: #ffffff; transition: background-color 150ms ease, border-color 150ms ease; }
.mtw-shop__check svg { opacity: 0; transition: opacity 120ms ease; }
.mtw-shop__option input:checked + .mtw-shop__check { background-color: #1a1a1a; border-color: #1a1a1a; }
.mtw-shop__option input:checked + .mtw-shop__check svg { opacity: 1; }
.mtw-shop__option-label { color: #1a1a1a; font-weight: 400; }
.mtw-shop__option-count { color: #888; font-weight: 400; margin-left: 4px; font-size: 13px; }

.mtw-shop__sort           { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.mtw-shop__select-wrap    { position: relative; display: inline-flex; align-items: center; }
.mtw-shop__select         { appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid #d6d6d6; border-radius: 4px; padding: 8px 32px 8px 12px; font-size: 14px; color: #1a1a1a; cursor: pointer; line-height: 1.2; min-width: 0; width: 100%; max-width: 300px; font-family: inherit; transition: border-color 150ms ease; }
.mtw-shop__select:hover   { border-color: #1a1a1a; }
.mtw-shop__select:focus   { outline: none; border-color: #1a1a1a; }
.mtw-shop__select-wrap .mtw-shop__caret { position: absolute; right: 12px; pointer-events: none; transition: none; }

.mtw-shop__count       { font-size: 14px; color: #666; line-height: 1; white-space: nowrap; }
.mtw-shop__count:empty { display: none; }

.mtw-shop__chips       { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 0 16px; min-height: 0; }
.mtw-shop__chips:empty { display: none; }
.mtw-shop__chip        { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 14px; background: #ffffff; border: 1px solid #1a1a1a; border-radius: 999px; font-size: 13px; line-height: 1; color: #1a1a1a; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; text-decoration: none; }
.mtw-shop__chip:hover  { background-color: #1a1a1a; color: #ffffff; }
.mtw-shop__chip-x      { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; line-height: 1; transition: opacity 150ms ease; margin-left: 2px; }
.mtw-shop__chip-x svg  { width: 9px; height: 9px; }
.mtw-shop__clear-all   { margin-left: 4px; font-size: 13px; color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: none; padding: 6px 4px; font-family: inherit; transition: opacity 150ms ease; }
.mtw-shop__clear-all:hover { opacity: 0.6; }

.mtw-shop__results          { position: relative; min-height: 200px; }
.mtw-shop__grid             { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 16px; row-gap: 36px; width: 100%; transition: opacity 200ms ease; }
.mtw-shop__results.is-loading .mtw-shop__grid { opacity: 0.4; pointer-events: none; }
.mtw-shop__empty            { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: #666; font-size: 15px; }

.mtw-shop__loader   { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); z-index: 5; }
.mtw-shop__spinner  { width: 36px; height: 36px; border: 3px solid #e5e5e5; border-top-color: #1a1a1a; border-radius: 50%; display: inline-block; animation: mtw-shop-spin 700ms linear infinite; }
@keyframes mtw-shop-spin { to { transform: rotate(360deg); } }

.mtw-shop__pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 48px 0 16px; flex-wrap: wrap; }
.mtw-shop__pagination:empty { display: none; }
.mtw-shop__page-num   { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid transparent; color: #1a1a1a; font-size: 14px; font-weight: 400; cursor: pointer; border-radius: 4px; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; font-family: inherit; }
.mtw-shop__page-num:hover:not(.is-active):not(:disabled) { border-color: #1a1a1a; }
.mtw-shop__page-num.is-active { background-color: #1a1a1a; color: #ffffff; cursor: default; }
.mtw-shop__page-num:disabled  { opacity: 0.3; cursor: not-allowed; }
.mtw-shop__page-ellipsis      { color: #888; padding: 0 4px; font-size: 14px; }

.mtw-shop__loadmore-wrap { display: flex; justify-content: center; padding: 48px 0 16px; }
.mtw-shop__loadmore { background: transparent; color: #1a1a1a; border: 1.5px solid #1a1a1a; padding: 14px 36px; font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border-radius: 4px; font-family: inherit; transition: background-color 200ms ease, color 200ms ease; }
.mtw-shop__loadmore:hover { background-color: #1a1a1a; color: #ffffff; }
.mtw-shop__loadmore:disabled { opacity: 0.4; cursor: not-allowed; }
.mtw-shop__loadmore.is-loading { color: transparent; position: relative; }
.mtw-shop__loadmore.is-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: mtw-shop-spin 600ms linear infinite; color: #1a1a1a; }
.mtw-shop__loadmore:hover.is-loading::after { color: #ffffff; }

@media (max-width: 1024px) { .mtw-shop__grid { grid-template-columns: repeat(3, 1fr); } .mtw-shop__heading { font-size: 40px; } }

@media (max-width: 768px) {
    /* ── Grid: 2 kolom equal ── */
    .mtw-shop__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 10px !important;
        row-gap: 24px !important;
    }

    .mtw-shop__heading { font-size: 32px; margin-bottom: 20px; }

    /* ── Toolbar: stack vertikal ── */
    .mtw-shop__toolbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding-bottom: 8px;
        width: 100% !important;
    }

    /* ── Filters row ── */
    .mtw-shop__filters { width: 100%; gap: 10px; }

    /* ── Sort: ambil lebar penuh ── */
    .mtw-shop__sort {
        margin-left: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .mtw-shop__select-wrap { flex: 1 !important; min-width: 0 !important; }
    .mtw-shop__select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 13px;
    }

    /* ── Panel dropdown ── */
    .mtw-shop__panel { min-width: 200px; max-width: calc(100vw - 24px); }

    /* ── Card: pastikan min-width 0 ── */
    .mtw-card { min-width: 0 !important; }

    /* ── Card title: wrap, tidak nowrap ── */
    .mtw-card__title {
        font-size: 13px !important;
        white-space: normal !important;
        -webkit-line-clamp: 2 !important;
    }
    .mtw-card__price { font-size: 12px; }
    .mtw-card__info  { padding: 8px 0 10px; }
}

@media (max-width: 480px) {
    .mtw-shop__heading { font-size: 24px !important; margin-bottom: 14px !important; }
    .mtw-shop__grid    { column-gap: 8px !important; row-gap: 18px !important; }
    .mtw-shop__filters { gap: 10px; }
    .mtw-shop__count   { width: 100%; order: 99; }
    .mtw-card__title   { font-size: 12px !important; }
    .mtw-card__price   { font-size: 11px !important; }
    .mtw-card__info    { padding: 6px 0 8px; }
}

@media (max-width: 360px) {
    .mtw-shop__grid  { column-gap: 6px !important; row-gap: 14px !important; }
    .mtw-shop__heading { font-size: 20px !important; }
    .mtw-card__title { font-size: 11px !important; }
    .mtw-card__price { font-size: 11px !important; }
}

/* ============================================================
   SINGLE PRODUCT (mtw-sp)
   ============================================================ */
.mtw-sp, .mtw-sp * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.mtw-sp { width: 100%; color: #1a1a1a; }

.mtw-sp--placeholder { padding: 40px; background: #f7f7f7; border: 1px dashed #c9c9c9; border-radius: 8px; color: #666; text-align: center; }

/* ── Two-column layout ── */
.mtw-sp__layout {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 48px;
    align-items: start;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Prevent all children from overflowing */
.mtw-sp__gallery-col,
.mtw-sp__info-col {
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Gallery ── */
.mtw-sp__gallery        { display: flex; flex-direction: column; gap: 14px; }
.mtw-sp__gallery-main   { width: 100%; aspect-ratio: 1/1; background: #f5f5f5; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mtw-sp__gallery-img    { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 200ms ease; }

.mtw-sp__gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mtw-sp__gallery-thumbs::-webkit-scrollbar        { height: 6px; }
.mtw-sp__gallery-thumbs::-webkit-scrollbar-thumb  { background: #d4d4d4; border-radius: 3px; }

.mtw-sp__thumb          { flex-shrink: 0; width: 88px; height: 88px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #f5f5f5; cursor: pointer; overflow: hidden; transition: border-color 180ms ease, transform 180ms ease; }
.mtw-sp__thumb:hover    { transform: translateY(-2px); }
.mtw-sp__thumb.is-active { border-color: #1a1a1a; }
.mtw-sp__thumb img      { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── Info column ── */
.mtw-sp__info-col > * + * { margin-top: 18px; }
.mtw-sp__brand  { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: #888; margin: 0; text-transform: uppercase; }
.mtw-sp__title  { font-size: 32px; font-weight: 600; line-height: 1.2; color: #1a1a1a; margin: 6px 0 0; letter-spacing: -.005em; }
.mtw-sp__price  { font-size: 18px; font-weight: 500; color: #1a1a1a; margin-top: 12px; }
.mtw-sp__price .price, .mtw-sp__price .woocommerce-Price-amount { color: inherit; font-size: inherit; font-family: inherit; }
.mtw-sp__price del { opacity: 0.55; margin-right: 6px; }
.mtw-sp__price ins { text-decoration: none; font-weight: 600; }

/* ── Form ── */
.mtw-sp__form          { margin-top: 6px; }
.mtw-sp__form > * + * { margin-top: 18px; }

/* Variant pills */
.mtw-sp__attr       { display: flex; flex-direction: column; gap: 8px; }
.mtw-sp__attr-label { font-size: 13px; font-weight: 400; color: #555; }
.mtw-sp__pills      { display: flex; flex-wrap: wrap; gap: 8px; }
.mtw-sp__pill       { background: transparent; border: 1px solid #d6d6d6; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 400; color: #1a1a1a; cursor: pointer; line-height: 1; font-family: inherit; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; min-height: 36px; }
.mtw-sp__pill:hover:not(.is-active) { border-color: #1a1a1a; }
.mtw-sp__pill.is-active { background: #1a1a1a; border-color: #1a1a1a; color: #ffffff; }

/* Quantity selector — no custom styling, let the active theme handle it */
.mtw-sp__qty-wrap  { display: flex; flex-direction: column; gap: 8px; }
.mtw-sp__qty-label { font-size: 13px; color: #555; }

/* ── Action buttons ── */
.mtw-sp__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    width: 100%;
}

.mtw-sp__btn {
    display: block;          /* never hidden */
    width: 100%;
    padding: 15px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    border: 1.5px solid transparent;
    font-family: inherit;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
    text-align: center;
    letter-spacing: .01em;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Add to Cart — outline style */
.mtw-sp__btn--atc {
    background: transparent;
    border-color: #1a1a1a;
    color: #1a1a1a;
}
.mtw-sp__btn--atc:hover { background: #1a1a1a; color: #ffffff; }

/* Buy Now — Foxsories primary color */
.mtw-sp__btn--buy {
    background: var(--fox-primary);
    border-color: var(--fox-primary);
    color: #ffffff;
}
.mtw-sp__btn--buy:hover {
    background: var(--fox-primary-hover);
    border-color: var(--fox-primary-hover);
}

/* ── Tabs ── */
.mtw-sp__tabs   { margin-top: 32px; }
.mtw-sp__tab-bar {
    display: flex; flex-wrap: wrap; gap: 24px;
    border-bottom: 1px solid #e5e5e5; padding-bottom: 0;
}
.mtw-sp__tab-btn {
    background: transparent; border: none; padding: 12px 0;
    font-size: 14px; font-weight: 500; color: #666; cursor: pointer;
    position: relative; line-height: 1.2; font-family: inherit;
    transition: color 180ms ease;
}
.mtw-sp__tab-btn:hover:not(.is-active) { color: #333; }
.mtw-sp__tab-btn.is-active             { color: var(--fox-primary); }
.mtw-sp__tab-btn.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: var(--fox-primary);
}

.mtw-sp__panels      { padding-top: 20px; }
.mtw-sp__panel       { display: none; font-size: 14px; line-height: 1.7; color: #333; }
.mtw-sp__panel.is-active { display: block; }
.mtw-sp__panel p     { margin: 0 0 12px; }
.mtw-sp__panel p:last-child { margin-bottom: 0; }
.mtw-sp__panel strong { color: #1a1a1a; font-weight: 600; }
.mtw-sp__panel ul    { padding-left: 20px; margin: 8px 0; }
.mtw-sp__panel a     { color: var(--fox-primary); text-decoration: underline; }
.mtw-sp__panel img   { max-width: 100%; height: auto; border-radius: 6px; }

/* ── Size Chart tab content (image-only) ── */
.mtw-sp__size-chart-img-wrap {
    text-align: center;
    padding: 4px 0;
}
.mtw-sp__size-chart-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
@media (max-width: 768px) {
    .mtw-sp__size-chart-img-wrap { padding: 0; }
}

/* ── Share ── */
.mtw-sp__share        { margin-top: 24px; }
.mtw-sp__share-btn    { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; padding: 6px 0; cursor: pointer; font-size: 13px; color: #555; font-family: inherit; transition: color 180ms ease; }
.mtw-sp__share-btn:hover { color: #1a1a1a; }

/* ────────────────────────────────────────────
   WHATSAPP CTA
   FIX: Full solid green — no split between icon and bubble.
   The outer <a> is the pill; icon and text live inside it.
   ──────────────────────────────────────────── */
.mtw-sp__wa {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    text-decoration: none;
    background: var(--fox-wa-green);     /* ← single background across the whole pill */
    border-radius: 999px;                /* ← pill shape on the outer container */
    overflow: hidden;                    /* ← clips children to pill shape */
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.30);
    transition: transform 200ms ease, box-shadow 200ms ease;
    max-width: 100%;
}
.mtw-sp__wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.40);
}

/* Icon circle — keeps its own padding but blends with outer green */
.mtw-sp__wa-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: transparent;             /* ← inherits parent green */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;                   /* slight nudge toward center */
}

/* Text bubble — same green, no separate bg needed */
.mtw-sp__wa-bubble {
    display: inline-flex;
    flex-direction: column;
    background: transparent;             /* ← inherits parent green */
    color: #ffffff;
    padding: 10px 20px 10px 4px;
    line-height: 1.3;
    min-width: 0;
}

.mtw-sp__wa-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 2px;
}

.mtw-sp__wa-status {
    background: rgba(255, 255, 255, 0.30);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mtw-sp__wa-msg {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mtw-sp__wa-warn {
    margin-top: 16px; padding: 10px 14px;
    background: #fff8e1; border: 1px solid #f4d77b;
    border-radius: 6px; font-size: 13px; color: #6b5500;
}
.mtw-sp__wa-warn a { color: #6b5500; text-decoration: underline; }

/* ── Related products ── */
.mtw-sp__related         { margin-top: 80px; padding-top: 16px; }
.mtw-sp__related-heading { font-size: 22px; font-weight: 600; color: #1a1a1a; margin: 0 0 24px; letter-spacing: -.005em; }
.mtw-sp__related-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mtw-sp__related-empty   { color: #888; font-size: 14px; padding: 24px 0; margin: 0; }

/* ============================================================
   SINGLE PRODUCT — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .mtw-sp__title        { font-size: 28px; }
    .mtw-sp__related-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 768px) {
    /* Stack gallery above info */
    .mtw-sp__layout {
        grid-template-columns: 1fr !important;
        gap: 24px;
        width: 100% !important;
    }

    /* Ensure info column doesn't overflow */
    .mtw-sp__info-col {
        overflow: visible;
        min-width: 0;
        word-break: break-word;
    }

    .mtw-sp__title  { font-size: 24px; word-break: break-word; }
    .mtw-sp__price  { font-size: 17px; }
    .mtw-sp__thumb  { width: 72px; height: 72px; }

    /* Tabs — use padding instead of negative margin to avoid clipping */
    .mtw-sp__tab-bar {
        gap: 18px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        margin: 0;
        padding: 0 4px 4px;
    }
    .mtw-sp__tab-bar::-webkit-scrollbar { display: none; }
    .mtw-sp__tab-btn { white-space: nowrap; }

    /* Related */
    .mtw-sp__related      { margin-top: 56px; }
    .mtw-sp__related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mtw-sp__related-heading { font-size: 18px; margin-bottom: 16px; }

    /* WA full-width */
    .mtw-sp__wa        { width: 100%; }
    .mtw-sp__wa-bubble { flex: 1; }

    /* ── ACTION BUTTONS FULL-WIDTH ── */
    .mtw-sp__actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        overflow: visible !important;
    }
    .mtw-sp__btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    /* Pills wrap on small screens */
    .mtw-sp__pills { flex-wrap: wrap; }

    /* Quantity input full width */
    .mtw-sp__qty-wrap { width: 100%; }
}

@media (max-width: 480px) {
    .mtw-sp__title { font-size: 22px; }
    .mtw-sp__pill  { padding: 8px 14px; font-size: 12px; }
    .mtw-sp__thumb { width: 64px; height: 64px; }

    /* Quantity stays readable at tiny widths */
    .mtw-sp__qty-wrap .quantity { width: 100%; }
    .mtw-sp__qty-wrap .quantity input.qty { width: 100%; }
}

/* ============================================================
   ELEMENTOR WRAPPER OVERFLOW FIX
   Elementor sets overflow:hidden on widget wrappers by default,
   which clips the tab scrollbar and action buttons on mobile.
   ============================================================ */
.elementor-widget-mtw_single_product,
.elementor-widget-mtw_single_product > .elementor-widget-container {
    overflow: visible !important;
}

/* Prevent horizontal page scroll from tab-bar on mobile */
@media (max-width: 768px) {
    .elementor-widget-mtw_single_product {
        overflow-x: hidden !important;
    }
    .mtw-sp__tabs {
        overflow: hidden;
    }
    .mtw-sp__tab-bar {
        overflow-x: auto;
        margin: 0;
        padding: 0 4px;
    }
    .mtw-sp__actions {
        overflow: visible !important;
        width: 100% !important;
    }
    .mtw-sp__btn {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    .mtw-sp__pills {
        flex-wrap: wrap;
    }
    .mtw-sp__info-col {
        min-width: 0;
        overflow: visible;
    }
}

/* ============================================================
   v1.2.8 — Sale Badge inline + Shipping Note + Shopee button
   ============================================================ */

/* ── Price row: price + inline sale badge ── */
.mtw-sp__price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.mtw-sp__price-row .mtw-sp__price {
    margin-top: 0;
}

.mtw-sp__sale-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #E63946;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
}

/* ── Shipping note (under price) ── */
.mtw-sp__shipping-note {
    margin: 6px 0 0;
    font-size: 12px;
    color: #888888;
    line-height: 1.4;
}

/* ── Extras row: Shopee button below Add-to-Cart / Buy Now ── */
.mtw-sp__extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    align-items: stretch;
}

.mtw-sp__btn--shopee {
    width: 100%;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #EE4D2D;
    border: 1.5px solid #EE4D2D;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mtw-sp__btn--shopee:hover {
    background-color: #D04022;
    border-color: #D04022;
    color: #ffffff;
    transform: translateY(-1px);
}

.mtw-sp__btn--shopee svg {
    flex-shrink: 0;
}
