/**
 * OmniPulse Conversion Suite - Frontend Styles
 * Mobile App Cloned Architecture & Conversion Boosters
 */

:root {
    --op-primary: #ff4700;
    --op-primary-hover: #e03e00;
    --op-secondary: #ff8400;
    --op-green: #00a651;
    --op-green-light: #e8f7ee;
    --op-dark: #111111;
    --op-gray-bg: #f7f7f7;
    --op-border: #eeeeee;
    --op-text-muted: #777777;
    --op-radius: 12px;
}

/* -------------------------------------------------------------------------
   1. App-Style 5-Tab Bottom Navigation Bar (Pixel-Perfect Clone)
------------------------------------------------------------------------- */
.op-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.op-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #444444;
    font-size: 11px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.15s ease;
}

.op-nav-item.active {
    color: var(--op-primary) !important;
    font-weight: 700;
}

.op-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.op-badge-counter {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff5000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 10px;
    text-align: center;
    padding: 0 4px;
}

/* Floating Free Shipping Pill on Cart Icon (From Screenshot) */
.op-floating-shipping-pill {
    position: absolute;
    top: -22px;
    right: -14px;
    background: #00a651;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 166, 81, 0.35);
    line-height: 1.1;
    pointer-events: none;
    animation: opPillBounce 2.5s infinite;
}

.op-pill-sub {
    font-size: 7.5px;
    opacity: 0.95;
    text-transform: uppercase;
}

@keyframes opPillBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Safe padding for body to not overlap bottom nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 65px !important;
    }
}

/* -------------------------------------------------------------------------
   2. Mobile App Top Header (Search, Scroller & Value Props)
------------------------------------------------------------------------- */
.op-mobile-app-header {
    background: #ffffff;
    padding: 8px 12px 4px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.op-search-bar-row {
    margin-bottom: 8px;
}

.op-search-form {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border: 1.5px solid #111111;
    border-radius: 25px;
    padding: 2px 6px 2px 14px;
    position: relative;
}

.op-search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 13.5px !important;
    color: #222222 !important;
    flex: 1;
    height: 36px;
    padding: 0 !important;
}

.op-camera-btn, .op-search-submit {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    color: #333333;
}

.op-search-submit {
    background: #111111;
    color: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

/* Horizontal Category Scroll Tabs */
.op-cat-scroll-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    gap: 16px;
    padding: 6px 2px 8px 2px;
}

.op-cat-scroll-tabs::-webkit-scrollbar {
    display: none;
}

.op-cat-tab {
    text-decoration: none !important;
    color: #444444;
    font-size: 13.5px;
    font-weight: 500;
    padding-bottom: 4px;
    position: relative;
}

.op-cat-tab.active {
    color: #111111;
    font-weight: 800;
}

.op-cat-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #111111;
    border-radius: 2px;
}

/* Value Props Ribbon (Green Check Free Shipping & Free Returns) */
.op-value-props-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff8f4;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 6px 0;
}

.op-prop-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.op-check-green, .op-return-icon {
    color: #00a651;
    font-size: 18px;
    font-weight: bold;
}

.op-prop-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.op-prop-texts strong {
    font-size: 12px;
    color: #222222;
}

.op-prop-texts span {
    font-size: 10.5px;
    color: #666666;
}

.op-prop-divider {
    width: 1px;
    height: 24px;
    background: #eedfd5;
}

/* Trust Bar */
.op-trust-guarantee-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00a651;
    color: #ffffff;
    border-radius: 6px;
    padding: 7px 12px;
    margin-top: 4px;
    font-size: 12px;
}

.op-trust-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.op-trust-right {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 11px;
}

/* -------------------------------------------------------------------------
   3. Cloned Split-Category View (Images 5, 6, 7)
------------------------------------------------------------------------- */
.op-category-split-browser {
    display: flex;
    min-height: calc(100vh - 120px);
    background: #ffffff;
}

/* Left Vertical Navigation */
.op-cat-sidebar {
    width: 105px;
    min-width: 105px;
    background: #f7f7f7;
    overflow-y: auto;
    border-right: 1px solid #eeeeee;
}

.op-cat-sidebar-item {
    padding: 14px 8px;
    font-size: 12px;
    color: #555555;
    text-align: center;
    cursor: pointer;
    position: relative;
    line-height: 1.25;
    transition: background 0.15s, color 0.15s;
}

.op-cat-sidebar-item.active {
    background: #ffffff;
    color: var(--op-primary);
    font-weight: 700;
}

.op-cat-sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3.5px;
    background: var(--op-primary);
    border-radius: 0 4px 4px 0;
}

/* Right Content Panel */
.op-cat-main-panel {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
}

.op-cat-panel-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222222;
}

/* Subcategory Circular Bubbles */
.op-subcat-bubble-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 6px;
    margin-bottom: 20px;
}

.op-subcat-bubble-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #333333;
}

.op-bubble-img-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 6px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.op-bubble-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-bubble-hot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff5000;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 6px;
}

