/* ============================================
   BLOOMLAB SHOP — Product Archive & Single Product
   Uses BloomLab design-tokens.css variables
   ============================================ */

:root {
    --shop-accent: #1A6B63;
    --shop-accent-light: #4ECDC4;
    --shop-accent-bg: #F0FAF8;
    --shop-text-primary: #1A2332;
    --shop-text-secondary: #5A6577;
    --shop-text-muted: #8B95A5;
    --shop-bg-primary: #FFFFFF;
    --shop-bg-secondary: #F8FAFB;
    --shop-border: #E8ECF0;
    --shop-card-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shop-card-shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
    --shop-sale-color: #E05555;
    --shop-stock-color: #2D8A4E;
    --shop-oos-color: #B85C3C;
}

/* ---- Nav overrides: WooCommerce CSS overrides unified nav sizing ---- */

#bloomlab-nav-primary .bloomlab-logo-img {
    height: 36px !important;
    width: auto !important;
    max-height: 36px !important;
    object-fit: contain !important;
}
#bloomlab-nav-primary .bloomlab-site-header-nav {
    padding: 15px 0 !important;
    line-height: 1 !important;
}
#bloomlab-nav-primary .bloomlab-nav-menu a {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}
@media (max-width: 768px) {
    #bloomlab-nav-primary .bloomlab-logo-img {
        height: 32px !important;
        max-height: 32px !important;
    }
    #bloomlab-nav-primary .bloomlab-site-header-nav {
        padding: 8px 0 !important;
    }
}

/* ---- Reset & Base ---- */

.shop-wrap,
.shop-wrap *,
.shop-wrap *::before,
.shop-wrap *::after { box-sizing: border-box; }
.shop-wrap :where(*) { margin: 0; padding: 0; }

.shop-wrap {
    font-family: var(--bloom-font-family, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
    background: var(--shop-bg-primary);
    color: var(--shop-text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 60vh;
}

.shop-container {
    width: 100%;
    max-width: var(--bloom-standard-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--bloom-side-padding, clamp(16px, 5vw, 60px));
}

/* ---- Breadcrumbs ---- */

.shop-breadcrumbs { padding: 20px 0 8px; }
.shop-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.shop-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--shop-text-muted);
}
.shop-breadcrumbs a {
    color: var(--shop-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.shop-breadcrumbs a:hover { color: var(--shop-accent); }
.shop-breadcrumb-sep { color: var(--shop-text-muted); font-size: 0.75rem; }
.shop-breadcrumb-current { color: var(--shop-text-primary); font-weight: 500; }

/* ---- Hero / Page Title ---- */

.shop-hero {
    padding: 20px 0 32px;
    text-align: center;
}
.shop-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--shop-text-primary);
    margin-bottom: 12px;
}
.shop-hero-subtitle {
    font-size: 1.1rem;
    color: var(--shop-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Category Tabs ---- */

.shop-category-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.shop-category-bar::-webkit-scrollbar { display: none; }

.shop-category-tabs {
    list-style: none;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 0 24px;
}
.shop-category-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shop-text-secondary);
    background: var(--shop-bg-secondary);
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.shop-category-tabs a:hover {
    background: var(--shop-accent-bg);
    color: var(--shop-accent);
    border-color: rgba(26, 107, 99, 0.15);
}
.shop-category-tabs a.active {
    background: var(--shop-accent);
    color: #fff;
    border-color: var(--shop-accent);
}
.shop-category-tabs a.active .shop-cat-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.shop-cat-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(0,0,0,0.06);
    color: var(--shop-text-muted);
}

/* ---- Results Bar ---- */

.shop-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 20px;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-result-count {
    font-size: 0.88rem;
    color: var(--shop-text-muted);
    font-weight: 500;
}
.shop-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--shop-text-secondary);
}
.shop-sort label { font-weight: 500; }
.shop-sort select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--shop-bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6577' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid var(--shop-border);
    border-radius: 10px;
    padding: 8px 36px 8px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}
.shop-sort select:focus {
    outline: none;
    border-color: var(--shop-accent);
}

/* ---- Product Grid ---- */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 48px;
}

.shop-card {
    background: var(--shop-bg-primary);
    border-radius: var(--bloom-radius-lg, 32px);
    overflow: hidden;
    border: 1.5px solid var(--shop-border);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shop-card-shadow-hover);
    border-color: rgba(26, 107, 99, 0.18);
}
.shop-card--outofstock { opacity: 0.7; }
.shop-card--outofstock:hover { opacity: 0.85; }

