/* ==========================================================================
   CARDONGY - Ultra Clean Cart/Checkout v3.1
   FINAL CLEAN VERSION - No Duplicates
   ========================================================================== */

/* Reset EVERYTHING */
body.cardongy-clean-page,
body.clean-cart-page,
body.clean-checkout-page,
body.cardongy-clean-page *,
body.clean-cart-page *,
body.clean-checkout-page * {
    box-sizing: border-box;
}

body.cardongy-clean-page,
body.clean-cart-page,
body.clean-checkout-page {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #1a1a1a !important;
    background: #f8f9fa !important;
    line-height: 1.6 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body.rtl.cardongy-clean-page,
body.rtl.clean-cart-page,
body.rtl.clean-checkout-page {
    font-family: 'Cairo', 'Poppins', sans-serif !important;
    direction: rtl !important;
}

html {
    background: #f8f9fa !important;
}

/* Hide ALL theme elements */
body.clean-cart-page > *:not(.clean-header):not(.clean-back-bar):not(.clean-main):not(.clean-footer):not(script):not(style):not(#wpadminbar),
body.clean-checkout-page > *:not(.clean-header):not(.clean-back-bar):not(.clean-main):not(.clean-footer):not(script):not(style):not(#wpadminbar) {
    display: none !important;
}

/* Container */
.clean-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.clean-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 24px 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    min-height: 100px !important;
}

.clean-header .clean-container {
    display: grid !important;
    grid-template-columns: 300px 1fr 240px !important;
    align-items: center !important;
    gap: 30px !important;
    min-height: 76px !important;
}

/* ==========================================================================
   LOGO (Big + Gold Hover Effect)
   ========================================================================== */

.clean-header .clean-logo {
    display: inline-block !important;
    max-width: 280px !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    text-decoration: none !important;
    line-height: 0 !important;
    justify-self: start !important;
}

/* WordPress custom logo link */
.clean-header .clean-logo .custom-logo-link,
.clean-header .custom-logo-link {
    display: inline-block !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
}

/* Logo image - ALL variations */
.clean-header .clean-logo img,
.clean-header .clean-logo .custom-logo,
.clean-header .custom-logo-link img,
.clean-header .custom-logo,
.clean-header img.custom-logo {
    max-height: 75px !important;
    min-height: 60px !important;
    max-width: 260px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    object-fit: contain !important;
    transition: all 0.4s ease !important;
    filter: brightness(1);
    vertical-align: middle !important;
}

/* Gold glow effect on hover */
.clean-header .clean-logo:hover img,
.clean-header .clean-logo:hover .custom-logo,
.clean-header .custom-logo-link:hover img,
.clean-header .clean-logo:hover .custom-logo-link img {
    filter: 
        brightness(1.25) 
        drop-shadow(0 0 15px rgba(212, 165, 55, 0.8)) 
        drop-shadow(0 0 30px rgba(212, 165, 55, 0.5)) 
        drop-shadow(0 0 45px rgba(212, 165, 55, 0.3)) !important;
    transform: scale(1.08) !important;
}

/* Gold underline animation */
.clean-header .clean-logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 165, 55, 0.3) 10%, 
        #d4a537 30%, 
        #b8862c 50%, 
        #d4a537 70%, 
        rgba(212, 165, 55, 0.3) 90%, 
        transparent 100%);
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 
        0 0 12px rgba(212, 165, 55, 0.8),
        0 0 24px rgba(212, 165, 55, 0.4);
    pointer-events: none;
}

.clean-header .clean-logo:hover::after {
    width: 100%;
}

.clean-header .clean-logo:active img,
.clean-header .clean-logo:active .custom-logo {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
}

/* ==========================================================================
   STEPS
   ========================================================================== */

