/* ==========================================
   SwingShift WooCommerce Custom CSS Stylesheet
   ========================================== */

/* 1. Global / General WooCommerce Page Shell & Layout */
.woocommerce-account .site-main,
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
    background: #0a0a0a !important;
    padding-top: 110px !important;
    padding-bottom: 90px !important;
    min-height: 85vh;
}

/* Remove double top-padding on WooCommerce pages */
.woocommerce-account .page-shell,
.woocommerce-cart .page-shell,
.woocommerce-checkout .page-shell,
.woocommerce-account .page-shell--wide,
.woocommerce-cart .page-shell--wide,
.woocommerce-checkout .page-shell--wide {
    padding-top: 0 !important;
}

/* 2. WooCommerce Dark Mode Input Fields */
.woocommerce-cart input.input-text,
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-cart .quantity .qty,
.woocommerce-cart table.cart td.actions .coupon .input-text {
    min-height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #2a2a2a !important;
    background: #111111 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.2s ease !important;
}

.woocommerce-cart input.input-text:focus,
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus {
    border-color: #ff7a00 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.15) !important;
}

/* 3. WooCommerce Custom Checkout Panels */
.woocommerce-checkout .col2-set,
.woocommerce-checkout-review-order {
    background: #141414 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 18px !important;
    padding: 28px !important;
    margin-bottom: 28px !important;
}

/* ========================================================
   ULTRA-ROBUST WOOCOMMERCE BLOCKS OVERRIDES (MEGA SPECIFICITY)
   ======================================================== */

/* Proceed to Checkout & Place Order Buttons - Targets exact interactive elements */
html body .wp-block-woocommerce-cart .wc-block-cart__submit a,
html body .wp-block-woocommerce-cart .wc-block-cart__submit button,
html body .wc-block-components-checkout-button a,
html body .wc-block-components-checkout-button button,
html body .wc-block-components-checkout-button__button,
html body .wc-block-cart__submit-button a,
html body .wc-block-cart__submit-button button,
html body.woocommerce-cart .checkout-button,
html body.woocommerce-cart .wc-proceed-to-checkout a,
html body.woocommerce-cart .wc-proceed-to-checkout button,
html body.woocommerce-checkout #place_order,
html body.woocommerce-checkout button[type="submit"] {
    background: linear-gradient(135deg, #ff7a00 0%, #e65c00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 18px rgba(255, 122, 0, 0.24) !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important; /* Enforce text on a single line! */
}

html body .wp-block-woocommerce-cart .wc-block-cart__submit a:hover,
html body .wp-block-woocommerce-cart .wc-block-cart__submit button:hover,
html body .wc-block-components-checkout-button a:hover,
html body .wc-block-components-checkout-button button:hover,
html body .wc-block-components-checkout-button__button:hover,
html body .wc-block-cart__submit-button a:hover,
html body .wc-block-cart__submit-button button:hover,
html body.woocommerce-cart .checkout-button:hover,
html body.woocommerce-cart .wc-proceed-to-checkout a:hover,
html body.woocommerce-cart .wc-proceed-to-checkout button:hover,
html body.woocommerce-checkout #place_order:hover,
html body.woocommerce-checkout button[type="submit"]:hover {
    background: linear-gradient(135deg, #ff9133 0%, #ff6b00 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(255, 122, 0, 0.38) !important;
    color: #ffffff !important;
}

/* Gutenberg Cart Block Layout Containers (Left main columns and Right Sidebars) */
html body .wp-block-woocommerce-cart .wc-block-cart__main,
html body .wp-block-woocommerce-cart .wc-block-cart__sidebar,
html body .wp-block-woocommerce-cart .wc-block-cart__totals-section,
html body .wc-block-cart__totals {
    background: #141414 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 18px !important;
    padding: 28px !important;
    margin-bottom: 24px !important;
}

/* Individual Cart Rows */
html body .wp-block-woocommerce-cart .wc-block-cart-items__row,
html body .wp-block-woocommerce-cart .wc-block-cart-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
    padding: 20px 0 !important;
}

/* Headings and brand titles */
html body .wp-block-woocommerce-cart h1,
html body .wp-block-woocommerce-cart h2,
html body .wp-block-woocommerce-cart h3,
html body .wp-block-woocommerce-cart .wc-block-cart__title,
html body .wp-block-woocommerce-cart .wc-block-cart__totals-title {
    font-family: "Barlow Condensed", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    letter-spacing: 0.03em !important;
}

/* Coupon section accordion styles */
html body .wp-block-woocommerce-cart .wc-block-components-totals-coupon,
html body .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button,
html body .wp-block-woocommerce-cart .wc-block-components-totals-coupon__summary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Discounts badges */
html body .wp-block-woocommerce-cart .wc-block-components-sale-badge,
html body .swingshift-save-badge,
html body .wc-block-components-totals-item__description {
    background: rgba(255, 122, 0, 0.12) !important;
    color: #ff7a00 !important;
    border: 1px solid rgba(255, 122, 0, 0.25) !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: inline-flex !important;
}

/* Trash remove button */
html body .wp-block-woocommerce-cart .wc-block-cart-item__remove-link,
html body .wp-block-woocommerce-cart .wc-block-cart-item__remove-link button,
html body .woocommerce-cart-form a.remove,
html body .swingshift-cart-row__remove {
    color: #ff3b30 !important;
    background: rgba(255, 59, 48, 0.08) !important;
    border: 1px solid rgba(255, 59, 48, 0.18) !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    width: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
}

html body .wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover,
html body .wp-block-woocommerce-cart .wc-block-cart-item__remove-link button:hover,
html body .woocommerce-cart-form a.remove:hover,
html body .swingshift-cart-row__remove:hover {
    background: rgba(255, 59, 48, 0.16) !important;
    color: #ff453a !important;
    transform: translateY(-1px) !important;
    border-color: rgba(255, 59, 48, 0.3) !important;
}

/* Quantity Counter Customizer in Cart Blocks */
html body .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
    background: #111111 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 8px !important;
}

