/* ============================================================
   RifCakeRG Quick Order — Frontend Styles v2
   ============================================================
   Color palette (matching the main RifCakeRG theme):
     --rc-espresso : #3B2314   (deep brown)
     --rc-rose     : #C17B7B   (dusty rose)
     --rc-gold     : #C9A96E   (warm gold)
     --rc-cream    : #FDF6EE   (off-white)
     --rc-blush    : #F5E6DC   (light blush)
     --rc-wa-green : #25D366   (WhatsApp green)
   ============================================================ */

:root {
    --rc-espresso: #3B2314;
    --rc-rose: #C17B7B;
    --rc-gold: #C9A96E;
    --rc-cream: #FDF6EE;
    --rc-blush: #F5E6DC;
    --rc-white: #FFFFFF;
    --rc-error: #D94848;
    --rc-success: #4CAF50;
    --rc-wa-green: #25D366;
    --rc-wa-dark: #128C7E;
    --rc-shadow: 0 8px 32px rgba(59, 35, 20, 0.12);
    --rc-shadow-lg: 0 16px 48px rgba(59, 35, 20, 0.18);
    --rc-radius: 16px;
    --rc-radius-sm: 10px;
    --rc-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────
 * WOOCOMMERCE PRODUCT PAGE — WhatsApp Button
 * ───────────────────────────────────────────── */

.rcqo-product-wa-wrap {
    width: 100%;
    margin-top: 12px;
    clear: both;
}

.rcqo-product-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--rc-white);
    background: linear-gradient(135deg, var(--rc-wa-green) 0%, var(--rc-wa-dark) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s var(--rc-transition),
                box-shadow 0.3s var(--rc-transition),
                filter 0.3s var(--rc-transition);
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.rcqo-product-wa-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.rcqo-product-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    filter: brightness(1.06);
}

.rcqo-product-wa-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
}

.rcqo-product-wa-btn svg {
    fill: var(--rc-white);
}

/* ─────────────────────────────────────────────
 * WOOCOMMERCE CART PAGE — WhatsApp Button
 * ───────────────────────────────────────────── */

.rcqo-cart-wa-wrap {
    margin-top: 14px;
    text-align: center;
}

.rcqo-cart-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 28px;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--rc-white);
    background: linear-gradient(135deg, var(--rc-wa-green) 0%, var(--rc-wa-dark) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s var(--rc-transition),
                box-shadow 0.3s var(--rc-transition),
                filter 0.3s var(--rc-transition);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    position: relative;
    overflow: hidden;
}

.rcqo-cart-wa-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.rcqo-cart-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    filter: brightness(1.06);
}

.rcqo-cart-wa-btn:active {
    transform: translateY(0);
}

.rcqo-cart-wa-btn svg {
    fill: var(--rc-white);
}