.clean-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.clean-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-name {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.clean-step.active .step-num {
    background: #d4a537;
    color: white;
    box-shadow: 0 0 0 5px rgba(212, 165, 55, 0.15);
}

.clean-step.active .step-name {
    color: #b8862c;
}

.clean-step.done .step-num {
    background: #10b981;
    color: white;
}

.clean-step.done .step-name {
    color: #10b981;
}

.clean-line {
    width: 70px;
    height: 2px;
    background: #e5e7eb;
    margin-top: -22px;
    transition: background 0.3s;
}

.clean-line.done {
    background: #10b981;
}

/* Secure Badge */
.clean-secure {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #10b981;
    font-size: 13px;
    font-weight: 700;
}

body.rtl .clean-secure {
    justify-content: flex-start;
}

/* ==========================================================================
   BACK BAR
   ========================================================================== */

.clean-back-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.clean-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.clean-back:hover {
    color: #d4a537;
}

body.rtl .clean-back svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   MAIN
   ========================================================================== */

.clean-main {
    flex: 1;
    padding: 40px 0 60px;
    background: #f8f9fa;
}

/* ==========================================================================
   OVERRIDE OLD WRAPPERS
   ========================================================================== */

.cardongy-cart-wrapper,
.cardongy-checkout-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Hide old header banners */
.cart-header-banner,
.checkout-header-banner {
    display: none !important;
}

.checkout-steps {
    display: none !important;
}

/* Hide guarantees card (footer is in page-clean-*.php) */
.cart-card.guarantees-card {
    display: none !important;
}

/* ==========================================================================
   GRID LAYOUT
   ========================================================================== */

.cart-main-grid,
.checkout-main-grid {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 24px !important;
    align-items: start !important;
}

@media (max-width: 991px) {
    .cart-main-grid,
    .checkout-main-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   CARDS (Flat Design)
   ========================================================================== */

.cart-card,
.checkout-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
}

.cart-card-header,
.checkout-card-header {
    background: #ffffff !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.cart-card-title,
.checkout-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0a1929 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.card-icon,
.checkout-card-icon {
    font-size: 20px !important;
}

.cart-card-body,
.checkout-card-body {
    padding: 20px !important;
}

.cart-card-body.no-padding,
.checkout-card-body.no-padding {
    padding: 0 !important;
}

/* Summary Card */
.summary-card,
.sticky-card {
    position: sticky !important;
    top: 120px !important;
}

.summary-header {
    background: linear-gradient(135deg, #0a1929, #0f2138) !important;
    padding: 18px 20px !important;
    border-bottom: none !important;
}

.summary-header .cart-card-title,
.summary-header .checkout-card-title {
    color: #d4a537 !important;
}

.cart-count-badge {
    background: #d4a537 !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   CART ITEMS
   ========================================================================== */

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid !important;
    grid-template-columns: 90px 1fr auto auto !important;
    gap: 20px !important;
    align-items: center !important;
    padding: 20px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.cart-item:last-child {
    border-bottom: none !important;
}

.cart-item-image img {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    padding: 4px !important;
}

.cart-item-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
}

.cart-item-name a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.cart-item-name a:hover {
    color: #d4a537 !important;
}

.cart-item-price-label {
    color: #6b7280 !important;
    font-size: 13px !important;
}

.cart-item-price-label .value {
    color: #d4a537 !important;
    font-weight: 700 !important;
}

/* Quantity */
.quantity-label {
    display: block !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    margin-bottom: 6px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

.quantity-controls {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: white !important;
}

.qty-btn {
    width: 32px !important;
    height: 36px !important;
    background: white !important;
    border: none !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
}

.qty-btn:hover {
    background: #d4a537 !important;
    color: white !important;
}

.cart-qty-input {
    width: 45px !important;
    height: 36px !important;
    border: none !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    -moz-appearance: textfield !important;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Item Actions */
.cart-item-actions {
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-end !important;
}

.cart-item-subtotal {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #d4a537 !important;
}

.cart-remove-btn {
    color: #ef4444 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
}

.cart-remove-btn:hover {
    color: #dc2626 !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   COUPON
   ========================================================================== */

.cart-actions-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: end !important;
}

@media (max-width: 768px) {
    .cart-actions-grid {
        grid-template-columns: 1fr !important;
    }
}

.coupon-label {
    display: block !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.coupon-input-group {
    display: flex !important;
    gap: 8px !important;
}

.coupon-input {
    flex: 1 !important;
    padding: 10px 14px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    background: white !important;
}

.coupon-input:focus {
    outline: none !important;
    border-color: #d4a537 !important;
}

.btn-apply-coupon {
    padding: 10px 20px !important;
    background: #0a1929 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-apply-coupon:hover {
    background: #d4a537 !important;
}

.cart-buttons-group {
    display: flex !important;
    gap: 10px !important;
}

.btn-continue,
.btn-update {
    flex: 1 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    border: 1.5px solid #e5e7eb !important;
    background: white !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
}

.btn-continue:hover,
.btn-update:hover {
    border-color: #d4a537 !important;
    color: #d4a537 !important;
}

/* ==========================================================================
   ORDER SUMMARY
   ========================================================================== */

.summary-body {
    padding: 20px !important;
}

.summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
}

.summary-label {
    color: #6b7280 !important;
}

.summary-value {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

.summary-divider {
    height: 1px !important;
    background: #e5e7eb !important;
    margin: 12px 0 !important;
}

.summary-divider.dashed {
    background: transparent !important;
    border-top: 1px dashed #e5e7eb !important;
}

.summary-total {
    padding: 16px 0 !important;
}

.summary-total .summary-label {
    font-size: 16px !important;
    color: #0a1929 !important;
    font-weight: 800 !important;
}

.summary-total .summary-value {
    font-size: 22px !important;
    color: #d4a537 !important;
    font-weight: 900 !important;
}

/* Checkout Button */
.wc-proceed-to-checkout {
    margin-top: 16px !important;
    padding: 0 !important;
}

.checkout-button {
    width: 100% !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #d4a537, #b8862c) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 12px rgba(212, 165, 55, 0.3) !important;
}

.checkout-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(212, 165, 55, 0.4) !important;
    color: white !important;
}

/* Payment Methods */
.payment-methods-section {
    margin-top: 20px !important;
    text-align: center !important;
}

.payment-title {
    font-size: 11px !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 12px 0 !important;
    font-weight: 600 !important;
}

.payment-icons-grid {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.payment-icon {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
}

.payment-icon img {
    height: 20px !important;
    width: auto !important;
    display: block !important;
}

/* ==========================================================================
   CHECKOUT FORM
   ========================================================================== */

.woocommerce-checkout .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.woocommerce-checkout label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
}

.woocommerce-checkout .required {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout .select2-selection {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: white !important;
    color: #1a1a1a !important;
    transition: all 0.2s !important;
    font-family: inherit !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout .select2-selection {
    height: 44px !important;
    padding: 0 !important;
}

.woocommerce-checkout .select2-selection__rendered {
    padding: 10px 14px !important;
    line-height: 22px !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    outline: none !important;
    border-color: #d4a537 !important;
    box-shadow: 0 0 0 3px rgba(212, 165, 55, 0.1) !important;
}

/* Payment box */
#payment {
    background: #ffffff !important;
    padding: 20px !important;
    margin: 0 !important;
    border-top: 1px solid #f3f4f6 !important;
}

#payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: none !important;
}

#payment ul.payment_methods li {
    padding: 14px !important;
    margin-bottom: 10px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
}

#payment ul.payment_methods li:hover {
    border-color: #d4a537 !important;
    background: #fffdf5 !important;
}

#payment ul.payment_methods li label {
    font-weight: 600 !important;
    cursor: pointer !important;
}

#place_order {
    width: 100% !important;
    padding: 16px !important;
    background: linear-gradient(135deg, #d4a537, #b8862c) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(212, 165, 55, 0.3) !important;
    margin-top: 16px !important;
}

#place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 165, 55, 0.5) !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.clean-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 24px 0 20px;
    margin-top: auto;
}

.clean-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.trust-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.trust-icon svg {
    color: #d4a537;
}

.clean-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy {
    color: #9ca3af;
    font-size: 13px;
}

.footer-copy strong {
    color: #0a1929;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #d4a537;
}

.footer-links span {
    color: #d1d5db;
}

/* ==========================================================================
   RTL SUPPORT
   ========================================================================== */

body.rtl .clean-header .clean-container {
    grid-template-columns: 240px 1fr 300px !important;
}

body.rtl .clean-header .clean-logo {
    justify-self: end !important;
}

body.rtl .cart-main-grid,
body.rtl .checkout-main-grid {
    grid-template-columns: 380px 1fr !important;
}

@media (max-width: 991px) {
    body.rtl .cart-main-grid,
    body.rtl .checkout-main-grid {
        grid-template-columns: 1fr !important;
    }
}

body.rtl .cart-item-actions {
    text-align: left !important;
    align-items: flex-start !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .clean-header {
        padding: 18px 0 !important;
    }
    
    .clean-header .clean-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        text-align: center;
    }
    
    body.rtl .clean-header .clean-container {
        grid-template-columns: 1fr !important;
    }
    
    .clean-header .clean-logo,
    body.rtl .clean-header .clean-logo {
        justify-self: center !important;
    }
    
    .clean-header .clean-logo img,
    .clean-header .clean-logo .custom-logo,
    .clean-header .custom-logo-link img {
        max-height: 60px !important;
        min-height: 50px !important;
        max-width: 200px !important;
    }
    
    .clean-secure {
        justify-content: center;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .clean-container {
        padding: 0 15px;
    }
    
    .clean-line {
        width: 40px;
    }
    
    .step-name {
        display: none;
    }
    
    .clean-secure span {
        display: none;
    }
    
    .clean-header .clean-logo img,
    .clean-header .clean-logo .custom-logo,
    .clean-header .custom-logo-link img {
        max-height: 50px !important;
        min-height: 45px !important;
        max-width: 180px !important;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr !important;
        gap: 12px !important;
    }
    
    .cart-item-image img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .cart-item-quantity,
    .cart-item-actions {
        grid-column: 1 / -1 !important;
    }
    
    .cart-item-actions {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .clean-trust {
        gap: 20px;
    }
    
    .clean-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* ==========================================================================
   FINAL LOGO FIX - Match Homepage Size
   ========================================================================== */

/* Force logo to match homepage size */
.clean-header .clean-logo,
.clean-checkout-page .clean-logo,
.clean-cart-page .clean-logo {
    max-width: 320px !important;
    padding: 10px !important;
    display: inline-block !important;
    position: relative !important;
    line-height: 0 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

/* Logo image - MUCH BIGGER */
.clean-header .clean-logo img,
.clean-header .clean-logo .custom-logo,
.clean-header .custom-logo-link img,
.clean-header img.custom-logo,
.clean-checkout-page .clean-logo img,
.clean-cart-page .clean-logo img {
    max-height: 90px !important;
    min-height: 70px !important;
    max-width: 300px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    object-fit: contain !important;
    transition: all 0.4s ease !important;
    vertical-align: middle !important;
}

/* Gold hover glow */
.clean-header .clean-logo:hover img,
.clean-header .clean-logo:hover .custom-logo,
.clean-header .custom-logo-link:hover img {
    filter: 
        brightness(1.3) 
        drop-shadow(0 0 20px rgba(212, 165, 55, 0.9)) 
        drop-shadow(0 0 35px rgba(212, 165, 55, 0.6)) 
        drop-shadow(0 0 50px rgba(212, 165, 55, 0.4)) !important;
    transform: scale(1.06) !important;
}

/* Gold underline */
.clean-header .clean-logo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #d4a537 30%, 
        #b8862c 50%, 
        #d4a537 70%, 
        transparent 100%);
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 
        0 0 15px rgba(212, 165, 55, 0.8),
        0 0 30px rgba(212, 165, 55, 0.5);
    pointer-events: none;
}

.clean-header .clean-logo:hover::after {
    width: 90%;
}

/* Adjust header height for bigger logo */
.clean-header {
    padding: 20px 0 !important;
    min-height: 120px !important;
}

.clean-header .clean-container {
    grid-template-columns: 340px 1fr 240px !important;
    align-items: center !important;
    min-height: 90px !important;
    gap: 30px !important;
}

/* RTL adjustment */
body.rtl .clean-header .clean-container {
    grid-template-columns: 240px 1fr 340px !important;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .clean-header .clean-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    body.rtl .clean-header .clean-container {
        grid-template-columns: 1fr !important;
    }
    
    .clean-header .clean-logo,
    body.rtl .clean-header .clean-logo {
        justify-self: center !important;
    }
    
    .clean-header .clean-logo img,
    .clean-header .clean-logo .custom-logo,
    .clean-header .custom-logo-link img {
        max-height: 75px !important;
        min-height: 60px !important;
        max-width: 250px !important;
    }
    
    .clean-header {
        min-height: auto !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .clean-header .clean-logo img,
    .clean-header .clean-logo .custom-logo,
    .clean-header .custom-logo-link img {
        max-height: 60px !important;
        min-height: 50px !important;
        max-width: 200px !important;
    }
    
    .clean-header .clean-logo {
        max-width: 220px !important;
        padding: 6px !important;
    }
}

@media (max-width: 480px) {
    .clean-header .clean-logo img,
    .clean-header .clean-logo .custom-logo,
    .clean-header .custom-logo-link img {
        max-height: 50px !important;
        min-height: 45px !important;
        max-width: 180px !important;
    }
}
/* ============================================================
   FIX: Hide Duplicate Payment Section
   Cardongy Custom Design Uses Only One Payment Section
   ============================================================ */

/* Hide the FIRST payment section (WooCommerce automatic) */
form.checkout > .woocommerce-checkout-payment {
    display: none !important;
}

/* Hide any orphan place order button outside review */
form.checkout > .place-order {
    display: none !important;
}

/* Hide first privacy policy text (keep only the one with payment) */
form.checkout > .woocommerce-privacy-policy-text {
    display: none !important;
}

/* Ensure only one payment shows */
.cardongy-checkout-form .woocommerce-checkout-payment ~ .woocommerce-checkout-payment {
    display: none !important;
}
/* ============================================================
   CARDONGY - Payment Section Enhancement v2.0
   ============================================================ */

/* ===== Cardongy Payment Box ===== */
.cardongy-payment-box {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0 !important;
}

.cardongy-payment-box .payment-box-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0a1929 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* ===== Payment Methods List ===== */
.cardongy-payment-box .wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.cardongy-payment-box .wc_payment_method {
    background: #f9f9f9 !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 10px !important;
    padding: 15px 18px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
}

.cardongy-payment-box .wc_payment_method:hover {
    border-color: #d4a537 !important;
    background: #fffbf0 !important;
}

.cardongy-payment-box .wc_payment_method.selected,
.cardongy-payment-box .wc_payment_method:has(input:checked) {
    border-color: #d4a537 !important;
    background: linear-gradient(135deg, #fff8dc, #fffbf0) !important;
    box-shadow: 0 4px 15px rgba(212, 165, 55, 0.15) !important;
}

/* ===== Radio Button Custom ===== */
.cardongy-payment-box .wc_payment_method input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: #d4a537 !important;
    cursor: pointer !important;
    margin-inline-end: 12px !important;
    vertical-align: middle !important;
}

/* ===== Payment Label ===== */
.cardongy-payment-box .wc_payment_method label {
    font-weight: 600 !important;
    color: #0a1929 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

/* ===== Payment Icons ===== */
.cardongy-payment-box .wc_payment_method label img {
    max-height: 28px !important;
    max-width: 50px !important;
    width: auto !important;
    vertical-align: middle !important;
    margin-inline-start: 8px !important;
}

/* ===== Payment Description (تعليمات الدفع) ===== */
.cardongy-payment-box .payment_box {
    background: #fff !important;
    border: 1px dashed #d4a537 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-top: 12px !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    position: relative !important;
}

.cardongy-payment-box .payment_box::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    inset-inline-start: 20px !important;
    width: 0 !important;
    height: 0 !important;
    border-inline-start: 8px solid transparent !important;
    border-inline-end: 8px solid transparent !important;
    border-bottom: 8px solid #d4a537 !important;
}

.cardongy-payment-box .payment_box p {
    margin: 0 !important;
    color: #555 !important;
}

/* ===== Privacy Policy Text ===== */
.cardongy-payment-box .woocommerce-privacy-policy-text {
    background: #f8f9fa !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    color: #666 !important;
    margin: 15px 0 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.cardongy-payment-box .woocommerce-privacy-policy-text a {
    color: #d4a537 !important;
    text-decoration: underline !important;
}

/* ===== Place Order Button ===== */
.cardongy-payment-box .place-order,
.cardongy-payment-box .form-row.place-order {
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
}

.cardongy-place-order-btn,
.cardongy-payment-box #place_order {
    width: 100% !important;
    background: linear-gradient(135deg, #0a1929 0%, #0f2138 100%) !important;
    color: #d4a537 !important;
    border: 2px solid #d4a537 !important;
    padding: 16px 30px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-transform: uppercase !important;
    box-shadow: 0 5px 20px rgba(10, 25, 41, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.cardongy-place-order-btn:hover,
.cardongy-payment-box #place_order:hover {
    background: linear-gradient(135deg, #d4a537 0%, #b8862c 100%) !important;
    color: #0a1929 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 165, 55, 0.4) !important;
}

.cardongy-place-order-btn:active,
.cardongy-payment-box #place_order:active {
    transform: translateY(0) !important;
}

/* ============================================================
   Products List Enhancement
   ============================================================ */

.cardongy-review-order .review-products-list {
    padding: 15px !important;
}

.cardongy-review-order .review-product-item {
    display: grid !important;
    grid-template-columns: 60px 1fr auto !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px !important;
    background: #f9f9f9 !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    border: 1px solid #f0f0f0 !important;
}

.cardongy-review-order .review-product-item:last-child {
    margin-bottom: 0 !important;
}

/* Product Image */
.cardongy-review-order .review-product-image {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
}

.cardongy-review-order .review-product-image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    display: block !important;
}

/* Quantity Badge */
.cardongy-review-order .qty-badge {
    position: absolute !important;
    top: -8px !important;
    inset-inline-end: -8px !important;
    background: linear-gradient(135deg, #d4a537, #b8862c) !important;
    color: #fff !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 6px rgba(212, 165, 55, 0.4) !important;
}

/* Product Info */
.cardongy-review-order .review-product-info {
    min-width: 0 !important;
    overflow: hidden !important;
}

.cardongy-review-order .review-product-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0a1929 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Product Price */
.cardongy-review-order .review-product-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #d4a537 !important;
    white-space: nowrap !important;
    text-align: end !important;
}

/* ============================================================
   Totals Section Enhancement
   ============================================================ */

.cardongy-review-order .review-totals {
    padding: 15px 20px !important;
    background: #f8f9fa !important;
    border-top: 1px solid #f0f0f0 !important;
    margin-top: 10px !important;
}

.cardongy-review-order .review-total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    color: #555 !important;
    font-size: 14px !important;
}

.cardongy-review-order .review-total-row .label {
    color: #666 !important;
    font-weight: 500 !important;
}

.cardongy-review-order .review-total-row .value {
    color: #0a1929 !important;
    font-weight: 600 !important;
}

.cardongy-review-order .review-total-row.coupon {
    color: #22c55e !important;
}

.cardongy-review-order .review-total-row.coupon .value {
    color: #22c55e !important;
}

/* Grand Total */
.cardongy-review-order .review-total-row.grand-total {
    margin-top: 10px !important;
    padding-top: 15px !important;
    border-top: 2px dashed #d4a537 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.cardongy-review-order .review-total-row.grand-total .label {
    color: #0a1929 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 800 !important;
}

.cardongy-review-order .review-total-row.grand-total .value {
    color: #d4a537 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

/* Use the billing address unless "Ship to a different address" is checked. */
.cardongy-shipping-fields-wrap .shipping_address {
    display: none !important;
}

.cardongy-shipping-fields-wrap.is-different-address .shipping_address {
    display: block !important;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .cardongy-review-order .review-product-item {
        grid-template-columns: 50px 1fr !important;
        gap: 10px !important;
    }
    
    .cardongy-review-order .review-product-price {
        grid-column: 1 / -1 !important;
        text-align: start !important;
        padding-top: 8px !important;
        border-top: 1px dashed #e0e0e0 !important;
        margin-top: 8px !important;
    }
    
    .cardongy-review-order .review-product-image,
    .cardongy-review-order .review-product-image img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .cardongy-place-order-btn {
        font-size: 15px !important;
        padding: 14px 20px !important;
    }
}
