/*
Theme Name: ideaTorus Shop Theme
Theme URI: https://ideatorus.com
Author: ideaTorus
Author URI: https://ideatorus.com
Description: Custom Elementor & WooCommerce Theme with Neon aesthetics.
Version: 1.3
Text Domain: ideatorus
*/

/* ============================================================
   TOKENS — ideaTorus DNA
   ============================================================ */
:root {
  --void:    #07070e;
  --deep:    #0a0a14;
  --surface: #0f0f1c;
  --lift:    #161626;
  --rim:     #1e1e33;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);

  /* Blue Neon replacing Violet */
  --violet:  #0ea5e9;
  --violet2: #38bdf8;
  --violet3: #7dd3fc;
  --vdim:    rgba(14,165,233,0.12);
  --vglow:   rgba(14,165,233,0.25);

  /* Orange/Amber Neon replacing Teal */
  --teal:    #f97316;
  --teal2:   #fb923c;
  --tdim:    rgba(249,115,22,0.1);

  --rose:    #f43f5e;
  --amber:   #eab308;

  --t1: #f1f0fb;
  --t2: #9d9db8;
  --t3: #5a5a78;
  --t4: #2e2e48;

  --f-display: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;
  --r: 14px;
  --r2: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--t1);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--f-body); }
img { display: block; max-width: 100%; }

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; position: relative; }

/* WooCommerce Global Styles */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important;
}
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: var(--surface) !important;
    border: 0.5px solid var(--border) !important;
    border-radius: var(--r2) !important;
    padding: 24px !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
    background: var(--lift) !important;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15) !important;
}
.woocommerce ul.products li.product h2, .woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--t1) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-top: 20px !important;
    flex-grow: 1 !important;
    font-family: var(--f-display) !important;
}
.woocommerce ul.products li.product .price {
    color: var(--violet2) !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    margin-bottom: 20px !important;
}
.woocommerce ul.products li.product .button {
    background: var(--violet) !important;
    color: white !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important;
    text-decoration: none !important;
    display: block !important;
}
.woocommerce ul.products li.product .button:hover {
    background: #0284c7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5) !important;
}
.woocommerce ul.products li.product img {
    border-radius: 12px !important;
    mix-blend-mode: screen !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    background: rgba(255,255,255,0.05) !important;
    padding: 10px;
}
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    background: var(--vdim) !important;
    border: 1px solid var(--vglow) !important;
    border-radius: 12px !important;
    color: var(--t1) !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
}

/* Custom Select Dropdowns */
select, .woocommerce-ordering select {
    background-color: var(--surface) !important;
    color: var(--t1) !important;
    border: 0.5px solid var(--border2) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-family: var(--f-body) !important;
    font-size: 13px !important;
    outline: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239d9db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
select:hover, .woocommerce-ordering select:hover, select:focus, .woocommerce-ordering select:focus {
    border-color: var(--violet) !important;
    box-shadow: 0 0 0 2px var(--vdim) !important;
}
select option {
    background-color: var(--deep) !important;
    color: var(--t1) !important;
    padding: 10px !important;
}



/* --- WOOCOMMERCE ELEGANT REDESIGN --- */

/* Base & Typography */
.woocommerce {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #cbd5e1 !important;
}

/* Elegant Form Inputs */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.select2-container .select2-selection--single {
    background-color: #0c0d14 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    height: auto !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
    outline: none !important;
}

.woocommerce form .form-row label {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* 2-Column Layout Fixes */
.woocommerce-checkout .col2-set {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    flex: 1 1 100% !important;
    width: 100% !important;
    float: none !important;
    background: #08090f !important;
    padding: 30px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
}

@media(min-width: 992px) {
    .woocommerce-checkout .col2-set .col-1 {
        flex: 1 1 55% !important;
    }
    .woocommerce-checkout .col2-set .col-2 {
        flex: 1 1 40% !important;
    }
}

/* Order Summary (Your Order) */
#order_review_heading {
    margin-top: 40px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
}

.woocommerce-checkout-review-order {
    background-color: #05050A !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}

.woocommerce table.shop_table {
    border: none !important;
    background: transparent !important;
}
.woocommerce table.shop_table th, 
.woocommerce table.shop_table td {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    border-bottom: none !important;
    padding: 16px 12px !important;
    color: #cbd5e1 !important;
}
.woocommerce table.shop_table th {
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    color: #64748b !important;
}

/* Elegant Quantity Selectors */
.woocommerce .quantity .qty {
    background-color: #0c0d14 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    padding: 10px !important;
    font-size: 16px !important;
    width: 70px !important;
    height: 44px !important;
    text-align: center !important;
}

/* Payment Box */
.woocommerce-checkout #payment {
    background: #08090f !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 30px !important;
}
.woocommerce-checkout #payment div.payment_box {
    background-color: #0c0d14 !important;
    color: #94a3b8 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    font-size: 14px !important;
}
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #0c0d14 !important;
}

/* Premium Buttons */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
}
.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6) !important;
    background: linear-gradient(135deg, #38bdf8, #3b82f6) !important;
}

/* Hide some messy elements */
.woocommerce-form-coupon-toggle {
    margin-bottom: 30px !important;
    padding: 15px !important;
    background: #08090f !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}



/* Center and constrain checkout page */
.woocommerce-checkout form.checkout {
    max-width: 1100px !important;
    margin: 0 auto !important;
}

/* Tighter Form Elements */
.woocommerce-checkout .form-row {
    margin-bottom: 12px !important;
}
.woocommerce-checkout .form-row label {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    color: #cbd5e1 !important;
}
.woocommerce-checkout .input-text, 
.woocommerce-checkout select {
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    height: 40px !important;
}

/* Modern Grid Layout for Checkout */
@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid !important;
        grid-template-columns: 1fr 380px !important;
        gap: 30px !important;
        align-items: start !important;
    }
    
    /* Left column - Billing/Shipping */
    .woocommerce-checkout form.checkout .col2-set {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        margin-bottom: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    .woocommerce-checkout form.checkout .col2-set .col-1,
    .woocommerce-checkout form.checkout .col2-set .col-2 {
        padding: 20px !important;
        background: #08090f !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255,255,255,0.03) !important;
    }

    /* Right column - Order Summary */
    .woocommerce-checkout form.checkout #order_review_heading {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin-top: 0 !important;
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    .woocommerce-checkout form.checkout #order_review {
        grid-column: 2 !important;
        grid-row: 2 !important;
        position: sticky !important;
        top: 100px !important;
        padding: 20px !important;
    }
}

/* For smaller screens, stack but keep constrained */
@media (max-width: 991px) {
    .woocommerce-checkout form.checkout .col2-set {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .woocommerce-checkout form.checkout .col2-set .col-1,
    .woocommerce-checkout form.checkout .col2-set .col-2 {
        padding: 16px !important;
    }
}

/* Tighten Review Order Table */
.woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout-review-order table.shop_table td {
    padding: 10px 0 !important;
    font-size: 13px !important;
}
.woocommerce-checkout-review-order {
    padding: 20px !important;
    border-radius: 12px !important;
}
#payment .payment_methods li {
    padding: 10px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

/* Standard Pages Fix (Terms, Privacy, Refund) */
.page-template-default .site-main {
    background-color: var(--void) !important;
    color: var(--t1) !important;
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.page-template-default .site-main p,
.page-template-default .site-main li,
.page-template-default .site-main span,
.page-template-default .site-main h1,
.page-template-default .site-main h2,
.page-template-default .site-main h3,
.page-template-default .site-main h4 {
    color: var(--t1) !important;
}
.page-template-default .site-main a {
    color: var(--violet2) !important;
}