.shop-card-image-link { display: block; text-decoration: none; }
.shop-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--shop-bg-secondary);
}
.shop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.shop-card:hover .shop-card-img { transform: scale(1.06); }

.shop-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-bg-secondary);
    color: var(--shop-text-muted);
}
.shop-card-img-placeholder svg { width: 48px; height: 48px; }

.shop-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.shop-card-badge--sale {
    background: var(--shop-sale-color);
    color: #fff;
}
.shop-card-badge--oos {
    background: rgba(0,0,0,0.65);
    color: #fff;
    backdrop-filter: blur(4px);
}

.shop-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.shop-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.shop-card-title a {
    color: var(--shop-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.shop-card-title a:hover { color: var(--shop-accent); }

.shop-card-desc {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--shop-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.shop-price-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--shop-text-primary);
}
.shop-price-current .woocommerce-Price-currencySymbol { font-weight: 600; }
.shop-price-original {
    font-size: 0.85rem;
    color: var(--shop-text-muted);
    text-decoration: line-through;
}

.shop-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--shop-accent);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.2s;
}
.shop-card-cta:hover { gap: 8px; }
.shop-card-cta svg { transition: transform 0.3s; }
.shop-card-cta:hover svg { transform: translateX(2px); }

/* ---- Pagination ---- */

.shop-pagination {
    text-align: center;
    padding: 16px 0 56px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.shop-pagination a,
.shop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.shop-pagination a {
    background: var(--shop-bg-secondary);
    color: var(--shop-text-secondary);
    border: 1.5px solid var(--shop-border);
}
.shop-pagination a:hover {
    background: var(--shop-accent-bg);
    border-color: var(--shop-accent);
    color: var(--shop-accent);
}
.shop-pagination .current {
    background: var(--shop-accent);
    color: #fff;
    border: 1.5px solid var(--shop-accent);
}
.shop-pagination .prev,
.shop-pagination .next {
    font-weight: 700;
}

/* ---- Empty State ---- */

.shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--shop-text-muted);
}
.shop-empty svg { margin-bottom: 24px; }
.shop-empty h2 {
    font-size: 1.5rem;
    color: var(--shop-text-primary);
    margin-bottom: 8px;
}
.shop-empty p { margin-bottom: 24px; }
.shop-empty-cta {
    display: inline-block;
    padding: 12px 32px;
    background: var(--shop-accent);
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.shop-empty-cta:hover { background: #15574F; }


/* ============================================
   SINGLE PRODUCT STYLES
   ============================================ */

/* ---- Product Layout ---- */

.sp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 24px 0 56px;
    align-items: start;
}

/* Gallery */
.sp-gallery-main {
    position: relative;
    border-radius: var(--bloom-radius-lg, 32px);
    overflow: hidden;
    background: var(--shop-bg-secondary);
    aspect-ratio: 1 / 1;
}
.sp-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}
.sp-placeholder {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-placeholder svg { width: 64px; height: 64px; color: var(--shop-text-muted); }

.sp-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.sp-thumbnails::-webkit-scrollbar { display: none; }
.sp-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: var(--bloom-radius-sm, 8px);
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb:hover { opacity: 0.85; }
.sp-thumb--active {
    border-color: var(--shop-accent);
    opacity: 1;
}

/* Info Panel */
.sp-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.sp-category a {
    color: var(--shop-accent);
    text-decoration: none;
}
.sp-category a:hover { text-decoration: underline; }

.sp-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--shop-text-primary);
    margin-bottom: 16px;
}

.sp-short-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--shop-text-secondary);
    margin-bottom: 24px;
}
.sp-short-desc strong { color: var(--shop-text-primary); }

