/* =========================================================
   Culina Custom – Store Menu (3-Step Flow)
   (Brand tokens are defined in cucu-tokens.css)
   ========================================================= */

/* ---- Page Shell ------------------------------------------ */
.cucu-menu-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 140px;
    font-family: var(--cucu-font) !important;
    box-sizing: border-box;
    position: relative;
    background: #fcfcfc;
}

/* Ensure Poppins cascades to all children */
.cucu-menu-page *:not(.dashicons) {
    font-family: inherit;
}

/* Hide standard page title and other theme junk */
.entry-title, 
.entry-header,
.page-title,
.post-title,
.woocommerce-products-header,
.woocommerce-breadcrumb {
    display: none !important;
}

.cucu-menu-page * {
    box-sizing: border-box;
}

/* ---- Step Progress Bar (Sticky) -------------------------- */
.cucu-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    row-gap: 12px;
    background: #fff;
    padding: 14px 20px;
    margin: 0 -20px 24px;
}

.cucu-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cucu-menu-page .cucu-step.active,
.cucu-menu-page .cucu-step.done {
    color: var(--cucu-primary);
}

.cucu-step.done:hover,
.cucu-step[style*="cursor: pointer"]:hover {
    opacity: 0.8;
}

.cucu-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cucu-menu-page .cucu-step.active .cucu-step-num {
    background: var(--cucu-primary);
    color: #fff;
    border-color: var(--cucu-primary);
}

.cucu-step-connector {
    flex: 1;
    min-width: 40px;
    max-width: 80px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    border-radius: 2px;
    position: relative;
}

.cucu-step-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cucu-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.cucu-step-connector.filled::after {
    transform: scaleX(1);
}

/* ---- Store header ---------------------------------------- */
.cucu-store-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    margin-bottom: 32px;
}

.cucu-store-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--cucu-primary-tint);
}

.cucu-store-name {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cucu-store-subtitle {
    margin: 0 !important;
    margin-bottom: 16px !important;
    font-size: 0.88rem;
    color: #777;
}

.cucu-menu-page .cucu-btn-visit-chef {
    background: var(--cucu-primary) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s ease;
    text-decoration: none !important;
}

.cucu-menu-page .cucu-btn-visit-chef:hover {
    background: var(--cucu-primary-dark) !important;
    color: #fff;
}

/* ---- Step Panel (shared) --------------------------------- */
.cucu-step-panel {
    display: none;
    animation: cucuFadeIn 0.35s ease;
}

.cucu-step-panel.active {
    display: block;
}

@keyframes cucuFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cucu-panel-title {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cucu-panel-subtitle {
    margin: 0 0 28px;
    font-size: 0.9rem;
    color: #888;
}

/* ---- Back button (hidden, replaced by footer back btn) --- */
.cucu-back-btn {
    display: none !important;
}

/* ---- Footer back button ---------------------------------- */
.cucu-footer-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    border: none;
    border-radius: 50px;
    padding: 12px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: background 0.2s;
}
.cucu-footer-back-btn:hover {
    background: #e0e0e0;
}

/* ---- Primary CTA button ---------------------------------- */
.cucu-menu-page .cucu-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cucu-primary) !important;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s;
}

.cucu-menu-page .cucu-btn-primary svg {
    width: 18px;
    height: 18px;
}

.cucu-menu-page .cucu-btn-primary:hover:not(:disabled) {
    background: var(--cucu-primary-dark) !important;
    color: #fff;
    text-decoration: none;
}

.cucu-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── STEP 1 – Category grid ──────────────────────────────── */
.cucu-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 8px;
}

@media (max-width: 820px) {
    .cucu-categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .cucu-categories-grid { grid-template-columns: 1fr; }
}

.cucu-category-card {
    background: #fff !important;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    outline: none;
    padding: 0;
}

.cucu-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

.cucu-category-card.selected {
    box-shadow: 0 0 0 2.5px var(--cucu-primary), 0 8px 24px rgba(238,79,9,0.18);
}