.rcqo-cart-wa-note {
    font-family: 'Jost', -apple-system, sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* ─────────────────────────────────────────────
 * WOOCOMMERCE MINI-CART — WhatsApp Button
 * ───────────────────────────────────────────── */

.rcqo-minicart-wa-wrap {
    padding: 4px 0 8px;
}

.rcqo-minicart-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    font-family: 'Jost', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-white);
    background: linear-gradient(135deg, var(--rc-wa-green) 0%, var(--rc-wa-dark) 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.rcqo-minicart-wa-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.rcqo-minicart-wa-btn svg {
    fill: var(--rc-white);
}


/* ═════════════════════════════════════════════
 * ORDER FORM — Modal + Shortcode
 * ═════════════════════════════════════════════ */

/* ─── Form wrapper ──────────────────────────── */

.rcqo-form-wrap {
    max-width: 640px;
    margin: 40px auto;
    background: var(--rc-white);
    border-radius: 18px;
    box-shadow: var(--rc-shadow);
    overflow: hidden;
    animation: rcqoFadeUp 0.6s var(--rc-transition) both;
    border: 1px solid rgba(201, 169, 110, 0.15);
}

.rcqo-ctx-modal .rcqo-form-wrap,
.rcqo-form-wrap.rcqo-ctx-modal {
    margin: 0;
    max-width: 100%;
    box-shadow: none;
    border: none;
}

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

/* ─── Form header ───────────────────────────── */

.rcqo-form-header {
    background: linear-gradient(135deg, var(--rc-espresso) 0%, #5A3A2A 100%);
    padding: 48px 32px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.rcqo-form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(201, 169, 110, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.rcqo-form-logo {
    font-size: 42px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
    animation: rcqoBounce 2s ease infinite;
}

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

.rcqo-form-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--rc-cream);
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.rcqo-form-subtitle {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(253, 246, 238, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* ─── Form body ─────────────────────────────── */

.rcqo-order-form {
    padding: 28px 32px 32px;
}

.rcqo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

.rcqo-field {
    margin-bottom: 18px;
}

.rcqo-field-full {
    margin-bottom: 18px;
}

.rcqo-field label {
    display: block;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-espresso);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.rcqo-req {
    color: var(--rc-rose);
    font-weight: 600;
}

/* ─── Inputs & Selects ──────────────────────── */

.rcqo-field input,
.rcqo-field select,
.rcqo-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--rc-espresso);
    background: var(--rc-cream);
    border: 1.5px solid rgba(201, 169, 110, 0.25);
    border-radius: var(--rc-radius-sm);
    outline: none;
    transition: border-color 0.3s var(--rc-transition),
                box-shadow 0.3s var(--rc-transition),
                background-color 0.3s var(--rc-transition);
    box-sizing: border-box;
}

.rcqo-field input:focus,
.rcqo-field select:focus,
.rcqo-field textarea:focus {
    border-color: var(--rc-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
    background: var(--rc-white);
}

.rcqo-field input::placeholder,
.rcqo-field textarea::placeholder {
    color: rgba(59, 35, 20, 0.35);
    font-weight: 300;
}

.rcqo-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.rcqo-field select {
    appearance: none;
    cursor: pointer;
    background-image: 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='%23C9A96E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ─── Phone prefix ──────────────────────────── */

.rcqo-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid rgba(201, 169, 110, 0.25);
    border-radius: var(--rc-radius-sm);
    overflow: hidden;
    transition: border-color 0.3s var(--rc-transition),
                box-shadow 0.3s var(--rc-transition);
    background: var(--rc-cream);
}

.rcqo-phone-wrap:focus-within {
    border-color: var(--rc-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
    background: var(--rc-white);
}

.rcqo-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-gold);
    background: rgba(201, 169, 110, 0.08);
    border-right: 1px solid rgba(201, 169, 110, 0.2);
    white-space: nowrap;
    user-select: none;
}

.rcqo-phone-wrap input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    flex: 1;
}

.rcqo-phone-wrap input:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

/* ─── Error messages ────────────────────────── */

.rcqo-error {
    display: block;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--rc-error);
    min-height: 18px;
    margin-top: 4px;
    transition: opacity 0.25s;
}

.rcqo-field.has-error input,
.rcqo-field.has-error select,
.rcqo-field.has-error textarea {
    border-color: var(--rc-error) !important;
    background: #FFF5F5 !important;
}

.rcqo-field.has-error .rcqo-phone-wrap {
    border-color: var(--rc-error) !important;
    background: #FFF5F5 !important;
}

/* ─── Submit button ─────────────────────────── */

.rcqo-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--rc-white);
    background: linear-gradient(135deg, var(--rc-wa-green) 0%, var(--rc-wa-dark) 100%);
    border: none;
    border-radius: var(--rc-radius-sm);
    cursor: pointer;
    transition: transform 0.2s var(--rc-transition),
                box-shadow 0.3s var(--rc-transition),
                filter 0.3s var(--rc-transition);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    position: relative;
    overflow: hidden;
}

.rcqo-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.rcqo-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    filter: brightness(1.05);
}

.rcqo-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.rcqo-submit-icon svg {
    display: block;
}

/* Spinner */
.rcqo-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--rc-white);
    border-radius: 50%;
    animation: rcqoSpin 0.6s linear infinite;
}

@keyframes rcqoSpin {
    to { transform: rotate(360deg); }
}

/* ─── Delivery note ─────────────────────────── */

.rcqo-delivery-note {
    text-align: center;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 12px;
    color: rgba(59, 35, 20, 0.5);
    margin: 16px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(201, 169, 110, 0.12);
}

.rcqo-delivery-note strong {
    color: var(--rc-espresso);
}

/* ─── Success state ─────────────────────────── */

.rcqo-success {
    text-align: center;
    padding: 48px 32px;
    animation: rcqoFadeUp 0.5s var(--rc-transition) both;
}

.rcqo-success-icon {
    font-size: 52px;
    margin-bottom: 16px;
    animation: rcqoBounce 1.5s ease infinite;
}

.rcqo-success h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--rc-espresso);
    margin: 0 0 8px;
}

