/* ============================================
   FAMILY CUSTOM - Cart Notification & Badge
   ============================================ */

.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-wood));
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 10000;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification i {
    font-size: 1.5rem;
}

.cart-notification a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.cart-notification a:hover {
    text-decoration: none;
}

/* Cart badge */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Account link */
.account-link {
    position: relative;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.account-link i {
    font-size: 1.1rem;
}

.account-link:hover {
    color: var(--color-accent, #e07a5f);
}

.account-link.active {
    color: var(--color-accent, #e07a5f);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-accent, #e07a5f);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg, #fefdfb);
}

/* ============================================
   CART PAGE STYLES
   ============================================ */

.cart-page {
    padding: 120px 5% 80px;
    min-height: 100vh;
    background: #2d2d2d !important;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-title {
    text-align: center;
    margin-bottom: 50px;
}

.cart-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #f5f5f5;
}

.cart-title h1 i {
    color: var(--color-accent, #e07a5f);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(45, 42, 38, 0.08));
}

.cart-empty i {
    font-size: 5rem;
    color: var(--color-wood, #c9a87c);
    opacity: 0.5;
    margin-bottom: 20px;
}

.cart-empty p {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 900px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

/* Cart items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    padding: 20px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(45, 42, 38, 0.06));
}

@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--color-bg-warm, #3a3a3a);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.cart-item-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #2d2a26;
    margin-bottom: 5px;
}

/* Variants display in cart */
.cart-item-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.cart-item-variants .variant-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #3a3a3a;
    color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.cart-item-variants .variant-tag i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.cart-item-variants .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.cart-item-info .customization {
    color: var(--color-accent, #e07a5f);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

.cart-item-info .customer-photo {
    margin: 10px 0;
    padding: 10px;
    background: #3a3a3a;
    border-radius: 8px;
    border-left: 3px solid var(--color-accent, #e07a5f);
}

.cart-item-info .customer-photo span {
    display: block;
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 8px;
}

.cart-item-info .customer-photo-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.cart-item-info .customer-photo-preview:hover {
    transform: scale(1.5);
    z-index: 10;
    position: relative;
}

/* Multi-image display in cart */
.cart-item-info .customer-photos-multi {
    margin: 10px 0;
    padding: 10px;
    background: #3a3a3a;
    border-radius: 8px;
    border-left: 3px solid var(--color-accent, #e07a5f);
}

.cart-item-info .customer-photos-multi span {
    display: block;
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 8px;
}

.cart-item-info .customer-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cart-item-info .customer-photo-mini {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s, z-index 0.3s;
}

.cart-item-info .customer-photo-mini:hover {
    transform: scale(2);
    z-index: 10;
    position: relative;
}

.cart-item-info .price {
    color: var(--color-wood-dark, #8b6f47);
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-warm, #3a3a3a);
    padding: 5px;
    border-radius: 8px;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-accent, #e07a5f);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-control button:hover {
    background: var(--color-accent-hover, #c96a52);
}

.quantity-control span {
    width: 40px;
    text-align: center;
    color: #f5f5f5;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: var(--color-text-muted, #9d9892);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    color: #e74c3c;
}

/* Cart summary */
.cart-summary {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(45, 42, 38, 0.08));
}

.cart-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2d2a26;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d2a26;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.summary-row.total span:last-child {
    color: var(--color-accent, #e07a5f);
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 15px;
    margin: -10px 0 15px 0;
    background: rgba(139, 111, 71, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--color-wood-dark, #8b6f47);
}

.shipping-options small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.shipping-options small i {
    width: 16px;
    color: var(--color-wood-dark, #8b6f47);
}

/* Delivery Estimate */
.delivery-estimate {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 15px 18px;
    margin: 20px 0;
}

.delivery-estimate i {
    font-size: 1.5rem;
    color: #4caf50;
}

.delivery-estimate-content {
    flex: 1;
}

.delivery-estimate-label {
    font-size: 0.85rem;
    color: #000;
    margin-bottom: 2px;
}

.delivery-estimate-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    text-transform: capitalize;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--color-accent, #e07a5f), var(--color-wood, #c9a87c));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(224, 122, 95, 0.4);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--color-text-muted, #9d9892);
    text-decoration: none;
    font-size: 0.9rem;
}

.continue-shopping:hover {
    color: var(--color-accent, #e07a5f);
}

/* ============================================
   CHECKOUT PAGE STYLES - MODERN DESIGN
   ============================================ */

.checkout-page {
    padding: 100px 20px 60px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f0f14 0%, #1a1a24 50%, #0f0f14 100%);
    position: relative;
}

.checkout-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(224, 122, 95, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.checkout-title {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.checkout-title h1 i {
    color: #D4AF37;
    font-size: 1.8rem;
}

/* Order Summary - Top Card */
.order-summary {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 28, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.order-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #D4AF37;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.order-summary h2 i {
    color: #D4AF37;
    font-size: 1rem;
}

.order-items {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px;
}

.order-items::-webkit-scrollbar {
    width: 4px;
}

.order-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.order-items::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
}

.order-item-name small {
    display: block;
    color: #D4AF37 !important;
    font-size: 0.75rem;
    margin-top: 3px;
}

.order-item-price {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.order-discount {
    background: rgba(46, 125, 50, 0.1);
    margin: 0 -10px;
    padding: 12px 10px !important;
    border-radius: 8px;
}

.order-discount .order-item-name,
.order-discount .order-item-price {
    color: #4caf50 !important;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.order-total span:first-child {
    color: rgba(255, 255, 255, 0.9);
}

.order-total span:last-child {
    color: #D4AF37;
    font-size: 1.4rem;
}

/* Form Layout - Simplified Single Column */
.checkout-form {
    max-width: 600px;
    margin: 0 auto;
}

.checkout-main-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 900px) {
    .checkout-form {
        max-width: 100%;
    }
}

/* Form Sections */
.form-section {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.8), rgba(25, 25, 35, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section h2 i {
    font-size: 1rem;
    color: #D4AF37;
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Customer Type Selector */
.customer-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.type-option {
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.type-card i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    display: block;
}

.type-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.type-desc {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.type-option.selected .type-card,
.type-option:hover .type-card {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.08);
}

.type-option.selected .type-card i {
    color: #D4AF37;
}

/* Form Inputs */
.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Pro Fields */
.pro-fields {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Pro Toggle Checkbox */
.pro-toggle {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.pro-toggle-label:hover {
    color: rgba(255, 255, 255, 0.9);
}

.pro-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #D4AF37;
    cursor: pointer;
}

.pro-fields-inline {
    margin-top: 15px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

.pro-fields-inline .form-group {
    margin-bottom: 12px;
}

.pro-fields-inline .form-group:last-child {
    margin-bottom: 0;
}

.pro-info-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    margin-top: 10px;
}

.pro-info-notice i {
    color: #D4AF37;
    font-size: 1.2rem;
}

.pro-info-notice span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Payment section */
#card-element {
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.payment-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Promo Code / Gift Card Styles */
.promo-code-wrapper {
    margin-top: 5px;
}

/* Promo Section Collapsible */
.promo-section-collapsible {
    padding: 0 !important;
    overflow: hidden;
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.promo-header:hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
}

.promo-header i:first-child {
    margin-right: 10px;
    color: #D4AF37;
}

.promo-chevron {
    transition: transform 0.3s ease;
}

.promo-chevron.open {
    transform: rotate(180deg);
}

.promo-content {
    padding: 0 20px 20px;
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.promo-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: none;
    letter-spacing: normal;
}

.promo-input-group input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-apply-promo {
    padding: 14px 24px;
    background: linear-gradient(135deg, #D4AF37, #c9a227);
    color: #0f0f14;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-apply-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-apply-promo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.promo-message {
    margin-top: 12px;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 8px;
}

.promo-message.success {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.promo-message.error {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.2);
}

.promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.promo-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4caf50;
    font-weight: 600;
    font-size: 0.9rem;
}

.promo-badge i {
    color: #4caf50;
}

.btn-remove-promo {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-remove-promo:hover {
    background: rgba(239, 83, 80, 0.2);
    color: #ef5350;
}

/* Payment Section */
#card-element {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    min-height: 120px;
    transition: all 0.3s ease;
}

#card-element:focus-within {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.payment-error {
    color: #ef5350;
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(239, 83, 80, 0.1);
    border-radius: 8px;
    display: none;
}

.payment-error:not(:empty) {
    display: block;
}

/* Pay Button */
.pay-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #D4AF37 0%, #f0d060 50%, #D4AF37 100%);
    background-size: 200% auto;
    color: #0f0f14;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.pay-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.pay-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.pay-btn:hover::before {
    left: 100%;
}

.pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pay-btn .spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(15, 15, 20, 0.2);
    border-top-color: #0f0f14;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Secure Badge */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.secure-badge i {
    color: #4caf50;
    font-size: 1rem;
}

/* Secure Badges Row */
.secure-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.12);
    border-radius: 10px;
}

.secure-badges .secure-badge {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Checkout Summary Inline */
.checkout-summary-inline {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.checkout-summary-inline .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.checkout-summary-inline .summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-summary-inline .total-row {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    color: #D4AF37;
}

.checkout-summary-inline .discount-amount {
    color: #4caf50;
}

.checkout-summary-inline .free-shipping-notice {
    text-align: center;
    color: #4caf50;
    font-size: 0.85rem;
    margin-top: 12px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

/* Test Mode Notice */
.form-section [style*="background: var(--color-bg-warm"] {
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 10px !important;
}

.form-section [style*="background: var(--color-bg-warm"] p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-section [style*="background: var(--color-bg-warm"] code {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #D4AF37 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
}

.promo-badge i {
    color: #4caf50;
}

.btn-remove-promo {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-remove-promo:hover {
    background: rgba(239, 83, 80, 0.2);
    color: #ef5350;
}

/* Order summary with discount */
.order-discount {
    background: rgba(46, 125, 50, 0.1);
    margin: 0 -10px;
    padding: 12px 10px !important;
    border-radius: 8px;
}

.order-discount span:last-child {
    color: #4caf50 !important;
}

/* Success page */
.success-page {
    padding: 100px 20px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0f0f14 0%, #1a1a24 50%, #0f0f14 100%);
    position: relative;
}

.success-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 30%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.success-container {
    text-align: center;
    max-width: 480px;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 28, 0.95));
    border: 1px solid rgba(76, 175, 80, 0.2);
    padding: 50px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 10px 40px rgba(76, 175, 80, 0.5); }
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.success-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.success-container p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.order-number {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.order-number span {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-number strong {
    color: #D4AF37;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

/* ============================================
   CUSTOMER TYPE SELECTOR
   ============================================ */

.customer-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.type-option {
    cursor: pointer;
    display: flex;
}

.type-option input[type="radio"] {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.type-card i {
    font-size: 2rem;
    color: #555555;
    transition: color 0.3s;
}

.type-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.type-desc {
    font-size: 0.85rem;
    color: #666666;
    transition: color 0.3s;
}

.type-option.selected .type-card,
.type-option:hover .type-card {
    border-color: var(--color-accent, #e07a5f);
    background: rgba(224, 122, 95, 0.1);
}

.type-option.selected .type-card i,
.type-option:hover .type-card i {
    color: var(--color-accent, #e07a5f);
}

.type-option.selected .type-card .type-label,
.type-option:hover .type-card .type-label {
    color: #1a1a1a;
}

.type-option.selected .type-card .type-desc,
.type-option:hover .type-card .type-desc {
    color: #555555;
}

/* Pro Fields */
.pro-fields {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pro-info-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    color: #81c784;
    font-size: 0.9rem;
}

.pro-info-notice i {
    font-size: 1.2rem;
}

#siret {
    font-family: monospace;
    letter-spacing: 1px;
}

@media (max-width: 500px) {
    .customer-type-selector {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DELIVERY METHOD SELECTOR
   ============================================ */

.delivery-method-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.delivery-option {
    cursor: pointer;
}

.delivery-option input {
    display: none;
}

.delivery-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    position: relative;
}

.delivery-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.delivery-option.selected .delivery-card {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.delivery-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-icon i {
    font-size: 1.3rem;
    color: #D4AF37;
}

.delivery-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.delivery-price {
    font-weight: 700;
    color: #D4AF37;
    font-size: 1rem;
}

.delivery-price.free {
    color: #2ecc71;
}

.delivery-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.mr-logo {
    height: 28px;
    object-fit: contain;
    opacity: 0.8;
}

.delivery-option.selected .mr-logo {
    opacity: 1;
}

/* Mondial Relay Badge */
.mr-badge {
    background: linear-gradient(135deg, #e30613, #c00510);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.delivery-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-section-title i {
    color: #D4AF37;
}

/* Relay Search Box */
.relay-search-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.btn-search-relay {
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-search-relay:hover {
    background: #e5c349;
    transform: translateY(-2px);
}

/* Relay Loading */
.relay-loading {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.relay-loading i {
    font-size: 1.5rem;
    color: #D4AF37;
    margin-right: 10px;
}

/* Relay Results List */
.relay-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.relay-point-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.relay-point-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.relay-point-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.relay-point-icon i {
    color: #D4AF37;
}

.relay-point-info {
    flex: 1;
    min-width: 0;
}

.relay-point-name {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.relay-point-address,
.relay-point-city {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.relay-point-hours {
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.8);
    margin-top: 4px;
}

.relay-point-hours i {
    margin-right: 5px;
}

.btn-select-relay {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-select-relay:hover {
    background: #D4AF37;
    color: #1a1a1a;
}

/* Selected Relay Card */
.selected-relay-card {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    border-radius: 12px;
    padding: 15px;
}

.selected-relay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.3);
}

.selected-relay-header i {
    color: #2ecc71;
    font-size: 1.2rem;
}

.selected-relay-header span {
    color: #2ecc71;
    font-weight: 600;
    flex: 1;
}

.btn-change-relay {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-change-relay:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

.selected-relay-info strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.selected-relay-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.selected-relay-info p i {
    color: #D4AF37;
    margin-right: 5px;
}

/* No Results / Error */
.relay-no-results,
.relay-error {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.relay-no-results i,
.relay-error i {
    font-size: 2rem;
    color: #D4AF37;
    display: block;
    margin-bottom: 15px;
}

.relay-error i {
    color: #e74c3c;
}

.relay-no-results p,
.relay-error p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .delivery-card {
        flex-wrap: wrap;
    }
    
    .mr-logo {
        position: absolute;
        top: 10px;
        right: 10px;
        height: 22px;
    }
    
    .relay-point-card {
        flex-wrap: wrap;
    }
    
    .btn-select-relay {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Simplified checkout mobile */
    .checkout-form {
        padding: 0 10px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .delivery-method-selector {
        flex-direction: column;
    }
    
    .delivery-option {
        width: 100%;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
    
    .promo-input-group input {
        width: 100%;
    }
    
    .btn-apply-promo {
        width: 100%;
    }
    
    .secure-badges {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .checkout-summary-inline .total-row {
        font-size: 1rem;
    }
}

/* ============================================
   CART RECOMMENDATIONS
   "Ils ont aussi commandé..."
   ============================================ */

#cart-recommendations {
    margin-top: 40px;
}

.cart-recommendations-inner {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.recommendations-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.recommendations-title i {
    color: var(--color-accent, #d4af37);
    font-size: 1.1rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.recommendation-card {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent, #d4af37);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.recommendation-card .recommendation-image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: #222;
}

.recommendation-card .recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recommendation-card:hover .recommendation-image img {
    transform: scale(1.08);
}

.recommendation-card .placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 2rem;
}

.recommendation-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent, #d4af37);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.recommendation-info {
    padding: 15px;
}

.recommendation-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-price .old-price {
    font-size: 0.8rem;
    color: #888;
    text-decoration: line-through;
}

.recommendation-price .current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent, #d4af37);
}

.recommendation-quick-add {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--color-accent, #d4af37);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.recommendation-card:hover .recommendation-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.recommendation-quick-add:hover {
    background: #fff;
}

/* Loading state */
.recommendations-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #888;
}

.recommendations-loading i {
    color: var(--color-accent, #d4af37);
}

/* Responsive */
@media (max-width: 1024px) {
    .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cart-recommendations-inner {
        padding: 20px;
    }
    
    .recommendations-title {
        font-size: 1.1rem;
    }
    
    .recommendation-quick-add {
        opacity: 1;
        transform: translateY(0);
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        justify-content: center;
        margin: 0 15px 15px;
        width: calc(100% - 30px);
    }
    
    .recommendation-info {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .recommendations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .recommendation-name {
        font-size: 0.85rem;
    }
    
    .recommendation-price .current-price {
        font-size: 0.9rem;
    }
}