.cucu-category-card.selected::after {
    content: '✓ Selected';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--cucu-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Image area */
.cucu-cat-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #f0ece8;
}

.cucu-cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}


.cucu-category-card:hover .cucu-cat-card-img {
    transform: scale(1.04);
}

/* Body */
.cucu-cat-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cucu-cat-card-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.cucu-cat-card-count {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
}

.cucu-cat-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--cucu-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: gap 0.2s;
}

.cucu-cat-card-cta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.cucu-category-card:hover .cucu-cat-card-cta {
    gap: 8px;
}

.cucu-category-card:hover .cucu-cat-card-cta .dashicons {
    transform: translateX(3px);
}

.cucu-empty-notice {
    text-align: center;
    color: #aaa;
    padding: 60px 0;
}

/* ── STEP 2 – Plan info bar (sticky, below steps-bar) ───── */
.cucu-step2-planbar {
    display: none; /* shown only when step-2 is active via JS */
    top: 61px; /* height of steps-bar */
    z-index: 150;
    background: #fcfcfc;
    color: #1a1a1a;
    padding: 12px 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e8e4dc;
}

.cucu-step-panel.active #cucu-step2-planbar,
.cucu-step2-planbar.visible {
    display: flex;
}

/* Left side – Delivery City block */
.cucu-planbar-left {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.cucu-delivery-city-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cucu-delivery-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a1a;
}
.cucu-delivery-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cucu-primary);
    margin-bottom: 2px;
}
.cucu-delivery-change-btn {
    background: #fff !important;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    width: max-content;
    transition: all 0.2s;
}
.cucu-delivery-change-btn:hover {
    border-color: #1a1a1a;
}
.cucu-delivery-change-btn svg {
    width: 10px;
    height: 10px;
}

/* Right side – Your Plan / Your Order boxes */
.cucu-planbar-right {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}
.cucu-planbar-plan-block-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cucu-plan-summary-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 150px;
}
.cucu-plan-summary-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cucu-plan-summary-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a1a;
}
.cucu-plan-summary-meals {
    font-size: 0.8rem;
    color: var(--cucu-primary);
    font-weight: 500;
}
.cucu-plan-summary-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 4px;
}
.cucu-planbar-edit-btn {
    background: transparent !important;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 2px;
    display: flex;
    align-items: center;
    outline: none !important;
}
.cucu-planbar-edit-btn:hover { color: #1a1a1a; }
.cucu-planbar-edit-btn svg {
    width: 14px;
    height: 14px;
}

.cucu-order-badge {
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 150px;
    background: var(--cucu-primary);
}

.cucu-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.cucu-badge-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}
.cucu-badge-count {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 400;
}
.cucu-badge-avatars {
    display: flex;
    margin-top: 6px;
    align-items: center;
}
.cucu-badge-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: -4px; /* overlap slightly */
    object-fit: cover;
    border: 1px solid #fff;
    position: relative;
}
.cucu-badge-avatar:last-child {
    margin-right: 0;
}
.cucu-badge-chevron {
    width: 16px;
    height: 16px;
    stroke: rgba(255,255,255,1);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── STEP 2 – Filters / Sort toolbar ────────────────────── */
.cucu-toolbar {
    display: none; /* shown via JS when step-2 is active */
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cucu-toolbar.visible {
    display: flex;
}

.cucu-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cucu-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.cucu-toolbar-btn svg {
    width: 14px;
    height: 14px;
    stroke: #555;
    flex-shrink: 0;
}

.cucu-toolbar-btn:hover {
    border-color: #888;
    background: #f6f6f6;
}

.cucu-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cucu-sortby-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.cucu-sortby-wrap label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.cucu-sortby-select {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    padding-right: 18px;
    font-family: inherit;
    outline: none;
}

.cucu-sortby-chevron {
    width: 14px;
    height: 14px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    stroke: #333;
}

/* ── STEP 2 – Products grid ──────────────────────────────── */
.cucu-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    min-height: 200px;
    position: relative;
    padding-bottom: 90px; /* room for sticky footer */
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .cucu-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
    .cucu-products-grid { grid-template-columns: repeat(1, 1fr); }
}

/* Loading spinner */
.cucu-loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cucu-loading-spinner span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cucu-primary);
    animation: cucuBounce 1s infinite ease-in-out;
}

