/* Custom styles for glassmorphism and tweaks */
.glass {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

/* Smooth animation for the woman layer */
.woman-anim {
    animation: float 5s ease-in-out infinite;
    transform-origin: bottom center;
    will-change: transform;
}

.parallax-item {
    will-change: transform;
}

/* SVG container behavior to keep layers stacked properly */
.svg-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Payment Icons styling */
.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    border: 1px solid rgba(202, 161, 71, 0.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.payment-icon:hover {
    border-color: #CAA147;
    transform: translateY(-1px);
}

/* =============================================
   CHECKOUT MODAL STYLES
   ============================================= */

/* Step viewport – clips the sliding panels */
.checkout-steps-viewport {
    overflow: hidden;
    position: relative;
}

/* Each step panel sits in a flex row; JS shifts translateX */
.checkout-steps-track {
    display: flex;
    width: 300%;          /* 3 steps × 100% */
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.checkout-step-panel {
    width: calc(100% / 3);
    flex-shrink: 0;
}

/* Step Progress Indicator */
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    transition: all 0.3s ease;
}
.step-dot.active {
    border-color: #CAA147;
    background: #CAA147;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(202,161,71,0.18);
}
.step-dot.done {
    border-color: #CAA147;
    background: #fff;
    color: #CAA147;
}
.step-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 4px;
    align-self: center;
    transition: background 0.3s ease;
    border-radius: 999px;
}
.step-connector.done {
    background: #CAA147;
}

/* Checkout form inputs */
.checkout-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #3a2818;
    background: #fdfaf3;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-input:focus {
    border-color: #CAA147;
    box-shadow: 0 0 0 3px rgba(202,161,71,0.15);
    background: #fff;
}
.checkout-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.checkout-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #3a2818;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.checkout-field-error {
    font-size: 11px;
    color: #ef4444;
    margin-top: 3px;
    display: none;
}

/* COD Badge */
.cod-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef9ec 0%, #fdf3d0 100%);
    border: 1.5px solid #CAA147;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #3a2818;
    letter-spacing: 0.03em;
}

/* Order summary card in modal */
.order-summary-card {
    background: #fcf9f2;
    border: 1.5px solid rgba(202,161,71,0.3);
    border-radius: 16px;
    padding: 16px;
}

/* Checkout modal scrollable body on small screens */
#checkout-modal .modal-body {
    max-height: calc(90dvh - 160px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #CAA147 #f6e6a9;
}
#checkout-modal .modal-body::-webkit-scrollbar {
    width: 5px;
}
#checkout-modal .modal-body::-webkit-scrollbar-track {
    background: #f6e6a9;
    border-radius: 999px;
}
#checkout-modal .modal-body::-webkit-scrollbar-thumb {
    background: #CAA147;
    border-radius: 999px;
}

/* Review row in step 3 */
.review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0e8d6;
    gap: 12px;
}
.review-row:last-child { border-bottom: none; }
.review-label { font-size: 12px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.review-value { font-size: 14px; color: #3a2818; font-weight: 600; text-align: right; max-width: 60%; }

/* Checkout CTA button */
.checkout-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #dca626 0%, #CAA147 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(202,161,71,0.35);
    transition: all 0.3s ease;
}
.checkout-cta:hover {
    background: linear-gradient(135deg, #c29122 0%, #b38b36 100%);
    box-shadow: 0 14px 40px rgba(202,161,71,0.5);
    transform: translateY(-2px);
}
.checkout-cta:active { transform: scale(0.97); }
.checkout-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #6b7280;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.checkout-cta-secondary:hover {
    border-color: #CAA147;
    color: #3a2818;
    background: #fdfaf3;
}

/* =============================================
   SUCCESS PAGE STYLES
   ============================================= */
.success-order-card {
    background: #fff;
    border: 1.5px solid rgba(202,161,71,0.25);
    border-radius: 20px;
    overflow: hidden;
}
.success-order-header {
    background: linear-gradient(135deg, #fef9ec 0%, #fcf3d0 100%);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(202,161,71,0.2);
}
.success-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3a2818;
    color: #F6E6A9;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =============================================
   CURRENCY SELECTOR DROPDOWN FIX
   Ensures proper visibility above all elements
   ============================================= */
#country-selector-container {
    position: relative;
    z-index: 50;
    /* Establish proper stacking context */
    isolation: isolate;
}

#country-dropdown {
    /* Ensure dropdown is visible above everything */
    z-index: 50 !important;
    position: absolute;
    /* Prevent clipping by parent overflow */
    clip-path: none;
    will-change: opacity, transform;
}

/* Handle visibility transitions */
#country-dropdown.opacity-0 {
    opacity: 0 !important;
    pointer-events: none !important;
}

#country-dropdown:not(.opacity-0) {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* =============================================
   BUNDLE PRICING & CUSTOM BUILDER STYLES
   ============================================= */

/* Bundle Card Styles */
.bundle-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.bundle-card:hover {
    border-color: #CAA147;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(202, 161, 71, 0.1);
}

.bundle-card.selected {
    border-color: #CAA147;
    background: #fdfaf3;
    box-shadow: 0 12px 40px rgba(202, 161, 71, 0.15);
}

.bundle-badge {
    position: absolute;
    top: 12px;
    right: -35px;
    background: #CAA147;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.popular-badge {
    background: #3a2818;
}

/* Custom Builder Modal Styles */
.builder-quantity-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #3a2818;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.builder-quantity-btn:hover {
    background: #e5e7eb;
    border-color: #CAA147;
}

.builder-quantity-input {
    width: 60px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    background: transparent;
    border: none;
    color: #3a2818;
}

/* Removal Animation */
@keyframes item-remove {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.9) translateX(20px); opacity: 0; }
}
.animate-remove {
    animation: item-remove 0.3s ease-out forwards;
}

/* Price Update Animation */
@keyframes price-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #CAA147; }
    100% { transform: scale(1); }
}

.animate-price {
    animation: price-pop 0.4s ease-out;
}

/* Add to Cart Feedback */
.cart-success-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #3a2818;
    color: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-success-toast.show {
    transform: translateY(0);
    opacity: 1;
}