.op-bubble-name {
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Trending Section Header */
.op-trending-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 10px 0;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.op-trending-header-row h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
}

.op-trending-sort-label {
    font-size: 11px;
    color: #777777;
    cursor: pointer;
}

/* 2-Column Product Grid */
.op-product-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.op-prod-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.op-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #fbfbfb;
}

.op-card-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-card-badge-urgency {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.op-card-details {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.op-card-title {
    font-size: 12px;
    color: #333333;
    text-decoration: none !important;
    line-height: 1.25;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.op-card-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.op-sale-price {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--op-primary);
}

.op-del-price {
    font-size: 10.5px;
    color: #999999;
    margin-left: 4px;
}

.op-quick-cart-btn {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333333;
    transition: background 0.15s;
}

.op-quick-cart-btn:hover {
    background: var(--op-primary);
    color: #ffffff;
    border-color: var(--op-primary);
}

.op-card-meta-line {
    font-size: 10px;
    color: #888888;
    margin-top: 4px;
}

/* -------------------------------------------------------------------------
   4. Cloned Mobile Account ("You") Profile Page (Image 2)
------------------------------------------------------------------------- */
.op-account-screen-clone {
    background: #f7f7f7;
    min-height: 100vh;
    padding-bottom: 80px;
}

.op-account-header {
    background: #ffffff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.op-account-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.op-avatar-circle img {
    border-radius: 50%;
    border: 2px solid #eeeeee;
}

.op-username {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}

.op-header-actions {
    display: flex;
    gap: 14px;
}

.op-action-icon {
    color: #333333;
    text-decoration: none !important;
}

/* Wallet 2-Col Card */
.op-wallet-summary-card {
    background: #ffffff;
    margin: 8px 12px;
    border-radius: var(--op-radius);
    display: flex;
    padding: 14px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.op-wallet-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.op-wallet-val {
    font-size: 16px;
    font-weight: 800;
    color: #111111;
}

.op-wallet-lbl {
    font-size: 11px;
    color: #777777;
    margin-top: 2px;
}

.op-wallet-divider {
    width: 1px;
    background: #eeeeee;
}

/* Account Menu Rows */
.op-account-menu-card {
    background: #ffffff;
    margin: 8px 12px;
    border-radius: var(--op-radius);
    padding: 4px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.op-menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    text-decoration: none !important;
    color: #222222;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px solid #f6f6f6;
}

.op-menu-row:last-child {
    border-bottom: none;
}

.op-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.op-badge-pill {
    background: var(--op-primary);
    color: #ffffff;
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 10.5px;
    font-weight: bold;
}

/* 4-Icon Action Grid (History, Play & Earn, Addresses, Following) */
.op-account-icon-grid {
    background: #ffffff;
    margin: 8px 12px;
    border-radius: var(--op-radius);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.op-grid-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #333333;
    font-size: 11.5px;
    position: relative;
    cursor: pointer;
}

.op-circle-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.op-free-badge {
    position: absolute;
    top: -6px;
    right: 8px;
    background: #ff5000;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 6px;
}

/* Guarantee Ribbon */
.op-guarantee-ribbon {
    background: #fff8f4;
    margin: 8px 12px;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #444444;
}

.op-gr-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.op-gr-check {
    color: #00a651;
    font-weight: bold;
}

.op-account-feed {
    margin: 16px 12px;
}

.op-feed-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

/* -------------------------------------------------------------------------
   5. Cart Enhancements & Sticky Checkout Drawer (Image 3)
------------------------------------------------------------------------- */
.op-cart-sticky-checkout-drawer {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.09);
    padding: 10px 16px;
    z-index: 9999;
}

.op-drawer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.op-drawer-pricing {
    display: flex;
    flex-direction: column;
}

.op-drawer-total-label {
    font-size: 11px;
    color: #777777;
}

.op-drawer-total-amount {
    font-size: 18px;
    font-weight: 900;
    color: #111111;
}

.op-drawer-checkout-cta {
    background: #ff5000;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 24px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.35);
    transition: transform 0.15s, background 0.15s;
}

.op-drawer-checkout-cta:active {
    transform: scale(0.97);
}

.op-cta-btn-text {
    font-size: 14px;
}

.op-cta-btn-sub {
    font-size: 9.5px;
    opacity: 0.9;
    font-weight: 500;
}

/* Cart Reservation Urgency Banner */
.op-cart-reservation-banner {
    display: flex;
    align-items: center;
    background: #fff4ea;
    border: 1px solid #ffd4ba;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0 16px 0;
    gap: 12px;
}

.op-res-icon {
    font-size: 24px;
}

.op-cart-timer-countdown {
    background: #ff5000;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    margin-left: 4px;
}

.op-res-subtext {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #666666;
}

/* Tiered Free Shipping Progress Bar */
.op-shipping-bar-container {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: var(--op-radius);
    padding: 12px 16px;
    margin: 12px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.op-shipping-bar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #333333;
    margin-bottom: 8px;
}

.op-shipping-bar-track {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.op-shipping-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8400 0%, #00a651 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.op-shipping-bar-pill {
    font-size: 8px;
    color: #ffffff;
    font-weight: bold;
    padding-right: 4px;
}

/* -------------------------------------------------------------------------
   6. Single Product Urgency & Scarcity Modules
------------------------------------------------------------------------- */
.op-urgency-deal-banner {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    border: 1px solid #ffccb3;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.op-flame-badge {
    background: #ff5000;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.op-live-viewers {
    font-size: 11.5px;
    color: #444444;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.op-pulse-dot {
    width: 8px;
    height: 8px;
    background: #00a651;
    border-radius: 50%;
    animation: opPulse 1.5s infinite;
}

@keyframes opPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 166, 81, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 166, 81, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 166, 81, 0); }
}

