/* sciroxx-custom.css — hand-editable overrides layered on top of the lifted PrestaShop CSS.
   Loaded after the combined theme CSS. Source of truth lives in the project root;
   build_theme.py copies it into the theme and functions.php enqueues it. */

/* Drop the "JOIN US 24/7" promo popup (wtbannerspecial module) entirely. */
.wt-banner-special,
.banner-special-fixed,
.banner-special-content,
.show-banner-special {
    display: none !important;
}

/* ---------------- add-to-cart popup (#layer_cart) ---------------- */
.sx-layer-cart { position: fixed; inset: 0; z-index: 99999; }
.sx-layer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.sx-layer-box { position: relative; max-width: 860px; margin: 8vh auto; background: #fff; border-radius: 4px; display: flex; flex-wrap: wrap; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.sx-layer-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: #333; cursor: pointer; }
.sx-layer-left { flex: 1 1 420px; padding: 26px 28px; border-right: 1px solid #eee; }
.sx-layer-right { flex: 1 1 320px; padding: 26px 28px; }
.sx-layer-title { color: #4cbb6c; font-size: 20px; margin: 0 0 18px; font-weight: 600; }
.sx-layer-title .icon-ok { margin-right: 6px; }
.sx-layer-product { display: flex; gap: 16px; }
.sx-layer-img { width: 110px; height: auto; border: 1px solid #eee; }
.sx-layer-info p { margin: 0 0 6px; color: #444; }
.sx-layer-name { font-weight: 600; }
.sx-layer-count { font-size: 20px; margin: 0 0 16px; color: #333; }
.sx-layer-row { display: flex; justify-content: space-between; padding: 5px 0; color: #555; border-bottom: 1px solid #f0f0f0; }
.sx-layer-grand { font-weight: 700; color: #222; border-bottom: none; font-size: 17px; }
.sx-layer-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.sx-layer-checkout { background: #4cbb6c !important; color: #fff !important; border: none !important; }
@media (max-width: 640px) { .sx-layer-box { margin: 4vh 10px; } .sx-layer-left { border-right: none; border-bottom: 1px solid #eee; } }

/* ---------------- custom stepped checkout ---------------- */
.sx-checkout { margin-bottom: 30px; }
.sx-checkout-grid { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.sx-checkout-main { flex: 1 1 560px; min-width: 320px; }
.sx-checkout-summary { flex: 0 0 300px; background: #f7f7f7; border: 1px solid #e2e2e2; border-radius: 4px; padding: 16px 18px; }
.sx-step { border: 1px solid #e2e2e2; border-radius: 4px; padding: 18px 20px; background: #fbfbfb; margin-bottom: 16px; }
.sx-step .page-product-heading { margin-top: 0; }
.sx-optional { color: #06b2e6; font-size: 14px; }
.sx-muted { color: #777; font-size: 13px; }
.sx-required-note { color: #f13340; font-size: 12px; margin: 0 0 10px; }
.sx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.sx-field { margin: 0; display: flex; flex-direction: column; }
.sx-field.sx-full { grid-column: 1 / -1; }
.sx-field label { font-weight: 600; font-size: 13px; margin-bottom: 4px; color: #333; }
.sx-field .form-control { width: 100%; }
.sx-invalid { border-color: #f13340 !important; background: #fff6f6; }
.sx-signin-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.sx-signin-row .form-control { flex: 1 1 160px; }
.sx-step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.sx-step-nav .sx-next, .sx-step-nav .sx-place-order { margin-left: auto; background: #06b2e6; color: #fff; border: none; }
.sx-ship-options, .sx-pay-options { margin: 8px 0; }
.sx-ship-row, .sx-pay-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e2e2e2; border-radius: 4px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.sx-ship-row:hover, .sx-pay-row:hover { border-color: #06b2e6; }
.sx-ship-name, .sx-pay-name { flex: 1; font-weight: 600; }
.sx-ship-price { font-weight: 700; color: #333; }
.sx-pay-ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: bold; }
.sx-ico-btc { background: #F7931A; }
.sx-ico-usdt { background: #26A17B; }
.sx-terms { display: block; font-size: 13px; color: #555; margin: 12px 0; }
.sx-checkout-msg, .sx-login-msg { color: #f13340; font-size: 13px; margin: 8px 0 0; }
.sx-summary-table { width: 100%; font-size: 14px; }
.sx-summary-table td { padding: 6px 0; border-bottom: 1px solid #ececec; }
.sx-summary-table .sx-grand td { border-bottom: none; padding-top: 12px; font-size: 16px; }
.text-right { text-align: right; }
@media (max-width: 640px) { .sx-form-grid { grid-template-columns: 1fr; } }

/* Crypto payment card on the order-received (thank-you) page. */
.sx-pay-instructions { margin: 22px 0; }
.sx-pay-card {
    border: 2px solid #06b2e6;
    border-radius: 8px;
    padding: 18px 22px;
    background: #fff;
}
.sx-pay-title { color: #06b2e6; font-size: 20px; margin: 0 0 12px; }
.sx-pay-line { margin: 0 0 8px; color: #333; }
.sx-wallet-addr {
    background: #06232b;
    border: 1px solid #06b2e6;
    color: #4fd0f7;
    font-weight: bold;
    word-break: break-all;
    padding: 10px 12px;
    border-radius: 4px;
    margin: 0 0 12px;
    font-family: monospace;
}
.sx-pay-note { font-size: 13px; color: #666; margin: 0 0 6px; }

/* product-page Add-to-cart button: horizontal icon-box + text (match source) */
#add_to_cart .exclusive {
    display: block;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    min-height: 49px;
    padding: 0 22px 0 64px;
    line-height: 49px;
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
}
#add_to_cart .exclusive:before {
    position: absolute !important;
    left: 0; top: 0; bottom: 0;
    width: 51px;
    line-height: 49px;
    display: block !important;
    content: "\f07a";
    font-family: "FontAwesome";
    font-size: 23px;
    color: #fff;
    text-align: center;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,.28) !important;
    border-radius: 0 !important;
    text-shadow: 0 1px #015883;
}
#add_to_cart .exclusive.added:before { content: "\f00c"; }
#add_to_cart .exclusive span {
    display: inline !important;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    text-shadow: 0 1px #015883;
}

/* ---------------- blog ---------------- */
.sx-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sx-blog-card { border: 1px solid #e2e2e2; border-radius: 4px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sx-blog-thumb { display: block; }
.sx-blog-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.sx-blog-noimg { display: block; height: 180px; background: #eee; }
.sx-blog-title { font-size: 16px; margin: 12px 14px 4px; line-height: 1.35; }
.sx-blog-title a { color: #333; }
.sx-blog-title a:hover { color: #06b2e6; }
.sx-blog-date { color: #999; font-size: 12px; margin: 0 14px 8px; }
.sx-blog-excerpt { color: #666; font-size: 13px; margin: 0 14px 12px; flex: 1; }
.sx-blog-more { margin: 0 14px 14px; color: #06b2e6; font-weight: 600; font-size: 13px; }
.sx-single-thumb { margin: 14px 0 18px; }
.sx-single-thumb img { max-width: 100%; height: auto; border-radius: 4px; }
.sx-single-content { max-width: 820px; }
@media (max-width: 900px) { .sx-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sx-blog-grid { grid-template-columns: 1fr; } }

/* ---------------- content / functional pages ---------------- */
.sx-content-page { margin-bottom: 30px; }
.cms-content { color: #555; line-height: 1.75; }
.cms-content h2, .cms-content h3 { color: #444; margin: 20px 0 10px; }
.cms-content p { margin: 0 0 12px; }
.cms-content ul { margin: 0 0 12px 20px; }
.sx-contact-form { max-width: 620px; }
.sx-sitemap { display: flex; gap: 40px; flex-wrap: wrap; }
.sx-sitemap-col { flex: 1 1 260px; }
.sx-sitemap-col h3 { color: #06b2e6; border-bottom: 1px solid #e2e2e2; padding-bottom: 8px; }
.sx-sitemap-col ul { list-style: none; margin: 10px 0; padding: 0; }
.sx-sitemap-col li { padding: 4px 0; }
.sx-sitemap-col a { color: #555; }
.sx-sitemap-col a:hover { color: #06b2e6; }

/* ---------------- My Account ---------------- */
.sx-account-welcome { color: #666; margin: 6px 0 20px; }
.myaccount-link-list.sx-account-tiles {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; max-width: 760px;
}
.sx-account-tiles li { margin: 0; }
.sx-account-tiles li a {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(#fbfbfb, #f1f1f1); border: 1px solid #d6d4d4; border-radius: 3px;
    padding: 0; min-height: 52px; color: #555; font-weight: 600; text-decoration: none; overflow: hidden;
}
.sx-account-tiles li a:hover { border-color: #06b2e6; color: #06b2e6; }
.sx-account-tiles li a i {
    width: 52px; align-self: stretch; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #ff7a00; border-right: 1px solid #e2e0e0; background: #fff;
}
.sx-account-tiles li a span { padding: 4px 10px; }
.sx-logout-tile a i { color: #c0392b; }
.sx-account-back { margin-top: 26px; }

/* two-column auth (login / register) */
.sx-auth-cols { display: flex; gap: 26px; flex-wrap: wrap; margin: 14px 0; }
.sx-auth-col { flex: 1 1 320px; border: 1px solid #e2e2e2; border-radius: 4px; padding: 20px 22px; background: #fbfbfb; }
.sx-auth-col .form-row { margin-bottom: 12px; }
.sx-auth-col label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 4px; }
.sx-auth-col .form-control { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #d6d4d4; border-radius: 3px; }
.sx-forgot { font-size: 13px; }
.sx-btn-orange { background: #ff7a00 !important; color: #fff !important; border: none !important; padding: 9px 18px !important; border-radius: 3px; font-weight: 600; cursor: pointer; }
.sx-btn-orange:hover { background: #e56e00 !important; }
.sx-btn-green { background: #4cbb6c !important; color: #fff !important; border: none !important; padding: 9px 18px !important; border-radius: 3px; font-weight: 600; cursor: pointer; }
.sx-btn-green:hover { background: #43a95f !important; }
.sx-inline { display: inline-block; margin-right: 14px; font-weight: 400; }

/* account inner pages (orders / addresses / personal info) */
.woocommerce-MyAccount-content { min-height: 200px; }
.woocommerce-MyAccount-navigation { display: none; } /* source uses tiles + Back buttons, no menu */
.account-heading { font-size: 22px; text-transform: uppercase; color: #555; margin: 4px 0 16px; padding-bottom: 12px; border-bottom: 1px solid #e2e2e2; }
.sx-account-intro { color: #666; margin: 0 0 8px; }
.sx-account-subhead { color: #444; margin: 0 0 18px; }
.sx-account-back { margin-top: 26px; display: flex; gap: 10px; }

.sx-btn-dark { background: #6f6f6f !important; color: #fff !important; border: none !important; padding: 8px 16px !important; border-radius: 3px; font-weight: 600; text-decoration: none; display: inline-block; }
.sx-btn-dark:hover { background: #555 !important; color: #fff !important; }

/* address cards */
.sx-addresses { display: flex; gap: 22px; flex-wrap: wrap; }
.sx-address-card { flex: 1 1 300px; max-width: 420px; border: 1px solid #e2e2e2; border-radius: 4px; padding: 18px 20px; background: #fbfbfb; }
.sx-address-title { margin: 0 0 12px; font-size: 17px; color: #555; border-bottom: 1px solid #eee; padding-bottom: 10px; text-transform: uppercase; }
.sx-address-card address { font-style: normal; color: #555; line-height: 1.7; margin-bottom: 14px; }
.sx-address-empty { color: #888; margin-bottom: 14px; }

/* orders table */
.sx-orders-table { width: 100%; border-collapse: collapse; }
.sx-orders-table th { background: #f4f4f4; padding: 10px 12px; border: 1px solid #e2e2e2; text-align: left; }
.sx-orders-table td { padding: 10px 12px; border: 1px solid #e2e2e2; }

/* personal info form */
.sx-account-form { max-width: 560px; }
.sx-account-form .form-row { margin-bottom: 14px; }
.sx-account-form label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 4px; }
.sx-account-form .form-control { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #d6d4d4; border-radius: 3px; }
.sx-pw-fieldset { border: 1px solid #e2e2e2; border-radius: 4px; padding: 14px 18px; margin: 16px 0; }
.sx-pw-fieldset legend { font-size: 14px; font-weight: 600; width: auto; padding: 0 8px; border: none; margin: 0; color: #666; }

/* ---------------- cart + checkout polish ---------------- */

/* forward buttons green (source), back/secondary dark */
.sx-next, .sx-place-order, .standard-checkout,
.sx-layer-checkout, #order_step ~ * .button.standard-checkout {
    background: #4cbb6c !important; border: none !important; color: #fff !important;
    padding: 9px 18px !important; border-radius: 3px; font-weight: 600; cursor: pointer;
}
.sx-next:hover, .sx-place-order:hover, .standard-checkout:hover { background: #43a95f !important; }
.sx-prev, .button-exclusive {
    background: #6f6f6f !important; border: none !important; color: #fff !important;
    padding: 9px 16px !important; border-radius: 3px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.sx-prev:hover, .button-exclusive:hover { background: #5a5a5a !important; color:#fff !important; }
.sx-place-order[disabled] { opacity: .5; cursor: not-allowed; }

/* sign-in step */
.sx-signin-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.sx-signin-row .form-control { flex: 1 1 200px; height: 40px; padding: 6px 10px; border: 1px solid #d6d4d4; border-radius: 3px; }
.sx-login-btn { flex: 0 0 auto; background: #06b2e6 !important; color: #fff !important; border: none !important; padding: 9px 18px !important; border-radius: 3px; font-weight: 600; cursor: pointer; }
.sx-login-btn:hover { background: #0596c2 !important; }

/* address form controls */
.sx-field .form-control, .sx-field input, .sx-field select, .sx-field textarea {
    width: 100% !important; max-width: 100% !important; min-height: 40px;
    padding: 7px 10px; border: 1px solid #d6d4d4; border-radius: 3px; background: #fff;
    box-sizing: border-box; font-size: 14px;
}
.sx-field select { -webkit-appearance: menulist; appearance: menulist; height: 40px; }

/* cart qty stepper — clean horizontal [-] [n] [+] */
.cart_quantity .sx-qty { display: inline-flex; align-items: stretch; border: 1px solid #d6d4d4; border-radius: 4px; overflow: hidden; }
.sx-qty .sx-qty-up, .sx-qty .sx-qty-down {
    width: 34px; display: flex; align-items: center; justify-content: center;
    background: #f4f4f4; color: #333; text-decoration: none; font-size: 13px; border: none;
}
.sx-qty .sx-qty-up:hover, .sx-qty .sx-qty-down:hover { background: #06b2e6; color: #fff; }
.sx-qty .sx-qty-down { border-right: 1px solid #d6d4d4; }
.sx-qty .sx-qty-up { border-left: 1px solid #d6d4d4; }
.sx-qty .sx-qty-input { width: 44px; text-align: center; border: none; background: #fff; font-weight: 600; }

/* vouchers */
.cart_voucher h4 { margin: 0 0 8px; font-size: 16px; }
.sx-coupon { display: flex; gap: 8px; max-width: 380px; }
.sx-coupon .form-control { flex: 1; height: 40px; padding: 7px 10px; border: 1px solid #d6d4d4; border-radius: 3px; }
.sx-coupon button { background: #555 !important; color: #fff !important; border: none !important; padding: 0 20px !important; border-radius: 3px; font-weight: 600; cursor: pointer; }
.sx-coupon button:hover { background: #333 !important; }

/* cart totals lines */
.cart_totals .cart-prices-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eee; max-width: 320px; margin-left: auto; }
.cart_totals .cart_total_price { font-weight: 700; font-size: 17px; border-bottom: none; }
.sx-cart-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 20px 0; }
.cart_navigation { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }

/* Category grid: clear floats at the start of each row so uneven card
   heights don't leave an empty cell (PrestaShop does this via first-in-line). */
.product_list.grid > li { clear: none; }
@media (min-width: 992px) {
    .product_list.grid > li:nth-child(3n+1) { clear: both; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .product_list.grid > li:nth-child(2n+1) { clear: both; }
}
