/* ═══════════════════════════════════════════════════════════════
   ULTRA MEGA PREMIUM CART DRAWER v2.0
   ═══════════════════════════════════════════════════════════════ */

/* CSS Variables for easy theming */
:root {
    --drawer-primary: #6F7F63;
    --drawer-primary-dark: #5A6B50;
    --drawer-primary-darker: #4A5A42;
    --drawer-accent-gold: #C9A962;
    --drawer-bg: #FDFCFA;
    --drawer-bg-card: #FFFFFF;
    --drawer-text-dark: #2E3828;
    --drawer-text-muted: #777;
    --drawer-shadow-soft: rgba(0, 0, 0, 0.06);
    --drawer-shadow-medium: rgba(0, 0, 0, 0.12);
}

#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    max-width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    visibility: hidden;
    transition: visibility 0s linear 0.5s;
}

#cart-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
}

/* ─────────────────────────────────────────────────────────────────
   OVERLAY - Premium Frosted Glass
   ───────────────────────────────────────────────────────────────── */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cart-drawer.is-open .cart-drawer-overlay {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────
   DRAWER PANEL - Elegant Slide
   ───────────────────────────────────────────────────────────────── */
.cart-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 50%, #F8F6F2 100%);
    box-shadow:
        -30px 0 80px rgba(0, 0, 0, 0.18),
        -8px 0 30px rgba(0, 0, 0, 0.08),
        0 0 1px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#cart-drawer.is-open .cart-drawer-content {
    transform: translateX(0);
}

/* ─────────────────────────────────────────────────────────────────
   HEADER - Luxurious & Clean
   ───────────────────────────────────────────────────────────────── */
.cart-drawer-header {
    padding: 28px 32px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Premium gold accent line */
.cart-drawer-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 169, 98, 0.4) 20%,
        rgba(201, 169, 98, 0.6) 50%,
        rgba(201, 169, 98, 0.4) 80%,
        transparent 100%);
}

.cart-drawer-header h3 {
    margin: 0;
    color: var(--drawer-text-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Elegant cart icon */
.cart-drawer-header h3::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--drawer-primary) 0%, var(--drawer-primary-dark) 100%);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

.close-drawer {
    background: rgba(0, 0, 0, 0.03);
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.close-drawer:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #666;
    transform: rotate(90deg);
}

.close-drawer svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* ─────────────────────────────────────────────────────────────────
   CONTENT AREA - Smooth Scrolling
   ───────────────────────────────────────────────────────────────── */
.widget_shopping_cart_content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 127, 99, 0.25) transparent;
}

.widget_shopping_cart_content::-webkit-scrollbar {
    width: 5px;
}

.widget_shopping_cart_content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

.widget_shopping_cart_content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(111, 127, 99, 0.3), rgba(111, 127, 99, 0.15));
    border-radius: 10px;
}

.widget_shopping_cart_content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(111, 127, 99, 0.5), rgba(111, 127, 99, 0.3));
}

/* ─────────────────────────────────────────────────────────────────
   CART ITEMS - Premium Card Design
   ───────────────────────────────────────────────────────────────── */
.woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Cart Item Container */
.woocommerce-mini-cart-item,
.woocommerce-mini-cart .mini_cart_item {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 95px 1fr 40px !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 18px !important;
    row-gap: 6px !important;
    align-items: start !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    background: linear-gradient(135deg, #FFFFFF 0%, #FDFCFA 100%) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(111, 127, 99, 0.1) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.woocommerce-mini-cart-item:hover,
.mini_cart_item:hover {
    border-color: rgba(111, 127, 99, 0.2) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(111, 127, 99, 0.08) !important;
    transform: translateY(-2px) !important;
}

.woocommerce-mini-cart-item:last-child {
    margin-bottom: 0 !important;
}

/* Product Link - Contains Image + Name */
.woocommerce-mini-cart-item > a:not(.remove),
.mini_cart_item > a:not(.remove) {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 18px !important;
    text-decoration: none !important;
    color: var(--drawer-text-dark) !important;
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    transition: color 0.25s ease !important;
}

.woocommerce-mini-cart-item > a:not(.remove):hover {
    color: var(--drawer-primary) !important;
}

/* Product Image - Premium Styling */
.woocommerce-mini-cart-item > a:not(.remove) img,
.mini_cart_item > a:not(.remove) img {
    width: 95px !important;
    height: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(111, 127, 99, 0.08) !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.woocommerce-mini-cart-item:hover > a:not(.remove) img,
.mini_cart_item:hover > a:not(.remove) img {
    transform: scale(1.02) !important;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(111, 127, 99, 0.12) !important;
}

/* Quantity & Price */
.woocommerce-mini-cart-item .quantity,
.mini_cart_item .quantity {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: "Inter", -apple-system, sans-serif !important;
    font-size: 0.9rem !important;
    color: #999 !important;
    margin-top: 8px !important;
}

.woocommerce-mini-cart-item .quantity .amount,
.mini_cart_item .quantity .amount {
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: var(--drawer-primary) !important;
    letter-spacing: -0.5px !important;
}

/* Variation Badge - Elegant Pill */
.woocommerce-mini-cart-item .variation,
.mini_cart_item .variation {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin-top: 6px !important;
}

.woocommerce-mini-cart-item .variation dt {
    display: none !important;
}

.woocommerce-mini-cart-item .variation dd {
    margin: 0 !important;
}

.woocommerce-mini-cart-item .variation dd p {
    display: inline-block !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    background: linear-gradient(135deg, rgba(111, 127, 99, 0.1), rgba(111, 127, 99, 0.15)) !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: var(--drawer-primary-dark) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Remove Button - Minimal & Elegant */
.woocommerce-mini-cart-item > a.remove,
.woocommerce-mini-cart-item > .remove,
.mini_cart_item > a.remove,
.mini_cart_item .remove_from_cart_button {
    grid-column: 3 !important;
    grid-row: 1 / 4 !important;
    align-self: center !important;
    justify-self: center !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0 !important;
    color: transparent !important;
    cursor: pointer !important;
    opacity: 0.6 !important;
}

.woocommerce-mini-cart-item:hover > a.remove,
.mini_cart_item:hover > a.remove {
    opacity: 1 !important;
}

.woocommerce-mini-cart-item > a.remove::before,
.mini_cart_item > a.remove::before,
.mini_cart_item .remove_from_cart_button::before {
    content: "" !important;
    width: 16px !important;
    height: 16px !important;
    background: #bbb !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E") center/contain no-repeat !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E") center/contain no-repeat !important;
    transition: background 0.25s ease !important;
}

.woocommerce-mini-cart-item > a.remove:hover,
.mini_cart_item > a.remove:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    transform: scale(1.08) !important;
}

.woocommerce-mini-cart-item > a.remove:hover::before,
.mini_cart_item > a.remove:hover::before {
    background: #dc2626 !important;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER - Totals & Premium CTA
   ───────────────────────────────────────────────────────────────── */
.woocommerce-mini-cart__total {
    margin-top: auto;
    padding: 28px 0 20px 0;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Decorative divider */
.woocommerce-mini-cart__total::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(111, 127, 99, 0.15) 20%,
        rgba(111, 127, 99, 0.25) 50%,
        rgba(111, 127, 99, 0.15) 80%,
        transparent 100%);
}

.woocommerce-mini-cart__total strong {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.woocommerce-mini-cart__total .woocommerce-Price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: "Playfair Display", Georgia, serif;
    background: linear-gradient(135deg, var(--drawer-text-dark) 0%, var(--drawer-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Buttons Container */
.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
}

/* Base Button Styles */
.woocommerce-mini-cart__buttons a.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1.8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Inter", -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* View Cart Button - Secondary */
.woocommerce-mini-cart__buttons .button:not(.checkout) {
    background: transparent;
    color: var(--drawer-primary);
    border: 2px solid rgba(111, 127, 99, 0.3);
    order: 2;
}

.woocommerce-mini-cart__buttons .button:not(.checkout):hover {
    background: rgba(111, 127, 99, 0.08);
    border-color: var(--drawer-primary);
    transform: translateY(-2px);
}

/* Checkout Button - Premium CTA */
.woocommerce-mini-cart__buttons .checkout {
    background: linear-gradient(135deg, var(--drawer-primary) 0%, var(--drawer-primary-dark) 50%, var(--drawer-primary-darker) 100%);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    box-shadow:
        0 6px 24px rgba(111, 127, 99, 0.35),
        0 2px 8px rgba(111, 127, 99, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: subtleGradient 4s ease infinite;
    order: 1;
    font-size: 0.88rem;
    letter-spacing: 2px;
    padding: 20px 32px;
}

/* Arrow icon for checkout */
.woocommerce-mini-cart__buttons .checkout::after {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.woocommerce-mini-cart__buttons .checkout:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 12px 40px rgba(111, 127, 99, 0.4),
        0 4px 12px rgba(111, 127, 99, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.woocommerce-mini-cart__buttons .checkout:hover::after {
    transform: translateX(4px);
}

@keyframes subtleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─────────────────────────────────────────────────────────────────
   SECURE PAYMENT BADGE
   ───────────────────────────────────────────────────────────────── */
.woocommerce-mini-cart__buttons::before {
    content: "";
    display: block;
    order: 3;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.woocommerce-mini-cart__buttons::after {
    content: "Plată 100% securizată";
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    order: 4;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.5px;
}

/* Add lock icon via a wrapper - since we can't do two ::after, we'll style inline */
.woocommerce-mini-cart__buttons::after {
    content: "🔒  Plată 100% securizată";
}

/* ─────────────────────────────────────────────────────────────────
   EMPTY STATE - Beautiful & Inviting
   ───────────────────────────────────────────────────────────────── */
.cart-drawer-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 32px;
    flex: 1;
    min-height: 400px;
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(111, 127, 99, 0.06) 0%, rgba(111, 127, 99, 0.12) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    animation: breathe 3s ease-in-out infinite;
}

.empty-cart-icon::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(111, 127, 99, 0.1), rgba(111, 127, 99, 0.05));
    animation: pulseOuter 3s ease-in-out infinite;
}

.empty-cart-icon svg {
    color: var(--drawer-primary);
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes pulseOuter {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.5; }
}

.empty-cart-message {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--drawer-text-dark);
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.empty-cart-subtext {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 0.95rem;
    color: #888;
    line-height: 1.6;
    margin: 0 0 32px 0;
    max-width: 280px;
}

.empty-cart-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--drawer-primary) 0%, var(--drawer-primary-dark) 50%, var(--drawer-primary-darker) 100%);
    background-size: 200% 200%;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-family: "Inter", -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow:
        0 6px 24px rgba(111, 127, 99, 0.3),
        0 2px 8px rgba(111, 127, 99, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: subtleGradient 4s ease infinite;
}

.empty-cart-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 32px rgba(111, 127, 99, 0.4),
        0 4px 12px rgba(111, 127, 99, 0.2);
    color: #fff;
}

.empty-cart-cta svg {
    transition: transform 0.3s ease;
}

.empty-cart-cta:hover svg {
    transform: translateX(4px);
}

/* Legacy empty message styling (fallback) */
.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 60px 40px;
    color: #888;
    font-size: 1.05rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

/* Alternative empty state using paragraph styling */
.widget_shopping_cart_content > p.woocommerce-mini-cart__empty-message,
.widget_shopping_cart_content > .woocommerce-mini-cart__empty-message {
    font-family: "Inter", -apple-system, sans-serif;
    font-weight: 500;
    color: #999;
}

/* ─────────────────────────────────────────────────────────────────
   SUCCESS ANIMATION
   ───────────────────────────────────────────────────────────────── */
.woocommerce-mini-cart-item.just-added {
    animation: itemSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes itemSlideIn {
    0% {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    60% {
        transform: translateX(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    #cart-drawer {
        width: 100vw;
    }

    .cart-drawer-header {
        padding: 22px 20px;
    }

    .cart-drawer-header::after {
        left: 20px;
        right: 20px;
    }

    .cart-drawer-header h3 {
        font-size: 1.4rem;
    }

    .cart-drawer-header h3::before {
        width: 22px;
        height: 22px;
    }

    .widget_shopping_cart_content {
        padding: 20px;
    }

    .woocommerce-mini-cart-item,
    .mini_cart_item {
        grid-template-columns: 75px 1fr 36px !important;
        padding: 16px !important;
        column-gap: 14px !important;
        border-radius: 16px !important;
    }

    .woocommerce-mini-cart-item > a:not(.remove),
    .mini_cart_item > a:not(.remove) {
        gap: 14px !important;
        font-size: 1rem !important;
    }

    .woocommerce-mini-cart-item > a:not(.remove) img,
    .mini_cart_item > a:not(.remove) img {
        width: 75px !important;
        height: 75px !important;
        min-width: 75px !important;
        max-width: 75px !important;
        border-radius: 12px !important;
    }

    .woocommerce-mini-cart-item .quantity .amount,
    .mini_cart_item .quantity .amount {
        font-size: 1.05rem !important;
    }

    .woocommerce-mini-cart-item > a.remove,
    .mini_cart_item > a.remove {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .woocommerce-mini-cart-item > a.remove::before,
    .mini_cart_item > a.remove::before {
        width: 14px !important;
        height: 14px !important;
    }

    .woocommerce-mini-cart__total .woocommerce-Price-amount {
        font-size: 1.8rem;
    }

    .woocommerce-mini-cart__buttons a.button {
        padding: 16px 24px;
        font-size: 0.78rem;
        border-radius: 14px;
    }

    .woocommerce-mini-cart__buttons .checkout {
        padding: 18px 24px;
    }

    .woocommerce-mini-cart__buttons .checkout::after {
        width: 16px;
        height: 16px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   DUPLICATE PLAN ALERT MODAL
   ───────────────────────────────────────────────────────────────── */
#duplicate-plan-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(46, 56, 40, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#duplicate-plan-alert.is-visible {
    display: flex;
    opacity: 1;
}

.duplicate-alert-content {
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
    border-radius: 28px;
    padding: 44px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(111, 127, 99, 0.08);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

#duplicate-plan-alert.is-visible .duplicate-alert-content {
    transform: scale(1) translateY(0);
}

.duplicate-alert-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, rgba(111, 127, 99, 0.12), rgba(111, 127, 99, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px auto;
    position: relative;
}

.duplicate-alert-icon::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--drawer-primary), #8BA07D);
    opacity: 0.25;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.duplicate-alert-icon svg {
    width: 44px;
    height: 44px;
    stroke: var(--drawer-primary);
    position: relative;
    z-index: 1;
}

.duplicate-alert-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--drawer-text-dark);
    margin: 0 0 14px 0;
}

.duplicate-alert-message {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.65;
    margin: 0 0 32px 0;
}

.duplicate-alert-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.duplicate-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 32px;
    border-radius: 16px;
    font-family: "Inter", -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.duplicate-alert-btn.primary {
    background: linear-gradient(135deg, var(--drawer-primary) 0%, var(--drawer-primary-dark) 50%, var(--drawer-primary-darker) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(111, 127, 99, 0.35);
}

.duplicate-alert-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(111, 127, 99, 0.4);
}

.duplicate-alert-btn.secondary {
    background: transparent;
    color: var(--drawer-primary);
    border: 2px solid rgba(111, 127, 99, 0.25);
}

.duplicate-alert-btn.secondary:hover {
    background: rgba(111, 127, 99, 0.06);
    border-color: var(--drawer-primary);
}

.duplicate-alert-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.duplicate-alert-close:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: rotate(90deg);
}

.duplicate-alert-close svg {
    width: 18px;
    height: 18px;
    stroke: #888;
    stroke-width: 2.5;
}

/* ─────────────────────────────────────────────────────────────────
   BODY LOCK WHEN DRAWER IS OPEN
   ───────────────────────────────────────────────────────────────── */
body.drawer-open {
    overflow: hidden;
}