.cucu-loading-spinner span:nth-child(2) { animation-delay: 0.15s; }
.cucu-loading-spinner span:nth-child(3) { animation-delay: 0.30s; }

@keyframes cucuBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1; }
}

.cucu-loading-spinner.hidden { display: none; }

/* Product card */
.cucu-product-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.cucu-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.11);
}

/* Image wrapper for tagging */
.cucu-product-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.cucu-product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* "KETO" style tag */
.cucu-product-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
}

.cucu-product-card-body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cucu-product-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2px;
    line-height: 1.25;
}

.cucu-product-card-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cucu-primary);
    margin-bottom: 8px;
}

.cucu-product-card-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Meta tags: cuisine / protein / spice */
.cucu-product-card-meta {
    font-size: 0.75rem;
    font-weight: 800; /* As requested matching screenshot */
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* Added variations list inside Step 2 card */
.cucu-added-variations-list {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cucu-added-variation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #444;
    background: #fdfaf7;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid var(--cucu-primary);
}

.cucu-added-variation-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.cucu-added-variation-qty {
    font-weight: 800;
    color: var(--cucu-primary);
    flex-shrink: 0;
}

/* Actions row: [qty stepper / ADD TO ORDER btn]  [VIEW link] */
.cucu-product-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.cucu-add-btn {
    flex: 1;
    background: #000 !important;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
    letter-spacing: 0.02em;
}

.cucu-add-btn:hover {
    transform: scale(1.02);
}

.cucu-view-link {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1a1a1a;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
    text-decoration: none !important;
}

.cucu-view-link:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Qty stepper (replaces Add btn upon selection) */
.cucu-qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 1.5px solid #1a1a1a;
    border-radius: 50px;
    padding: 2px;
    flex: 1;
}

.cucu-qty-btn {
    background: transparent !important;
    outline: none !important;
    border: none;
    color: #1a1a1a !important;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 6px 14px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
}

.cucu-qty-btn:hover { opacity: 0.7; }

.cucu-qty-value {
    font-size: 0.85rem;
    color: #1a1a1a;
    font-weight: 600;
}
.cucu-qty-value strong {
    font-weight: 800;
    font-size: 0.95rem;
}

/* Step 2 sticky bottom bar */
.cucu-step2-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 180;
    gap: 12px;
    border-top: 1px solid #e6e6e6;
}

/* Only show when step 2 is active */
.cucu-step2-footer.hidden {
    display: none;
}

.cucu-footer-left {
    flex: 1;
}

.cucu-footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cucu-footer-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

/* Item count in footer center */
.cucu-items-count {
    font-size: 0.95rem;
    font-weight: 700;
    color: #555;
}

/* Pricing group */
.cucu-footer-pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.cucu-footer-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cucu-primary);
}

/* Continue button */
.cucu-menu-page .cucu-btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cucu-primary) !important;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.cucu-menu-page .cucu-btn-continue:hover:not(:disabled) {
    background: var(--cucu-primary-darker) !important;
}

.cucu-btn-continue:disabled {
    background: #dcdcdc !important;
    color: #a0a0a0 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* ── STEP 3 – Checkout ────────────────────────────────────── */
.cucu-step3-top {
    margin-bottom: 8px;
}

.cucu-step3-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 820px) {
    .cucu-step3-layout {
        grid-template-columns: 1fr;
    }
}

/* Form */
.cucu-checkout-form-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 28px;
}

.cucu-form-section {
    margin-bottom: 28px;
}

.cucu-form-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f0f0f0;
}

.cucu-form-row {
    margin-bottom: 16px;
}

.cucu-form-row label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.cucu-form-row input,
.cucu-form-row textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #fafafa;
}