.rcqo-success p {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 14px;
    color: rgba(59, 35, 20, 0.6);
    line-height: 1.6;
    margin: 0 0 24px;
}

.rcqo-btn-again {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-espresso);
    background: transparent;
    border: 1.5px solid var(--rc-gold);
    border-radius: var(--rc-radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--rc-transition);
}

.rcqo-btn-again:hover {
    background: var(--rc-gold);
    color: var(--rc-white);
}

/* ─── Floating button ───────────────────────── */

button.rcqo-floating-btn,
.rcqo-floating-btn {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    left: auto !important;
    top: auto !important;
    z-index: 999998 !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 22px !important;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--rc-white) !important;
    background: linear-gradient(135deg, var(--rc-espresso) 0%, #5A3A2A 100%) !important;
    border: none !important;
    border-radius: 60px !important;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(59, 35, 20, 0.3) !important;
    transition: transform 0.3s var(--rc-transition),
                box-shadow 0.3s var(--rc-transition);
    animation: rcqoFloatIn 0.8s var(--rc-transition) 1s both;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    text-transform: none !important;
    line-height: normal !important;
}

@keyframes rcqoFloatIn {
    from { opacity: 0; transform: translateY(40px) scale(0.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rcqo-floating-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 32px rgba(59, 35, 20, 0.4);
}

.rcqo-floating-btn:active {
    transform: scale(0.97);
}

.rcqo-floating-icon svg {
    display: block;
    stroke: var(--rc-gold);
}

.rcqo-floating-label {
    letter-spacing: 0.5px;
}

/* Pulse ring */
.rcqo-floating-pulse {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--rc-gold);
    animation: rcqoPulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes rcqoPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* ─── Modal overlay ─────────────────────────── */

.rcqo-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(59, 35, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: rcqoOverlayIn 0.35s var(--rc-transition) both;
    overflow-y: auto;
}

@keyframes rcqoOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.rcqo-modal {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    background: var(--rc-white);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(26, 18, 8, 0.25),
               0 0 0 1px rgba(201, 169, 110, 0.15);
    animation: rcqoModalIn 0.45s var(--rc-transition) both;
    overflow: hidden;          /* clips children to rounded corners */
    display: flex;
    flex-direction: column;
}

/* Scrollable body inside modal */
.rcqo-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

@keyframes rcqoModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Close button — absolutely positioned, never scrolls away */
.rcqo-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 20;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--rc-cream);
    font-size: 17px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s var(--rc-transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rcqo-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.08);
}

.rcqo-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Custom scrollbar for the scrollable body */
.rcqo-modal-body::-webkit-scrollbar {
    width: 5px;
}
.rcqo-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.rcqo-modal-body::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.3);
    border-radius: 10px;
}

/* ─── Responsive ────────────────────────────── */

@media (max-width: 600px) {
    .rcqo-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rcqo-form-header {
        padding: 28px 20px 22px;
    }

    .rcqo-form-title {
        font-size: 22px;
    }

    .rcqo-order-form {
        padding: 22px 20px 26px;
    }

    button.rcqo-floating-btn,
    .rcqo-floating-btn {
        bottom: 80px !important;
        right: 16px !important;
        padding: 12px 18px !important;
        font-size: 13px !important;
    }

    .rcqo-modal {
        max-height: 95vh;
        border-radius: 14px;
    }

    .rcqo-modal-overlay {
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .rcqo-floating-label {
        display: none;
    }

    button.rcqo-floating-btn,
    .rcqo-floating-btn {
        bottom: 80px !important;
        right: 14px !important;
        padding: 14px !important;
        border-radius: 50% !important;
    }
}

/* ─── WooCommerce cart auto-fill highlight ──── */

.rcqo-autofill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--rc-gold);
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
    margin-bottom: 8px;
}

.rcqo-autofill-badge::before {
    content: '🛒';
}

/* ============================================================
   PRODUCT PAGE — Premium Polish
   ============================================================ */

/* ─── Breadcrumbs (product page only) ──────── */

.single-product .woocommerce-breadcrumb {
    font-family: 'Jost', 'Segoe UI', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--rc-rose) !important;
}

.single-product .woocommerce-breadcrumb a {
    color: var(--rc-gold) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: var(--rc-espresso) !important;
}

/* ─── Product Title ──────────────────────────── */

.single-product div.product .product_title,
.single-product .summary .product_title {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--rc-espresso) !important;
    letter-spacing: -0.3px;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
}

/* ─── Price — Gold accent badge ──────────────── */