/* Price */
.sp-price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--shop-bg-secondary);
    border-radius: var(--bloom-radius-md, 16px);
    border: 1px solid var(--shop-border);
}
.sp-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.sp-price-current {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--shop-text-primary);
}
.sp-price-original {
    font-size: 1rem;
    color: var(--shop-text-muted);
    text-decoration: line-through;
}
.sp-price-save {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--shop-sale-color);
    background: rgba(224, 85, 85, 0.1);
    padding: 3px 10px;
    border-radius: 16px;
}
.sp-stock {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.sp-stock--in { color: var(--shop-stock-color); }
.sp-stock--out { color: var(--shop-oos-color); }

/* Cart Form */
.sp-cart-form { margin-bottom: 24px; }
.sp-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.sp-qty-row label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--shop-text-secondary);
}
.sp-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--shop-border);
    border-radius: 12px;
    overflow: hidden;
}
.sp-qty-btn {
    width: 40px;
    height: 40px;
    background: var(--shop-bg-secondary);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--shop-text-primary);
    font-weight: 600;
    transition: background 0.15s;
    font-family: inherit;
}
.sp-qty-btn:hover { background: var(--shop-accent-bg); }
.sp-qty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--shop-border);
    border-right: 1.5px solid var(--shop-border);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--shop-text-primary);
    -moz-appearance: textfield;
}
.sp-qty-input::-webkit-inner-spin-button,
.sp-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.sp-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: var(--shop-accent);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.25s, transform 0.15s;
}
.sp-add-to-cart:hover { background: #15574F; transform: translateY(-1px); }
.sp-add-to-cart:active { transform: translateY(0); }
.sp-add-to-cart--disabled {
    background: var(--shop-border);
    color: var(--shop-text-muted);
    cursor: not-allowed;
}

/* Trust Badges */
.sp-trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 8px;
}
.sp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--shop-text-secondary);
}
.sp-trust-item svg { color: var(--shop-accent); flex-shrink: 0; }

/* ---- Product Details / Tabs ---- */

.sp-details {
    padding: 0 0 56px;
    max-width: 800px;
}
.sp-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--shop-border);
    margin-bottom: 0;
}
.sp-tab {
    padding: 14px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--shop-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-family: inherit;
}
.sp-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s;
}
.sp-tab:hover { color: var(--shop-accent); }
.sp-tab--active { color: var(--shop-accent); }
.sp-tab--active::after { background: var(--shop-accent); }

.sp-panel { display: none; padding: 28px 0; }
.sp-panel--active { display: block; }

.sp-desc-content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--shop-text-secondary);
}
.sp-desc-content strong { color: var(--shop-text-primary); font-weight: 700; }
.sp-desc-content ul,
.sp-desc-content ol { padding-left: 20px; margin: 12px 0; }
.sp-desc-content li { margin-bottom: 6px; }

.sp-info-table {
    width: 100%;
    border-collapse: collapse;
}
.sp-info-table th,
.sp-info-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--shop-border);
    text-align: left;
}
.sp-info-table th {
    font-weight: 600;
    color: var(--shop-text-secondary);
    width: 140px;
}
.sp-info-table td { color: var(--shop-text-primary); }

/* ---- Related Products ---- */

.sp-related { padding-bottom: 64px; }
.sp-related-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}
.shop-grid--related { grid-template-columns: repeat(4, 1fr); gap: 20px; }


/* ---- Buy Now Button ---- */

.sp-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 16px 32px;
    background: transparent;
    color: var(--shop-accent);
    border: 2px solid var(--shop-accent);
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.25s, color 0.25s, transform 0.15s;
}
.sp-buy-now:hover {
    background: var(--shop-accent);
    color: #fff;
    transform: translateY(-1px);
}
.sp-buy-now:active { transform: translateY(0); }

/* ---- Mini Testimonials ---- */

.sp-testimonials {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--shop-border);
}
.sp-testimonials-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--shop-text-muted);
    margin-bottom: 12px;
}
.sp-testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sp-testimonial-item {
    background: var(--shop-bg-secondary);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid var(--shop-border);
}
.sp-testimonial-stars {
    color: #F5A623;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.sp-testimonial-item p {
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--shop-text-primary);
    font-style: italic;
    margin: 0 0 4px;
}
.sp-testimonial-item span {
    font-size: 0.75rem;
    color: var(--shop-text-muted);
    font-weight: 600;
}

/* ---- Accordion for Product Details ---- */