html body .wp-block-woocommerce-cart .wc-block-components-quantity-selector input {
    color: #ffffff !important;
    background: transparent !important;
}

/* Clean spacing and borders */
html body .wp-block-woocommerce-cart .wc-block-components-totals-item {
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #e5e5e5 !important;
}

/* ========================================================
   GORGEOUS EMPTY CART STATE CUSTOMIZATION
   ======================================================== */
   
/* Centered Premium Container */
html body .wp-block-woocommerce-cart-items-block.is-empty,
html body .wc-block-cart__empty-container,
html body.woocommerce-cart .woocommerce-info,
html body.woocommerce-cart .cart-empty {
    background: radial-gradient(circle at top left, #141414, #0f0f0f) !important;
    border: 1px solid rgba(255, 122, 0, 0.15) !important;
    border-radius: 24px !important;
    padding: 60px 40px !important;
    text-align: center !important;
    max-width: 680px !important;
    margin: 40px auto !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Subtle glow effect behind empty container */
html body .wc-block-cart__empty-container::before,
html body .cart-empty::before {
    content: '' !important;
    position: absolute !important;
    top: -50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 250px !important;
    height: 120px !important;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.12) 0%, rgba(255, 122, 0, 0) 70%) !important;
    pointer-events: none !important;
}

/* Stunning Neon Pulsing Shopping Bag Icon */
html body .wc-block-cart__empty-image,
html body .wc-block-cart__empty-container::after,
html body.woocommerce-cart .woocommerce-info::before {
    content: '' !important;
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 24px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") no-repeat center/contain !important;
    filter: drop-shadow(0 0 12px rgba(255, 122, 0, 0.55)) !important;
    animation: cartPulse 2s infinite ease-in-out !important;
    display: block !important;
}

/* Force-hide default sad emoji image */
html body .wc-block-cart__empty-image img,
html body .woocommerce-info img,
html body .wc-block-cart__empty-container img {
    display: none !important;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255, 122, 0, 0.55)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(255, 122, 0, 0.85)); }
}

/* Elegant Title Formatting */
html body .wc-block-cart__empty-title,
html body .woocommerce-info .wc-block-grid__empty-text,
html body .cart-empty,
html body .wp-block-woocommerce-cart h1.wc-block-cart__title {
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    background: linear-gradient(180deg, #ffffff 0%, #bbbbbb 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

/* Subtle Description Text */
html body .wc-block-cart__empty-text,
html body.woocommerce-cart .woocommerce-info {
    font-family: 'Inter', sans-serif !important;
    color: #a0a0a0 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    max-width: 440px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

/* Premium Primary Call-To-Action Button */
html body .wc-block-cart__empty-container a.wc-block-components-button,
html body.woocommerce-cart .return-to-shop a.button {
    background: linear-gradient(135deg, #ff7a00 0%, #e65c00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 14px 36px !important;
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.28) !important;
    text-decoration: none !important;
}

html body .wc-block-cart__empty-container a.wc-block-components-button:hover,
html body.woocommerce-cart .return-to-shop a.button:hover {
    background: linear-gradient(135deg, #ff9133 0%, #ff6b00 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 28px rgba(255, 122, 0, 0.45) !important;
}