.single-product div.product p.price,
.single-product div.product span.price {
    font-family: 'Jost', 'Segoe UI', sans-serif !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: var(--rc-gold) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 18px !important;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(201, 169, 110, 0.15) 100%);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 12px;
    margin-bottom: 20px !important;
}

.single-product div.product p.price .woocommerce-Price-amount,
.single-product div.product span.price .woocommerce-Price-amount {
    color: var(--rc-espresso) !important;
    font-weight: 700 !important;
}

.single-product div.product p.price .woocommerce-Price-currencySymbol,
.single-product div.product span.price .woocommerce-Price-currencySymbol {
    font-size: 18px;
    color: var(--rc-gold) !important;
    font-weight: 400;
}

/* ─── Quantity selector ──────────────────────── */

.single-product div.product form.cart .quantity {
    border: 2px solid var(--rc-blush) !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: var(--rc-cream);
}

.single-product div.product form.cart .quantity input.qty {
    background: transparent !important;
    border: none !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--rc-espresso) !important;
}

.single-product div.product form.cart .quantity .plus,
.single-product div.product form.cart .quantity .minus {
    background: transparent !important;
    color: var(--rc-espresso) !important;
    font-size: 18px !important;
    border: none !important;
    transition: background 0.2s ease;
}

.single-product div.product form.cart .quantity .plus:hover,
.single-product div.product form.cart .quantity .minus:hover {
    background: var(--rc-blush) !important;
}

/* ─── Add to Cart button ─────────────────────── */

.single-product div.product .single_add_to_cart_button,
.single-product div.product button.single_add_to_cart_button {
    background: linear-gradient(135deg, var(--rc-espresso) 0%, #5A3A2A 100%) !important;
    color: var(--rc-white) !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    transition: transform 0.2s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(59, 35, 20, 0.2) !important;
}

.single-product div.product .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(59, 35, 20, 0.3) !important;
}

/* ─── Product image ──────────────────────────── */

.single-product div.product .woocommerce-product-gallery {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(59, 35, 20, 0.1);
}

.single-product div.product .woocommerce-product-gallery img {
    border-radius: 0 !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.single-product div.product .woocommerce-product-gallery:hover img {
    transform: scale(1.03);
}

/* ─── Category & Meta ────────────────────────── */

.single-product div.product .product_meta {
    font-family: 'Jost', sans-serif !important;
    font-size: 13px !important;
    color: #8B7355 !important;
    padding-top: 16px !important;
    margin-top: 16px !important;
    border-top: 1px solid var(--rc-blush) !important;
}

.single-product div.product .product_meta a {
    color: var(--rc-gold) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.single-product div.product .product_meta a:hover {
    color: var(--rc-espresso) !important;
}

.single-product div.product .tagged_as,
.single-product div.product .posted_in {
    display: block;
    margin-bottom: 4px;
}

/* ─── Compare / Wishlist ─────────────────────── */

.single-product .wd-action-btn a,
.single-product .compare-btn a,
.single-product .woodmart-wishlist-btn a {
    font-family: 'Jost', sans-serif !important;
    font-size: 13px !important;
    color: #8B7355 !important;
    transition: color 0.2s ease !important;
}

.single-product .wd-action-btn a:hover,
.single-product .compare-btn a:hover,
.single-product .woodmart-wishlist-btn a:hover {
    color: var(--rc-espresso) !important;
}

/* ─── Share icons ────────────────────────────── */

.single-product .wd-product-share .social-icons a {
    color: #8B7355 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.single-product .wd-product-share .social-icons a:hover {
    color: var(--rc-gold) !important;
    transform: scale(1.15);
}

/* ─── Short description ──────────────────────── */

.single-product div.product .woocommerce-product-details__short-description {
    font-family: 'Jost', 'Segoe UI', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #5A4636 !important;
    padding: 14px 18px !important;
    background: linear-gradient(135deg, var(--rc-cream) 0%, var(--rc-blush) 100%);
    border-left: 3px solid var(--rc-gold);
    border-radius: 0 10px 10px 0;
    margin-bottom: 20px !important;
}

/* ─── Trust Badges ───────────────────────────── */

.rcqo-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    padding: 0;
}

.rcqo-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(253, 246, 238, 0.9) 0%, rgba(245, 230, 220, 0.7) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rcqo-trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 35, 20, 0.08);
    border-color: rgba(201, 169, 110, 0.4);
}