.sp-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: var(--shop-bg-secondary);
    border: 1.5px solid var(--shop-border);
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--shop-text-primary);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sp-accordion-toggle:hover {
    background: var(--shop-accent-bg);
    border-color: rgba(26, 107, 99, 0.2);
    color: var(--shop-accent);
}
.sp-accordion-toggle--open {
    background: var(--shop-accent-bg);
    border-color: var(--shop-accent);
    color: var(--shop-accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.sp-accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.sp-accordion-toggle--open .sp-accordion-icon { transform: rotate(180deg); }
.sp-accordion-content {
    padding: 28px 24px;
    border: 1.5px solid var(--shop-border);
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    background: var(--shop-bg-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .shop-grid--related { grid-template-columns: repeat(2, 1fr); }

    .sp-layout { grid-template-columns: 1fr; gap: 32px; }
    .sp-gallery-main { max-width: 500px; margin: 0 auto; }

    .shop-category-tabs { justify-content: flex-start; flex-wrap: nowrap; }
    .shop-category-bar { padding-bottom: 8px; }
}

@media (max-width: 600px) {
    .shop-hero { padding: 12px 0 20px; }
    .shop-hero-title { font-size: 1.8rem; }
    .shop-hero-subtitle { font-size: 0.95rem; }

    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .shop-grid--related { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .shop-card { border-radius: var(--bloom-radius-md, 16px); }
    .shop-card-body { padding: 14px 14px 18px; }
    .shop-card-title { font-size: 0.88rem; }
    .shop-card-desc { font-size: 0.78rem; -webkit-line-clamp: 1; }
    .shop-price-current { font-size: 0.95rem; }
    .shop-price-original { font-size: 0.75rem; }
    .shop-card-cta { font-size: 0.78rem; }
    .shop-card-badge { padding: 3px 10px; font-size: 0.65rem; top: 10px; left: 10px; }

    .shop-category-tabs a { padding: 8px 16px; font-size: 0.82rem; }

    .sp-layout { gap: 24px; }
    .sp-gallery-main { border-radius: var(--bloom-radius-md, 16px); }
    .sp-title { font-size: 1.4rem; }
    .sp-price-current { font-size: 1.3rem; }
    .sp-price-block { flex-direction: column; align-items: flex-start; gap: 8px; }
    .sp-trust-badges { gap: 12px; }
    .sp-trust-item { font-size: 0.75rem; }
    .sp-thumb { width: 56px; height: 56px; }

    .shop-results-bar { flex-direction: column; align-items: flex-start; gap: 8px; }

    .sp-related-title { font-size: 1.2rem; }
}

@media (max-width: 380px) {
    .shop-grid { grid-template-columns: 1fr; gap: 16px; }
    .shop-grid--related { grid-template-columns: 1fr; }
}

/* ---- WooCommerce notices ---- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.woocommerce-message {
    background: var(--shop-accent-bg);
    border-left: 4px solid var(--shop-accent);
    color: var(--shop-accent);
}
.woocommerce-error {
    background: #FEF2F2;
    border-left: 4px solid var(--shop-sale-color);
    color: var(--shop-sale-color);
}

/* ---- WooCommerce Checkout Buttons (match product page style) ---- */

.wc-block-checkout .wp-element-button,
.wc-block-checkout .wc-block-components-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button {
    background: var(--shop-accent, #1A6B63) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    padding: 16px 32px !important;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}
.wc-block-checkout .wp-element-button:hover,
.wc-block-checkout .wc-block-components-button:hover,
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
    background: #15574F !important;
    transform: translateY(-1px);
}
.wc-block-checkout .wp-element-button:active,
.wc-block-checkout .wc-block-components-button:active,
.wc-block-checkout .wc-block-components-checkout-place-order-button:active {
    transform: translateY(0);
}

.wc-block-checkout .wc-block-components-checkout-return-to-cart-button,
.wc-block-components-checkout-return-to-cart-button {
    display: none !important;
}

/* WooCommerce Cart "Proceed to Checkout" button */
.wc-block-cart__submit-button,
a.wc-block-cart__submit-button.wp-element-button,
.wc-block-cart .wp-element-button,
.wc-block-cart .wc-block-components-button,
.wp-block-woocommerce-cart .wp-element-button,
.wp-block-woocommerce-proceed-to-checkout-block .wp-element-button {
    background: var(--shop-accent, #1A6B63) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    padding: 16px 32px !important;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}
.wc-block-cart__submit-button:hover,
a.wc-block-cart__submit-button.wp-element-button:hover,
.wc-block-cart .wp-element-button:hover,
.wc-block-cart .wc-block-components-button:hover,
.wp-block-woocommerce-cart .wp-element-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wp-element-button:hover {
    background: #15574F !important;
    transform: translateY(-1px);
}
.wc-block-cart__submit-button:active,
.wc-block-cart .wp-element-button:active,
.wc-block-cart .wc-block-components-button:active {
    transform: translateY(0);
}

/* Fallback: target via body class and broader WooCommerce wrappers */
.woocommerce-cart .wc-block-components-button.contained,
.woocommerce-checkout .wc-block-components-button.contained,
.wp-block-woocommerce-checkout .wp-element-button {
    background: var(--shop-accent, #1A6B63) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    padding: 16px 32px !important;
    transition: background 0.25s, transform 0.15s;
}
.woocommerce-cart .wc-block-components-button.contained:hover,
.woocommerce-checkout .wc-block-components-button.contained:hover,
.wp-block-woocommerce-checkout .wp-element-button:hover {
    background: #15574F !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   Checkout Inline Cart Edit — Tokopedia-style layout
   2-column: image left | title + price, qty controls bottom-right
   ============================================================ */

/* Hide native qty bubble */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__quantity {
    display: none !important;
}

/* 2-column grid: image | content area with title+price above, qty below-right */
.wc-block-components-order-summary-item[data-blab-injected] {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px;
    row-gap: 0;
    align-items: start !important;
    padding: 12px 0;
}

/* Image: column 1, spans both rows (covers title row + qty row) */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__image,
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-product-image {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 64px;
    min-width: 64px;
    align-self: start;
}

.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__image img,
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-product-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

/* Description (title + prices): column 2, row 1 */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__description {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

/* Hide ALL description content, metadata, and paragraphs — keep only title + price */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-product-metadata,
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-product-details,
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__description p,
.wc-block-components-order-summary-item[data-blab-injected] [class*="metadata__description"],
.wc-block-components-order-summary-item[data-blab-injected] [class*="product-metadata"] {
    display: none !important;
}
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__description > *:not(.wc-block-components-product-name):not(a):not(.wc-block-components-order-summary-item__individual-prices) {
    display: none !important;
}

/* Product title: 2-line clamp */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-product-name {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1A2332;
}

/* Price area: sale price prominent, original crossed off inline */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__individual-prices {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1A2332;
    margin-top: 2px;
}

/* Crossed-off original price */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__individual-prices del {
    font-size: 0.78rem;
    font-weight: 400;
    color: #9aa0aa;
    text-decoration: line-through;
}

/* Sale price (ins) — no underline decoration */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__individual-prices ins {
    text-decoration: none;
    font-weight: 700;
}

/* Qty controls host: column 2, row 2, right-aligned */
.wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__total-price {
    grid-column: 2;
    grid-row: 2;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    margin-top: 8px;
}

/* Controls wrapper */
.blab-edit-qty-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    animation: blab-appear 0.2s ease forwards;
}

@keyframes blab-appear {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Quantity pill */
.blab-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #c7ccd8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-width: 90px;
    height: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.blab-qty-controls:hover {
    border-color: #9fa9bd;
}

.blab-processing .blab-qty-controls {
    pointer-events: none;
    opacity: 0.65;
}

.blab-qty-btn {
    background: none;
    border: none;
    color: #232b3a;
    font-size: 1.2rem;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    width: 30px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, transform 0.1s;
    line-height: 1;
    user-select: none;
    padding: 0;
}

.blab-qty-btn:hover { background: rgba(35, 43, 58, 0.06); }
.blab-qty-btn:active { transform: scale(0.96); }

.blab-qty-btn:focus-visible {
    outline: 2px solid #2b66ff;
    outline-offset: -2px;
}

.blab-qty-btn.blab-qty-trash-active {
    color: #1f2937;
}

.blab-qty-btn.blab-qty-trash-active:hover {
    background: rgba(227, 66, 52, 0.10);
    color: #d13a2f;
}

.blab-qty-display {
    font-size: 1rem;
    font-weight: 500;
    color: #101828;
    min-width: 30px;
    text-align: center;
    line-height: 36px;
    user-select: none;
}

.blab-processing .blab-qty-display {
    animation: blab-pulse 0.7s ease-in-out infinite;
}

@keyframes blab-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

@media (max-width: 600px) {
    .wc-block-components-order-summary-item[data-blab-injected] {
        grid-template-columns: 56px minmax(0, 1fr) !important;
        column-gap: 10px;
    }

    .wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__image,
    .wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-order-summary-item__image img,
    .wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-product-image,
    .wc-block-components-order-summary-item[data-blab-injected] .wc-block-components-product-image img {
        width: 56px;
        height: 56px;
    }

    .blab-qty-controls {
        min-width: 82px;
        height: 34px;
    }

    .blab-qty-btn {
        width: 28px;
        height: 34px;
    }

    .blab-qty-display {
        min-width: 26px;
        line-height: 34px;
        font-size: 0.95rem;
    }
}