.cucu-menu-page .cucu-form-row input:focus,
.cucu-menu-page .cucu-form-row textarea:focus {
    border-color: var(--cucu-primary) !important;
    background: #fff;
}

.cucu-form-row textarea { resize: vertical; }

.cucu-logged-in-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cucu-primary-tint);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--cucu-primary-text);
    font-weight: 500;
}

.cucu-logged-in-notice svg {
    width: 20px;
    height: 20px;
    stroke: var(--cucu-primary);
    flex-shrink: 0;
}

.cucu-btn-place-order {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    margin-top: 8px;
}

/* Order sidebar */
.cucu-order-sidebar {
    position: sticky;
    top: 90px;
}

.cucu-order-sidebar-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 24px;
}

.cucu-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cucu-sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    display: none;
}

@media (max-width: 820px) {
    .cucu-sidebar-toggle { display: flex; }
}

.cucu-sidebar-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.cucu-order-items-list {
    border-top: 1.5px solid #f0f0f0;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.cucu-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cucu-order-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cucu-order-item-info {
    flex: 1;
}

.cucu-order-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px;
}

.cucu-order-item-qty {
    font-size: 0.78rem;
    color: #999;
    margin: 0;
}

.cucu-order-item-subtotal {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 0;
}

/* Totals */
.cucu-order-totals {
    border-top: 1.5px solid #f0f0f0;
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cucu-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #555;
}

.cucu-grand-total {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 1.5px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 4px;
}

.cucu-free-tag { color: #2a9d5c; font-weight: 600; }

/* ── Success Overlay ─────────────────────────────────────── */
.cucu-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: cucuFadeIn 0.3s ease;
}

.cucu-success-overlay[hidden] { display: none; }

.cucu-success-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: cucuSlideUp 0.4s ease;
}

@keyframes cucuSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cucu-success-icon svg {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}

.cucu-success-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.cucu-success-card p {
    font-size: 0.92rem;
    color: #666;
    margin: 0 0 24px;
}

/* ── City Modal ─────────────────────────────────────── */
.cucu-city-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cucu-city-modal-overlay[hidden] {
    display: none;
}
.cucu-city-modal-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.cucu-city-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.cucu-city-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none !important;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #666 !important;
}
.cucu-city-modal-card h3 {
    margin: 0 0 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 780px) {
    .cucu-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .cucu-step-label { display: none; }
    .cucu-steps-bar  { gap: 0; }
    .cucu-step2-footer {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 12px 16px;
    }
    .cucu-footer-center {
        grid-column: 1 / -1;
        order: -1;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 4px;
    }
    .cucu-footer-left { grid-column: 1; }
    .cucu-footer-right { grid-column: 2; }
    .cucu-step2-planbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        top: 57px;
        padding: 10px 16px;
    }
    .cucu-planbar-right { width: 100%; }
    .cucu-order-badge { width: 100%; box-sizing: border-box; }
    .cucu-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .cucu-toolbar-right { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════
   Product type badges (Variable / External / Grouped)
   ══════════════════════════════════════════════════════════════════ */
.cucu-product-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
    pointer-events: none;
}

.cucu-type-variable {
    background: var(--cucu-primary);
    color: #fff;
}

.cucu-type-external {
    background: var(--cucu-secondary);
    color: #fff;
}

.cucu-type-grouped {
    background: var(--cucu-secondary);
    color: #fff;
    opacity: 0.9;
}

/* ── External product card tweaks ───────────────────────────────── */
.cucu-product-card--external {
    opacity: 0.93;
    border: 2px dashed var(--cucu-primary-tint);
}