.op-countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 800;
    color: #ff5000;
}

.op-cd-block {
    background: #111111;
    color: #ffffff;
    padding: 2px 5px;
    border-radius: 4px;
}

.op-scarcity-stock-wrapper {
    margin: 14px 0;
}

.op-stock-alert {
    background: #fff0eb;
    color: #d83500;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.op-trust-badges-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #555555;
}

.op-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.op-icon-check {
    color: #00a651;
    font-weight: bold;
}

/* -------------------------------------------------------------------------
   7. Social Proof Toast Popup
------------------------------------------------------------------------- */
.op-social-toast {
    position: fixed;
    bottom: 72px;
    left: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 8px 12px;
    z-index: 99998;
    max-width: 310px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    pointer-events: none;
}

.op-social-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.op-toast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.op-toast-thumb img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.op-toast-body {
    flex: 1;
    line-height: 1.2;
}

.op-toast-title {
    margin: 0;
    font-size: 11.5px;
    color: #222222;
}

.op-toast-product {
    margin: 2px 0 3px 0;
    font-size: 11px;
    color: var(--op-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.op-toast-meta {
    font-size: 9.5px;
    color: #888888;
}

.op-toast-verified {
    color: #00a651;
    font-weight: bold;
}

.op-toast-close {
    border: none;
    background: transparent;
    font-size: 16px;
    color: #999999;
    cursor: pointer;
    padding: 0 4px;
}

/* Storefront layout */
.op-mobile-app-header > *, .op-mobile-home-feed, .op-category-split-browser {
    max-width: 1280px;
    margin-inline: auto;
}
.op-cat-main-panel, .op-search-input { min-width: 0; }
.op-cat-sidebar { flex: 0 0 clamp(76px, 24vw, 105px); width: auto; min-width: 0; }
.op-cat-sidebar-item, .op-subcat-bubble-card {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow-wrap: anywhere;
}
.op-cat-sidebar-item:hover, .op-cat-sidebar-item:focus-visible,
.op-subcat-bubble-card:hover, .op-subcat-bubble-card:focus-visible { background: #fff; color: var(--op-primary-hover); }
.op-subcat-bubble-card { padding: 4px 0; }
.op-subcat-bubble-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.op-bubble-img-wrap { width: min(100%, 72px); height: auto; aspect-ratio: 1; }
.op-product-grid-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op-category-split-browser [hidden], #op-search-dialog [hidden] { display: none !important; }
.op-hero-deal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.op-mobile-home-feed { padding: 12px; }
.op-deal-card { min-width: 0; padding: clamp(10px, 2vw, 24px); border-radius: 16px; background: #fff0e8; }
.op-deal-card-orange { background: #fff6df; }
.op-card-headline { display: block; color: #702400; font-size: clamp(15px, 2vw, 27px); font-weight: 700; }
.op-deal-card-body { display: block; }
.op-deal-card-body img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 10px; margin-block: 8px; }
.op-deal-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.op-deal-prices span { font-weight: 700; color: #a63813; }
#op-search-dialog {
    position: fixed; inset: 0; margin: 0; width: 100%; height: 100%;
    max-width: none; max-height: none; padding: 0; border: 0;
    color: #181818; background: #fff; overflow: auto; overscroll-behavior: contain;
}
html:has(#op-search-dialog[open]) { overflow: hidden; }
.op-search-dialog-header { position: sticky; top: 0; z-index: 1; background: #fff; border-bottom: 1px solid #eee; }
.op-search-dialog-row, .op-search-chips, .op-search-dialog-body { max-width: 1180px; margin-inline: auto; padding: 12px; }
.op-search-dialog-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; margin-bottom: 0; }
.op-search-dialog-row input[type=search] { width: 100%; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid #242424; border-radius: 24px; appearance: auto; margin: 0; }
.op-search-dialog-row button, .op-search-chips button { display: grid; place-items: center; min-height: 44px; padding: 0 12px; color: #222; background: #f3f3f3; border: 0; border-radius: 24px; }
.op-search-dialog-row [data-op-back] { font-size: 28px; line-height: 1; }
.op-search-chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 0; }
.op-search-chips:empty, .op-search-dialog-body [role=status]:empty { display: none; }
.op-search-chips button { white-space: nowrap; min-height: 36px; }
.op-search-chips button[aria-pressed=true] { color: white; background: #222; }
.op-search-result { display: flex; flex-direction: column; padding: 0; color: inherit; }
.op-search-result img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.op-search-result span { padding: 10px; overflow-wrap: anywhere; }
@media (max-width: 768px) {
    .op-mobile-bottom-nav { box-sizing: content-box; }
    .op-floating-shipping-pill { right: 0; }
}
@media (min-width: 769px) {
    .op-mobile-bottom-nav { display: none; }
    .op-category-split-browser { border: 1px solid var(--op-border); border-radius: 16px; min-height: 460px; }
    .op-cat-sidebar { flex-basis: clamp(150px, 18vw, 220px); }
    .op-cat-sidebar-item { text-align: start; padding-inline: 18px; font-size: 14px; }
    .op-cat-main-panel { padding: 22px; }
    .op-cat-panel-title { font-size: 22px; }
    .op-subcat-bubble-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 16px; }
    .op-bubble-img-wrap { width: min(100%, 84px); }
    .op-bubble-name { font-size: 13px; }
    .op-product-grid-2col { grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
    .op-account-screen-clone, .op-settings-list, .op-settings-header { max-width: 940px; margin-inline: auto; }
    .op-cart-sticky-checkout-drawer { position: static; padding-inline: 0; box-shadow: none; }
}


.op-category-explorer { max-width: 1280px; margin-inline: auto; }
.op-category-explorer .op-mobile-app-header { padding-inline: 0; border: 0; }
.op-category-explorer .op-search-bar-row { margin-bottom: 12px; }
.op-category-explorer .op-prod-card { min-width: 0; }
.op-category-explorer .op-card-pricing-row { flex-wrap: wrap; gap: 5px; }
.op-category-explorer .op-cat-sidebar { align-self: start; position: sticky; top: 12px; max-height: calc(100dvh - 92px); }
.op-category-explorer .op-cat-main-panel { overflow: visible; }
@media (max-width: 768px) {
    .op-category-explorer .op-cat-sidebar { flex-basis: clamp(72px, 23vw, 94px); }
    .op-category-explorer .op-cat-main-panel { padding-inline: 8px; }
    .op-category-explorer .op-card-title { overflow-wrap: anywhere; }
    #opMobileNav .op-floating-shipping-pill { display: none; }
    #opMobileNav .op-nav-item { min-height: 44px; min-width: 0; }
}
@media (min-width: 769px) {
    .op-category-explorer .op-search-form { max-width: 720px; margin-inline: auto; }
}
 
/* Shared storefront shell. Keep WordPress and checkout headers outside these pages. */
.op-storefront-page #masthead,
.op-storefront-page .topbar,
.op-storefront-page .entry-header { display: none; }
.op-storefront-page:has(#opMobileNav) .tow-bottom-nav,
.op-storefront-page:has(#opMobileNav) nav:has(a[href$="/categories/"]):has(a[href$="/cart-2/"]) { display: none; }
.op-storefront-page:has(#opAppHeader) .tow-shop-search { display: none; }

.op-category-explorer .op-category-split-browser {
    height: var(--op-browser-height, calc(100vh - 140px));
    min-height: 240px;
    overflow: hidden;
    align-items: stretch;
}
.op-category-explorer .op-cat-sidebar,
.op-category-explorer .op-cat-main-panel {
    position: static;
    align-self: stretch;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
.op-category-explorer .op-cat-sidebar-item { text-align: start; min-height: 44px; }
.op-category-explorer .op-cat-main-panel:focus-visible,
.op-category-explorer .op-cat-sidebar:focus-visible { outline: 2px solid var(--op-primary); outline-offset: -2px; }

.woocommerce:has(.op-account-screen-clone) .woocommerce-MyAccount-content { float: none; width: 100%; }
.woocommerce:has(.op-account-screen-clone) .woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content:has(.op-account-screen-clone) > p { display: none; }
.op-account-screen-clone { padding: 0 0 16px; background: #f4f4f4; }
.op-account-screen-clone .op-account-header,
.op-account-screen-clone .op-account-menu-card,
.op-account-screen-clone .op-account-icon-grid,
.op-account-screen-clone .op-account-feed { background: white; border-radius: 0; margin: 0 0 6px; }
.op-account-screen-clone .op-account-icon-grid { grid-template-columns: repeat(4,minmax(0,1fr)); padding-inline: 4px; }
.op-account-screen-clone .op-grid-icon-item { min-width: 0; padding: 6px 2px; border: 0; color: #171717; background: transparent; text-align: center; white-space: normal; }
#opSettingsModal { width: min(100%, 640px); max-height: 90dvh; padding: 0; border: 0; border-radius: 14px; background: white; color: #151515; }
#opSettingsModal::backdrop { background: #0006; }
#opSettingsModal .op-settings-header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border-bottom: 1px solid #ddd; padding: 8px 12px; }
#opSettingsModal .op-settings-header h3, #opSettingsModal form { margin: 0; text-align: center; }
#opSettingsModal .op-settings-header button { min-height: 44px; border: 0; background: white; color: #151515; font-size: 26px; }
#opSettingsModal .op-settings-list { padding: 0 16px 16px; }

.op-cart-heading { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border-bottom: 1px solid #ececec; margin-bottom: 12px; }
.op-cart-heading a { display: grid; place-items: center; min-height: 44px; color: #181818; font-size: 28px; }
.op-cart-heading h1 { margin: 0; text-align: center; font-size: clamp(19px, 3vw, 26px); }
.woocommerce-cart:has(#opStickyCheckoutDrawer) .wc-proceed-to-checkout { display: none; }
.op-cart-sticky-checkout-drawer { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
body:not(:has(#opMobileNav)) .op-cart-sticky-checkout-drawer { bottom: 0; }
@media (max-width: 768px) {
    #opSettingsModal { inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; }
    .woocommerce-cart:has(#opStickyCheckoutDrawer) #colophon { padding-bottom: 85px; }
    .woocommerce-cart .shop_table.cart thead { display: none; }
    .woocommerce-cart .shop_table.cart tr.cart_item {
        display: grid; grid-template-columns: minmax(82px, 31%) minmax(0, 1fr) 28px;
        grid-template-areas: "image name remove" "image price price" "image quantity quantity" "image subtotal subtotal";
        align-items: center; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid #ddd;
    }
    .woocommerce-cart .shop_table.cart tr.cart_item > td { display: block; min-width: 0; padding: 0; border: 0; text-align: start !important; background: transparent; overflow-wrap: anywhere; }
    .woocommerce-cart .shop_table.cart tr.cart_item > td::before { display: none; }
    .woocommerce-cart .cart_item .product-thumbnail { grid-area: image; align-self: start; }
    .woocommerce-cart .cart_item .product-thumbnail img { width: 100%; max-width: none; height: auto; aspect-ratio: 1; object-fit: cover; }
    .woocommerce-cart .cart_item .product-name { grid-area: name; }
    .woocommerce-cart .cart_item .product-remove { grid-area: remove; }
    .woocommerce-cart .cart_item .product-price { grid-area: price; }
    .woocommerce-cart .cart_item .product-quantity { grid-area: quantity; }
    .woocommerce-cart .cart_item .product-subtotal { grid-area: subtotal; font-weight: 700; }
}


.op-desktop-nav { display: none; }
#opAppHeader .op-search-form { border: 2px solid #171717; border-radius: 30px; background: white; }
#opAppHeader .op-search-submit { background: #151515; color: white; }
#opAppHeader .op-search-input { background: transparent; color: #151515; }
@media (min-width: 769px) {
    .op-desktop-nav { display: flex; justify-content: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid #eee; }
    .op-desktop-nav a { padding: 8px 14px; color: #222; font-weight: 600; }
    .op-desktop-nav a[aria-current=page] { color: var(--op-primary-hover); }
}

#opProductPreview {
    position: fixed; inset: auto 0 0; margin: 0 auto; width: min(100%, 620px);
    max-height: min(88dvh, 850px); padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    border: 0; border-radius: 20px 20px 0 0; background: #fff; color: #161616; overflow-y: auto;
}
#opProductPreview[open] { animation: op-preview-enter .24s ease-out; }
#opProductPreview::backdrop { background: #0007; }
@keyframes op-preview-enter { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { #opProductPreview[open] { animation: none; } }
#opProductPreview [data-op-preview-close] {
    position: sticky; z-index: 2; top: 0; display: block; margin: 0 0 -44px auto;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; font-size: 25px;
    background: #fff; color: #151515; box-shadow: 0 1px 4px #0003;
}
#opProductPreview [role=status] { margin: 0 48px 12px 0; }
#opProductPreview [role=status]:empty { display: none; }
.op-preview-gallery {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 12px; background: #f5f5f5;
}
.op-preview-gallery img { width: 100%; height: min(36dvh, 340px); object-fit: contain; scroll-snap-align: start; }
#opPreviewTitle { margin: 12px 0 3px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-preview-price { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.op-preview-price del { font-size: 14px; opacity: .7; }
#opProductPreview form.cart { margin: 0; }
#opProductPreview table.variations { width: 100%; margin: 0 0 10px; }
#opProductPreview table.variations th { text-align: start; padding-inline: 0 12px; }
#opProductPreview table.variations select { width: 100%; min-height: 40px; }
#opProductPreview .quantity { display: inline-flex; align-items: center; float: none; margin: 8px 0; }
#opProductPreview .quantity input { width: 60px; text-align: center; }
#opProductPreview .quantity button { min-width: 40px; min-height: 40px; color: #161616; background: #f1f1f1; border: 0; }
#opProductPreview .single_add_to_cart_button { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 26px; background: #b84012; color: #fff; }
#opProductPreview .single_add_to_cart_button.disabled { opacity: .55; }
.op-username { overflow-wrap: anywhere; }
.op-home-discovery { max-width: 1280px; margin: auto; padding: 12px 0; }
.op-home-discovery [hidden], .op-home-discovery-ready [hidden] { display: none !important; }
.op-home-discovery h2 { font-size: 21px; margin: 0 0 10px; }
.op-home-discovery .op-featured-pair { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 12px; }
.op-feed-tabs { display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid #e8e8e8; margin-bottom: 12px; }
.op-feed-tabs button { flex: none; min-height: 44px; padding: 6px 10px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: #444; white-space: nowrap; }
.op-feed-tabs button[aria-pressed=true] { border-bottom-color: #171717; color: #171717; font-weight: 700; }
.op-discovery-card { min-width: 0; }
.op-discovery-link { display: block; color: #222; }
.op-discovery-link img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.op-discovery-link span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 6px 8px 0; }
.op-discovery-price { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 42px; padding: 0 8px; font-weight: 700; }
.op-discovery-price .op-quick-cart-btn { margin-inline-start: auto; }
.op-deal-countdown { display: block; padding: 4px 8px; color: #a3370e; font-size: 12px; }
.op-feed-insertion { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.op-feed-insertion:empty, .op-feed-status:empty { display: none; }
.op-feed-more { display: block; margin: 16px auto 0; min-height: 44px; }


.op-preview-gallery img[hidden] { display: none; }
.op-preview-shipping { color: #176529; font-size: 14px; margin: 4px 0 10px; }

.op-product-page #masthead, .op-product-page .topbar { display: none; }
.op-home-subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(88px,1fr));
    gap: 12px;
    margin: 0 0 20px;
}
.op-home-subcategories[hidden] { display: none; }
.op-home-subcategories button {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    color: #222; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 8px;
}
.op-home-subcategories button[aria-pressed=true] { border-color: #171717; }
.op-home-subcategories img { width: 62px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.op-feed-tabs { border-bottom: 0; margin-bottom: 0; scrollbar-width: none; }
.op-feed-tabs::-webkit-scrollbar { display: none; }
.op-home-discovery .op-filtered-feed::before {
    content: ''; grid-column: 1 / -1; height: 1px; background: #dedede;
    box-shadow: 0 0 0 100vmax #dedede; clip-path: inset(0 -100vmax);
}
.op-feed-sentinel { height: 1px; }
.op-feed-loading .op-feed-sentinel {
    height: 24px; width: 24px; margin: 16px auto;
    border: 3px solid #eee; border-top-color: #171717; border-radius: 50%;
    animation: op-feed-spin .8s linear infinite;
}
@keyframes op-feed-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .op-feed-loading .op-feed-sentinel { animation: none; } }
.op-feed-retry, .op-product-expand { display: block; margin: 12px auto; min-height: 44px; }
.op-feed-retry[hidden], .op-product-expand[hidden], .op-product-reviews .commentlist > [hidden] { display: none !important; }
.op-description-collapsed:not(.op-description-expanded) { max-height: 11rem; overflow: hidden; }
.op-related-discovery { clear: both; margin: 24px auto; }
.op-related-discovery .op-filtered-feed { grid-template-columns: repeat(2,minmax(0,1fr)); }


#opAppHeader[hidden] { display: none !important; }
.op-product-toolbar { display: flex; gap: 8px; align-items: center; padding: 8px 0; }
.op-product-toolbar > :first-child { margin-right: auto; font-size: 30px; }
.op-product-toolbar a, .op-product-toolbar button {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
    color: #161616; background: #f5f5f5; border: 0; border-radius: 50%;
}
.op-product-toolbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.op-hide-product-neighbors :is(.product-navigation,.product-nav,.prev-next-products,.woostify-product-navigation,.product-prev-next,.product-nav-prev,.product-nav-next,.woostify-product-nav,.product-next-prev) { display: none !important; }
.op-hide-gallery-arrows .woocommerce-product-gallery :is(.flex-direction-nav,.slick-arrow,.swiper-button-prev,.swiper-button-next,.flickity-prev-next-button,.tns-controls,.woostify-slider-control,.gallery-prev,.gallery-next) { display: none !important; }
.op-hide-gallery-thumbs :is(.woocommerce-product-gallery .flex-control-thumbs,.woocommerce-product-gallery .flex-control-nav,.product-thumbnails,.woocommerce-product-gallery-thumbnails,.woostify-product-thumbnails,.product-thumbnail-images,.product-thumbnails-container) { display: none !important; }
.op-product-page .product .product_title { font-size: clamp(18px, 2.5vw, 26px); line-height: 1.28; margin: 10px 0 8px; overflow-wrap: anywhere; }
.op-product-page .woocommerce-product-gallery { margin-bottom: 10px; }
.op-description-collapsed:not(.op-description-expanded) { max-height: 16rem; }
.op-product-page .woocommerce-tabs { margin-bottom: 16px; padding-bottom: 0; }
.op-product-page .woocommerce-tabs .woocommerce-Tabs-panel { margin-bottom: 0; padding-bottom: 0; }
.op-product-expand {
    padding: 7px 20px; min-height: 42px; margin: 12px auto 0; color: #222;
    background: #fff; border: 1px solid #d5d5d5; border-radius: 24px; font-size: 14px; font-weight: 600;
}
.op-product-expand:hover, .op-product-expand:focus-visible { color: #111; background: #f4f4f4; }
.op-product-reviews { clear: both; padding: 14px 0 0; margin: 14px 0 20px; width: 100%; }
.op-product-reviews #reviews, .op-product-reviews #comments, .op-product-reviews #review_form_wrapper, .op-product-reviews #review_form { width: 100%; max-width: none; float: none; }
.op-product-reviews ol.commentlist { padding: 0; margin: 0; list-style: none; }
.op-product-reviews ol.commentlist > li { margin: 0; padding: 12px 0; border-bottom: 1px solid #e5e5e5; font-size: 13px; }
.op-product-reviews .comment-text { display: flex; flex-direction: column; gap: 4px; box-shadow: none; }
.op-product-reviews .comment-text :is(.meta,p) { margin: 0; }
.op-product-reviews #review_form textarea { width: 100%; box-sizing: border-box; }
.op-sheet {
    position: fixed; inset: auto 0 0; width: min(100%, 680px); max-height: 90dvh;
    margin: 0 auto; padding: 0; border: 0; border-radius: 20px 20px 0 0;
    overflow-y: auto; color: #161616; background: white;
}
.op-sheet[open] { animation: op-preview-enter .24s ease-out; }
.op-sheet::backdrop { background: #0009; }
.op-sheet-header {
    position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 44px 1fr 44px;
    align-items: center; padding: 8px; background: white; border-bottom: 1px solid #eee;
}
.op-sheet-header h2 { grid-column: 2; text-align: center; font-size: 20px; margin: 0; }
.op-sheet-header button { grid-column: 3; color: #171717; background: transparent; border: 0; padding: 0; width: 44px; height: 44px; font-size: 27px; }
.op-share-offer, .op-share-product { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.op-share-offer { justify-content: space-between; background: #fff3e7; }
.op-share-offer small { display: block; font-size: 11px; color: #555; }
.op-share-offer strong { color: #a83c0a; }
.op-share-offer button { flex: none; padding: 8px 10px; border-radius: 20px; border: 0; background: #ad3900; color: white; }
.op-share-product img { width: 68px; height: 78px; object-fit: cover; border-radius: 6px; }
.op-share-product strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-share-sku { margin: 0 14px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.op-share-sku button { padding: 2px 10px; border: 1px solid #333; border-radius: 20px; background: white; color: #171717; }
.op-share-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px 5px; padding: 16px 8px; }
.op-share-options > * { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: #171717; text-align: center; padding: 0; min-width: 0; font-size: 12px; }
.op-share-icon { display: grid; place-items: center; background: #f3f3f3; border-radius: 50%; width: 50px; aspect-ratio: 1; font-size: 24px; font-weight: 700; }
.op-share-green { background: #078835; color: white; }
.op-share-blue { background: #0966d5; color: white; }
.op-share-color { background: linear-gradient(135deg,#932cc8,#d73565,#f7ac39); color: white; }
.op-share-feedback { padding: 0 12px 10px; margin: 0; }
.op-share-feedback:empty { display: none; }
.op-share-feedback input { width: 100%; }
#opProductPreview { padding-inline: clamp(6px, 1.4vw, 12px); }
.op-drawer-pricing { background: transparent; border: 0; text-align: start; color: #161616; padding: 5px; }
.op-drawer-pricing:hover { background: #f4f4f4; color: #161616; border-radius: 8px; }
.op-cart-price-body { padding: 10px 12px; }
.op-cart-price-body h3 { margin: 4px 0 8px; font-size: 16px; }
.op-price-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; margin-bottom: 12px; }
.op-price-carousel > div { scroll-snap-align: start; min-width: 0; font-weight: 700; font-size: 12px; }
.op-price-carousel img { width: 100%; height: 92px; object-fit: cover; }
.op-price-carousel small, .op-price-discount dd { color: #ab3d00; }
.op-price-lines { margin: 0; }
.op-price-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 0; border-top: 1px solid #eee; }
.op-price-lines dd { margin: 0; text-align: right; font-weight: 700; }
.op-price-grand-total { font-size: 19px; }
.op-price-actions { position: sticky; bottom: 0; color: #161616; padding: 8px 12px max(8px,env(safe-area-inset-bottom)); background: white; border-top: 1px solid #eee; }
.op-price-actions .op-drawer-checkout-cta { font-size: 14px; text-align: center; }
.woocommerce-cart .woocommerce-cart-form :is(td,.product-name,.product-name a,.product-name dl,.product-price,.product-subtotal), .woocommerce-cart .cart_totals :is(th,td) { background: transparent; }
#opMobileNav .op-nav-item { padding-top: 7px; }
#opMobileNav .op-nav-icon { margin-bottom: 4px; }
.op-contact-page :is(#masthead,.topbar,.entry-header) { display: none; }
.op-contact { max-width: 800px; margin-inline: auto; padding: 0 8px 20px; }
.op-contact section { border: 1px solid #ebebeb; border-radius: 12px; background: white; padding: 14px; margin-bottom: 12px; }
.op-contact section h2 { font-size: 18px; margin: 0 0 8px; }
.op-contact-faq details { padding: 10px 0; border-top: 1px solid #eee; }
.op-contact-faq summary { cursor: pointer; font-weight: 600; }
.op-contact-faq p { margin: 6px 0 0; }
.op-home-subcategories {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
    padding: 6px 2px; scrollbar-width: thin;
}
.op-home-subcategories button { flex: 0 0 82px; scroll-snap-align: start; min-width: 0; border: 0; border-radius: 0; background: transparent; color: #222; padding: 2px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.op-home-subcategories button[aria-pressed=true] { color: #ae3a03; font-weight: 700; }
.op-home-subcategories img { border-radius: 50%; }
.op-subcategory-all { display: grid; place-items: center; width: 62px; aspect-ratio: 1; border-radius: 50%; background: #f1f1f1; font-size: 20px; }
@media (max-width: 768px) {
    .op-category-explorer { margin-inline: calc(-1 * min(14px, 3vw)); padding-inline: 2px; }
    .op-category-explorer .op-cat-main-panel { padding-inline: 4px; }
    .op-category-explorer .op-cat-sidebar-item { padding-inline: 5px; }
    .woocommerce-cart .shop_table.cart tr.cart_item { grid-template-columns: minmax(94px, 37%) minmax(0, 1fr) 24px; column-gap: 5px; }
    .op-product-reviews { width: calc(100% + 16px); margin-inline: -8px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { .op-sheet[open] { animation: none; } }


/* Compact storefront spacing and bottom-sheet controls. */
.op-category-explorer .op-mobile-app-header { padding-top: 2px; }
.op-preview-title-toggle {
    display: grid; place-items: center; width: 28px; height: 24px; margin: 1px 0 4px;
    padding: 0; border: 0; border-radius: 8px; background: #f2f2f2; color: #222;
}
.op-preview-title-toggle svg, .op-total-ear svg {
    width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.op-preview-title-toggle[aria-expanded=true] svg, .op-total-ear-expanded svg { transform: rotate(180deg); }
#opPreviewTitle.op-preview-title-expanded { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
#opProductPreview form.cart .quantity.op-preview-quantity {
    width: auto; min-width: 0; max-width: 100%; min-height: 42px;
    padding: 0; align-items: stretch; border: 1px solid #d8d8d8; border-radius: 24px;
    background: #f4f4f4; color: #222; overflow: hidden;
}
#opProductPreview .op-preview-quantity > :not(input.qty, .op-preview-quantity-step, .screen-reader-text) { display: none !important; }
#opProductPreview form.cart .op-preview-quantity > input.qty {
    position: static !important; display: block !important; width: 42px !important; min-width: 42px;
    min-height: 40px; margin: 0; padding: 0; border: 0; background: #fff; color: #171717;
    box-shadow: none; opacity: 1; appearance: textfield; text-align: center; font-size: 15px;
}
#opProductPreview .op-preview-quantity > input.qty::-webkit-inner-spin-button,
#opProductPreview .op-preview-quantity > input.qty::-webkit-outer-spin-button { appearance: none; margin: 0; }
#opProductPreview form.cart .op-preview-quantity > .op-preview-quantity-step {
    position: static !important; display: grid !important; place-items: center; width: 42px;
    min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0;
    color: #171717; background: #f4f4f4; opacity: 1; box-shadow: none; font-size: 18px;
}
#opProductPreview .op-preview-quantity > :focus-visible { outline: 2px solid #a53a0b; outline-offset: -2px; }
#opStickyCheckoutDrawer .op-drawer-pricing, .op-price-actions .op-drawer-pricing { position: relative; }
.op-total-ear {
    position: absolute; left: 10px; bottom: calc(100% + 2px);
    display: grid; place-items: center; width: 34px; height: 17px;
    color: #191919; background: white; border: 1px solid #e0e0e0; border-bottom: 0;
    border-radius: 12px 12px 0 0; pointer-events: none;
}
.op-price-actions .op-total-ear { bottom: calc(100% + 6px); }
.op-benefit-icon { display: block; flex: 0 0 auto; width: 19px; height: 19px; }
.op-value-props-ribbon .op-benefit-icon { color: #087039; }
.op-trust-left .op-benefit-icon { width: 17px; height: 17px; }
@media (max-width: 768px) {
    .op-storefront-page :is(#content, .site-content, #primary, #main, .entry-content):has(.op-category-explorer) {
        padding-top: 0;
        margin-top: 0;
    }
    #opProductPreview, .op-sheet {
        width: min(calc(100% - 6px), 680px); max-width: none;
    }
    #opProductPreview { padding-inline: 3px; }
    .op-sheet-header, .op-share-offer, .op-share-product, .op-share-options,
    .op-cart-price-body, .op-price-actions { padding-inline: 3px; }
    .op-share-sku { margin-inline: 3px; }
}