.rcqo-trust-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.rcqo-trust-label {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--rc-espresso);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ─── Product tabs ───────────────────────────── */

.single-product .woocommerce-tabs .tabs li a {
    font-family: 'Jost', sans-serif !important;
    font-weight: 500 !important;
    color: #8B7355 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
}

.single-product .woocommerce-tabs .tabs li.active a {
    color: var(--rc-espresso) !important;
    border-bottom-color: var(--rc-gold) !important;
}

/* ─── Related Products ───────────────────────── */

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--rc-espresso) !important;
    text-align: center !important;
    margin-bottom: 24px !important;
}

/* ─── Related product cards (single product page only) ─── */

.single-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
.single-product .woocommerce ul.products li.product h3 {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--rc-espresso) !important;
}

.single-product .woocommerce ul.products li.product .price {
    color: var(--rc-gold) !important;
    font-family: 'Jost', sans-serif !important;
    font-weight: 600 !important;
}


/* ─── Mobile responsive ──────────────────────── */

@media (max-width: 768px) {
    .single-product div.product .product_title,
    .single-product .summary .product_title {
        font-size: 24px !important;
    }

    .single-product div.product p.price,
    .single-product div.product span.price {
        font-size: 22px !important;
        padding: 6px 14px !important;
    }

    .rcqo-trust-badges {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .rcqo-trust-badge {
        padding: 10px 12px;
    }

    .rcqo-trust-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .rcqo-trust-badges {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   HOMEPAGE — Visual Polish
   ============================================================ */

/* ─── Fix white space around hero on all devices ── */

/* The WoodMart wrapper: main.wd-content-layout.container adds top padding */
body.home .wd-content-layout.container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.home .wd-content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Elementor Container (e-con) — the hero section */
body.home .elementor > .e-con:first-child,
body.home .elementor > .e-con.wd-section-stretch:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Also handle old section layout just in case */
body.home .elementor > .elementor-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove gap between hero and next section */
body.home .elementor > .e-con:first-child + .e-con {
    margin-top: 0 !important;
}


/* ─── Category Banners — Rounded & Hover ─────── */

.wd-banner {
    border-radius: 14px !important;
    overflow: hidden !important;
    transition: transform 0.4s var(--rc-transition),
                box-shadow 0.4s var(--rc-transition) !important;
}

.wd-banner:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 42px rgba(59, 35, 20, 0.15) !important;
}

.wd-banner img {
    transition: transform 0.6s var(--rc-transition) !important;
}

.wd-banner:hover img {
    transform: scale(1.05) !important;
}

/* Banner text overlay */
.wd-banner .banner-title {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}

.wd-banner .banner-subtitle {
    font-family: 'Jost', sans-serif !important;
    color: var(--rc-gold) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2) !important;
}

/* ─── Section Headings ───────────────────────── */

body.home .elementor-widget-heading .elementor-heading-title {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    color: var(--rc-espresso) !important;
}

/* Gold subtitle labels ("MEILLEURES VENTES", "PARCOURIR PAR CATÉGORIE") */
body.home .elementor-widget-heading .elementor-heading-title[style*="letter-spacing"] {
    font-family: 'Jost', sans-serif !important;
    color: var(--rc-gold) !important;
}

/* ─── Category Grid Cards ────────────────────── */

body.home .wd-cat .wd-entities-title {
    font-family: 'Jost', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--rc-espresso) !important;
}

/* ─── "Voir Tous les Produits" Link ──────────── */

body.home .elementor-widget-text-editor a[href*="boutique"],
body.home .elementor-widget-text-editor a[href*="shop"] {
    font-family: 'Jost', sans-serif !important;
    color: var(--rc-gold) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    transition: color 0.2s ease !important;
}

body.home .elementor-widget-text-editor a[href*="boutique"]:hover,
body.home .elementor-widget-text-editor a[href*="shop"]:hover {
    color: var(--rc-espresso) !important;
}

/* ─── Homepage Mobile Responsive ─────────────── */

@media (max-width: 768px) {
    /* Kill all top/bottom padding on hero section */
    body.home .elementor-section-wrap > .elementor-section:first-child,
    body.home .elementor > .elementor-section:first-child {
        padding: 0 !important;
        margin: 0 !important;
    }

    body.home .elementor-section-wrap > .elementor-section:first-child .elementor-container,
    body.home .elementor > .elementor-section:first-child .elementor-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .wd-banner {
        border-radius: 10px !important;
    }

    .wd-banner:hover {
        transform: translateY(-3px) !important;
    }
}