.cucu-external-buy-btn {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cucu-external-notice {
    font-size: 0.74rem;
    color: #94a3b8;
    margin: 8px 0 0;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

/* ── Out-of-stock badge ──────────────────────────────────────────── */
.cucu-type-out-of-stock {
    background: #6b7280;
    color: #fff;
    top: 10px;
    left: 10px;
    right: auto; /* override default right: 10px so it doesn't clash with external badge */
}

/* ── Unavailable product card (out-of-stock or not purchasable) ── */
.cucu-product-card--unavailable {
    opacity: 0.72;
}

.cucu-product-card--unavailable .cucu-product-card-img {
    filter: grayscale(40%);
}

/* ── Disabled add-to-cart button state ───────────────────────────── */
.cucu-add-btn--disabled,
.cucu-add-btn[disabled] {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    border: none !important;
    box-shadow: none !important;
}

.cucu-add-btn--disabled:hover,
.cucu-add-btn[disabled]:hover {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    transform: none !important;
}


/* ── "Choose Options" button variant ────────────────────────────── */
.cucu-choose-options-btn {
    background: var(--cucu-primary) !important;
}

.cucu-choose-options-btn:hover {
    background: var(--cucu-primary-dark) !important;
}

/* ══════════════════════════════════════════════════════════════════
   VARIATION PICKER MODAL
   ══════════════════════════════════════════════════════════════════ */
.cucu-variation-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cucu-variation-modal-overlay[hidden] {
    display: none;
}

.cucu-variation-modal-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.cucu-variation-modal-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    width: 92%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: cucuSlideUp 0.3s ease;
}

.cucu-variation-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none !important;
    border: none;
    font-size: 1.6rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: color 0.2s;
}

.cucu-variation-modal-close:hover { color: #1a1a1a; }

/* Header: image + name + price */
.cucu-variation-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cucu-variation-modal-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: #f0ece8;
    transition: src 0.2s;
}

.cucu-variation-modal-meta {
    flex: 1;
    min-width: 0;
}

.cucu-variation-modal-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.25;
}

.cucu-variation-modal-price {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cucu-primary);
}

/* Body: attribute selector groups */
.cucu-variation-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.cucu-variation-attr-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cucu-variation-attr-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cucu-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cucu-variation-option-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #ddd;
    background: #fafafa !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    font-family: inherit;
}

.cucu-variation-option-btn:hover {
    border-color: var(--cucu-primary);
    color: var(--cucu-primary);
}

.cucu-variation-option-btn.selected {
    background: var(--cucu-primary) !important;
    border-color: var(--cucu-primary) !important;
    color: #fff !important;
}

/* Unavailable / out-of-stock combination — visually crossed out */
.cucu-variation-option-btn:disabled,
.cucu-variation-option-btn.cucu-variation-option-disabled {
    opacity: 0.38;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #ddd;
    background: #fafafa;
    color: #aaa;
}


.cucu-variation-none {
    color: #aaa;
    font-size: 0.88rem;
    text-align: center;
    padding: 20px 0;
}

/* Footer: qty + add btn */
.cucu-variation-modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f0f0;
}

.cucu-variation-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #1a1a1a;
    border-radius: 50px;
    padding: 2px 4px;
    gap: 4px;
    flex-shrink: 0;
}

.cucu-variation-qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cucu-btn-add-variation {
    flex: 1;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: background 0.2s, opacity 0.2s;
}

/* Brief "Added ✓" confirmation state */
.cucu-btn-add-variation:disabled {
    background: var(--cucu-secondary) !important;
    opacity: 0.9 !important;
    cursor: default !important;
}

/* Validation notice */
.cucu-variation-modal-notice {
    margin: 0;
    padding: 0 24px 16px;
    font-size: 0.82rem;
    color: #e53e3e;
    font-weight: 600;
    text-align: center;
}

.cucu-variation-modal-notice[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .cucu-variation-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .cucu-variation-modal-footer {
        flex-direction: column;
    }
    .cucu-btn-add-variation { width: 100%; }
}

/* "Already added" section inside the variation modal */
.cucu-modal-added-variations {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cucu-modal-added-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px;
}

.cucu-modal-added-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfaf7;
    border-left: 3px solid var(--cucu-primary);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: #333;
}

.cucu-modal-added-name {
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.cucu-modal-added-qty {
    font-weight: 800;
    color: var(--cucu-primary);
    flex-shrink: 0;
}
