/*
Theme Name: Shoppi5
Theme URI: https://shoppi5.com
Author: Shoppi5 Team
Author URI: https://shoppi5.com
Description: A modern, Flipkart-style WooCommerce theme for Shoppi5. Fully compatible with Elementor page builder. Features include product sliders, category icons, deal timers, wishlist, cart drawer, and mobile-first responsive design. Perfect for fashion, electronics, home, and lifestyle stores.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shoppi5
Tags: woocommerce, elementor, e-commerce, shop, flipkart-style, responsive, mobile-friendly, red, modern

WooCommerce: true
WC requires at least: 6.0
WC tested up to: 8.5
*/

/* ============================================
   SHOPPI5 THEME - MAIN STYLES
   Compatible with WooCommerce + Elementor
   ============================================ */

:root {
  --sp5-primary: #7B1D2E;
  --sp5-primary-dark: #541220;
  --sp5-primary-deep: #3A0C17;
  --sp5-primary-light: #9E2640;
  --sp5-gold: #E8A020;
  --sp5-gold-light: #F5C75A;
  --sp5-cream: #FFF8F5;
  --sp5-ivory: #FFF2EE;
  --sp5-ink: #1A0A0E;
  --sp5-gray: #6B5B60;
  --sp5-light-gray: #D8CDD0;
  --sp5-xl-gray: #F4ECED;
  --sp5-green: #1A7A3C;
  --sp5-red: #C0392B;
  --sp5-shadow: 0 2px 12px rgba(90,10,30,.09);
  --sp5-shadow-md: 0 6px 28px rgba(90,10,30,.15);
  --sp5-radius: 10px;
  --sp5-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sp5-font);
  font-size: 14px;
  color: var(--sp5-ink);
  background: #EDE4E6;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--sp5-font); font-weight: 700; line-height: 1.2; color: var(--sp5-ink); }
a { color: var(--sp5-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sp5-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: var(--sp5-font); }

/* ── CONTAINER ── */
.sp5-container { max-width: 1280px; margin: 0 auto; padding: 0 14px; }
.sp5-section { padding: 20px 0; }

/* ── PROMO BAR ── */
.sp5-promo-bar {
  background: linear-gradient(90deg, var(--sp5-primary), var(--sp5-primary-light));
  color: #fff;
  text-align: center;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.sp5-promo-bar .highlight { color: var(--sp5-gold-light); }

/* ── HEADER ── */
#sp5-header {
  background: linear-gradient(135deg, var(--sp5-primary-deep), var(--sp5-primary) 55%, var(--sp5-primary-light));
  position: sticky;
  top: 0;
  z-index: 600;
  box-shadow: 0 3px 12px rgba(60,0,20,.35);
}
.sp5-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  max-width: 1280px;
  margin: 0 auto;
}
.sp5-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.sp5-logo img { height: 40px; width: auto; }
.sp5-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.sp5-logo-text em { font-style: italic; color: var(--sp5-gold-light); }
.sp5-logo-text sup { font-size: 9px; color: var(--sp5-gold-light); vertical-align: super; font-weight: 400; }

/* Search */
.sp5-search-form {
  flex: 1;
  display: flex;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.18);
  max-width: 680px;
}
.sp5-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--sp5-ink);
  min-width: 0;
  background: transparent;
}
.sp5-search-form input::placeholder { color: #aaa; }
.sp5-search-btn {
  background: var(--sp5-gold);
  border: none;
  cursor: pointer;
  padding: 0 16px;
  font-size: 17px;
  color: var(--sp5-primary-deep);
  flex-shrink: 0;
  transition: background .2s;
}
.sp5-search-btn:hover { background: var(--sp5-gold-light); }

/* Header actions */
.sp5-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.sp5-hbtn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--sp5-font);
  position: relative;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .2s;
  text-decoration: none;
}
.sp5-hbtn:hover, .sp5-hbtn:focus { background: rgba(255,255,255,.15); color: #fff; }
.sp5-hbtn-icon { font-size: 20px; line-height: 1; }
.sp5-hbtn-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--sp5-gold);
  color: var(--sp5-primary-deep);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category nav bar */
.sp5-catbar-wrap {
  background: var(--sp5-primary-deep);
  border-top: 1px solid rgba(255,255,255,.1);
}
.sp5-catbar {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 8px;
  max-width: 1280px;
  margin: 0 auto;
}
.sp5-catbar::-webkit-scrollbar { display: none; }
.sp5-catbar-item {
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 600;
  padding: 9px 13px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: .2s;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
}
.sp5-catbar-item:hover,
.sp5-catbar-item.current-menu-item,
.sp5-catbar-item:focus { color: #fff; border-bottom-color: var(--sp5-gold); }

/* ── HERO SLIDER ── */
.sp5-hero-slider { position: relative; overflow: hidden; border-radius: var(--sp5-radius); margin-bottom: 14px; }
.sp5-hero-slide {
  display: none;
  border-radius: var(--sp5-radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  background: linear-gradient(130deg, var(--sp5-primary-deep), var(--sp5-primary) 50%, #D4455A);
  align-items: center;
  padding: 28px 28px;
}
.sp5-hero-slide.active { display: flex; }
@media (min-width: 600px) { .sp5-hero-slide { min-height: 280px; padding: 40px 60px; } }
.sp5-hero-content { color: #fff; position: relative; z-index: 2; max-width: 540px; }
.sp5-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--sp5-gold);
  color: var(--sp5-primary-deep);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sp5-hero-title { font-size: clamp(22px,5vw,48px); font-weight: 800; line-height: 1.1; margin-bottom: 8px; color: #fff; }
.sp5-hero-sub { font-size: clamp(12px,2vw,15px); opacity: .85; margin-bottom: 20px; line-height: 1.6; }
.sp5-hero-btn {
  background: #fff;
  color: var(--sp5-primary);
  border: none;
  cursor: pointer;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--sp5-font);
  transition: .2s;
  text-decoration: none;
  display: inline-block;
  margin-right: 10px;
}
.sp5-hero-btn:hover { background: var(--sp5-gold); color: var(--sp5-primary-deep); }
.sp5-hero-btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--sp5-font);
  text-decoration: none;
  display: inline-block;
}
.sp5-hero-deco { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); font-size: clamp(90px,18vw,180px); opacity: .06; color: #fff; font-weight: 900; pointer-events: none; }
.sp5-hero-img { position: absolute; right: 0; top: 0; height: 100%; width: 45%; object-fit: cover; opacity: .2; pointer-events: none; }

/* Slider dots */
.sp5-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: #fff;
}
.sp5-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sp5-light-gray); cursor: pointer; border: none;
  transition: .2s;
}
.sp5-dot.active { background: var(--sp5-primary); width: 20px; border-radius: 4px; }
.sp5-slider-prev, .sp5-slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; z-index: 10; box-shadow: var(--sp5-shadow);
  transition: .2s;
}
.sp5-slider-prev { left: 10px; }
.sp5-slider-next { right: 10px; }
.sp5-slider-prev:hover, .sp5-slider-next:hover { background: var(--sp5-gold); }

/* ── MINI BANNERS ── */
.sp5-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width:600px) { .sp5-mini-grid { grid-template-columns: repeat(3,1fr); } }
.sp5-mini-b {
  border-radius: var(--sp5-radius);
  padding: 18px 14px;
  color: #fff;
  cursor: pointer;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
  text-decoration: none;
}
.sp5-mini-b:hover { transform: translateY(-2px); }
.sp5-mini-b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.3),transparent); }
.sp5-mini-b-txt { position: relative; z-index: 2; }
.sp5-mini-b .sp5-mt { font-weight: 700; font-size: 13px; color: #fff; }
.sp5-mini-b .sp5-ms { font-size: 11px; opacity: .85; margin-top: 2px; }
.sp5-mini-b.electronics { background: linear-gradient(135deg,#FF6B6B,#ee5a24); }
.sp5-mini-b.fashion { background: linear-gradient(135deg,#6C63FF,#341f97); }
.sp5-mini-b.home { background: linear-gradient(135deg,#1DD1A1,#00b894); }

/* ── SECTION CARD ── */
.sp5-card {
  background: #fff;
  border-radius: var(--sp5-radius);
  box-shadow: var(--sp5-shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.sp5-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 3px solid var(--sp5-primary);
}
.sp5-card-title { font-size: 16px; font-weight: 800; color: var(--sp5-primary); }
.sp5-card-sub { font-size: 11px; color: var(--sp5-gray); margin-top: 2px; }
.sp5-card-body { padding: 14px 16px; }
.sp5-see-all {
  background: none;
  border: 1.5px solid var(--sp5-primary);
  color: var(--sp5-primary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--sp5-font);
  transition: .15s;
  text-decoration: none;
  flex-shrink: 0;
}
.sp5-see-all:hover { background: var(--sp5-primary); color: #fff; }

/* ── COLORFUL CATEGORY ICONS ── */
.sp5-cat-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.sp5-cat-row::-webkit-scrollbar { display: none; }
.sp5-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 10px;
  cursor: pointer;
  min-width: 74px;
  flex-shrink: 0;
  border-radius: 10px;
  transition: .15s;
  text-decoration: none;
}
.sp5-cat-item:hover { background: var(--sp5-xl-gray); }
.sp5-cat-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform .2s;
}
.sp5-cat-item:hover .sp5-cat-icon-wrap { transform: translateY(-3px) scale(1.08); }
.sp5-cat-label { font-size: 10px; font-weight: 700; color: var(--sp5-ink); text-align: center; line-height: 1.2; }

/* ── DEAL TIMER ── */
.sp5-deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 10px;
  border-bottom: 3px solid var(--sp5-primary);
  flex-wrap: wrap;
  gap: 8px;
}
.sp5-timer { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--sp5-gray); font-weight: 600; }
.sp5-timer-block {
  background: var(--sp5-primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
  min-width: 28px;
  text-align: center;
}

/* ── HORIZONTAL SCROLL ROW ── */
.sp5-hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.sp5-hscroll::-webkit-scrollbar { display: none; }

/* ── PRODUCT CARD ── */
.sp5-product-card, .woocommerce ul.products li.product {
  background: #fff;
  border-radius: var(--sp5-radius);
  border: 1px solid #ede3e5;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.sp5-product-card:hover, .woocommerce ul.products li.product:hover {
  box-shadow: var(--sp5-shadow-md);
  transform: translateY(-3px);
}
.sp5-product-card.sp5-sm { width: 158px; flex-shrink: 0; }
.sp5-product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--sp5-xl-gray); }
.sp5-product-img-wrap img, .woocommerce ul.products li.product img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.sp5-product-card:hover .sp5-product-img-wrap img { transform: scale(1.06); }
.sp5-product-disc {
  position: absolute; top: 8px; left: 8px;
  background: var(--sp5-primary); color: #fff;
  font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 4px; z-index: 2;
}
.sp5-product-wish {
  position: absolute; top: 6px; right: 6px;
  background: #fff; border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.14); font-size: 14px; z-index: 2;
  transition: transform .2s;
}
.sp5-product-wish:hover { transform: scale(1.2); }
.sp5-product-badge {
  position: absolute; bottom: 7px; left: 8px;
  background: var(--sp5-green); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 3px;
}
.sp5-product-body { padding: 11px; flex: 1; display: flex; flex-direction: column; }
.sp5-product-brand { font-size: 10px; color: var(--sp5-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.sp5-product-name, .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 12px; font-weight: 700; margin-bottom: 5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1; color: var(--sp5-ink);
}
.sp5-product-rating {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--sp5-green); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  margin-bottom: 6px; width: fit-content;
}
.sp5-product-price-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.sp5-product-price, .woocommerce ul.products li.product .price ins { font-size: 14px; font-weight: 800; color: var(--sp5-ink); }
.sp5-product-old, .woocommerce ul.products li.product .price del { font-size: 10px; color: var(--sp5-gray); text-decoration: line-through; }
.sp5-product-save { font-size: 10px; color: var(--sp5-green); font-weight: 700; }

/* Add to cart button - WooCommerce compatible */
.sp5-add-btn,
.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.add_to_cart_button {
  width: 100%;
  background: var(--sp5-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--sp5-font);
  transition: .2s;
  text-align: center;
  display: block;
  text-decoration: none;
}
.sp5-add-btn:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.add_to_cart_button:hover { background: var(--sp5-primary-dark); color: #fff; }

/* ── PRODUCT GRID ── */
.sp5-product-grid,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width:480px) { .sp5-product-grid, .woocommerce ul.products { grid-template-columns: repeat(3,1fr); } }
@media (min-width:900px) { .sp5-product-grid, .woocommerce ul.products { grid-template-columns: repeat(4,1fr); } }
@media (min-width:1200px) { .sp5-product-grid, .woocommerce ul.products { grid-template-columns: repeat(5,1fr); } }

/* ── WOOCOMMERCE SHOP ── */
.woocommerce-page .woocommerce { max-width: 1280px; margin: 0 auto; padding: 14px; }
.woocommerce-products-header { display: none; }
.woocommerce-result-count { font-size: 13px; color: var(--sp5-gray); margin-bottom: 10px; }
.woocommerce-ordering select {
  border: 1.5px solid var(--sp5-light-gray);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--sp5-font);
  outline: none;
  background: #fff;
  cursor: pointer;
}

/* ── WOOCOMMERCE SINGLE PRODUCT ── */
.woocommerce div.product { max-width: 1280px; margin: 0 auto; padding: 14px; }
.woocommerce div.product div.images { border-radius: var(--sp5-radius); overflow: hidden; }
.woocommerce div.product div.images img { border-radius: var(--sp5-radius); }
.woocommerce div.product div.summary { padding-left: 20px; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  font-size: 28px; font-weight: 800; color: var(--sp5-ink);
}
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product p.price del { color: var(--sp5-gray); font-size: 16px; }
.woocommerce div.product .product_title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.woocommerce div.product form.cart .qty {
  border: 1.5px solid var(--sp5-light-gray);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px;
  width: 70px;
  font-family: var(--sp5-font);
  outline: none;
}

/* ── WOOCOMMERCE CART ── */
.woocommerce-cart .woocommerce { max-width: 1280px; margin: 0 auto; padding: 14px; }
.woocommerce table.cart { border: none; }
.woocommerce table.cart td, .woocommerce table.cart th { border: none; border-bottom: 1px solid var(--sp5-xl-gray); }
.woocommerce table.cart th { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sp5-gray); }
.woocommerce .cart-collaterals { margin-top: 20px; }
.woocommerce .cart_totals { background: #fff; border-radius: var(--sp5-radius); box-shadow: var(--sp5-shadow); padding: 20px; }
.woocommerce .cart_totals h2 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sp5-gray); margin-bottom: 14px; }
.woocommerce .cart_totals table { width: 100%; }
.woocommerce .cart_totals table td, .woocommerce .cart_totals table th { padding: 8px 0; font-size: 13px; border: none; border-bottom: 1px solid var(--sp5-xl-gray); }
/* WooCommerce proceed button */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: block;
  width: 100%;
  background: var(--sp5-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  font-family: var(--sp5-font);
  transition: .2s;
  text-decoration: none;
  margin-top: 14px;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--sp5-primary-dark); color: #fff; }

/* ── WOOCOMMERCE CHECKOUT ── */
.woocommerce-checkout .woocommerce { max-width: 1280px; margin: 0 auto; padding: 14px; }
.woocommerce-checkout #order_review_heading { font-size: 15px; font-weight: 800; color: var(--sp5-primary); margin-bottom: 14px; }
.woocommerce form .form-row label { font-size: 12px; font-weight: 700; color: var(--sp5-gray); margin-bottom: 4px; display: block; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1.5px solid var(--sp5-light-gray);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--sp5-font);
  outline: none;
  width: 100%;
  color: var(--sp5-ink);
  transition: border-color .2s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { border-color: var(--sp5-primary); box-shadow: 0 0 0 3px rgba(123,29,46,.08); }

/* WooCommerce payment section */
#payment { background: var(--sp5-xl-gray); border-radius: var(--sp5-radius); padding: 18px; }
#payment ul.payment_methods { list-style: none; }
#payment ul.payment_methods li {
  background: #fff; border: 1.5px solid var(--sp5-light-gray);
  border-radius: 8px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; transition: .2s;
}
#payment ul.payment_methods li:has(input:checked) { border-color: var(--sp5-primary); background: var(--sp5-ivory); }
#payment ul.payment_methods label { font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; }
#place_order {
  width: 100%; background: var(--sp5-primary); color: #fff; border: none; cursor: pointer;
  padding: 16px; border-radius: 8px; font-size: 16px; font-weight: 800;
  font-family: var(--sp5-font); transition: .2s; margin-top: 14px;
}
#place_order:hover { background: var(--sp5-primary-dark); }

/* ── WISHLIST DRAWER ── */
.sp5-backdrop {
  position: fixed; inset: 0; background: rgba(30,0,10,.45);
  z-index: 700; opacity: 0; pointer-events: none; transition: .3s;
}
.sp5-backdrop.open { opacity: 1; pointer-events: all; }
.sp5-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 96vw); background: #fff; z-index: 701;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.25,.46,.45,.94);
  display: flex; flex-direction: column;
}
.sp5-drawer.open { transform: translateX(0); }
.sp5-drawer-head {
  padding: 15px 17px;
  background: linear-gradient(90deg, var(--sp5-primary-dark), var(--sp5-primary));
  display: flex; align-items: center; justify-content: space-between;
}
.sp5-drawer-head h3 { font-size: 16px; font-weight: 800; color: #fff; }
.sp5-drawer-close { background: none; border: none; cursor: pointer; color: #fff; font-size: 22px; line-height: 1; }
.sp5-drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
.sp5-wish-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--sp5-xl-gray); }
.sp5-wish-img { width: 62px; height: 62px; object-fit: cover; border-radius: 7px; }
.sp5-wish-name { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.sp5-wish-price { font-size: 13px; font-weight: 800; color: var(--sp5-primary); margin-bottom: 7px; }
.sp5-wish-add { background: var(--sp5-primary); color: #fff; border: none; cursor: pointer; padding: 6px 13px; border-radius: 6px; font-size: 11px; font-weight: 700; font-family: var(--sp5-font); }

/* ── MOBILE BOTTOM NAV ── */
.sp5-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: #fff; border-top: 1px solid var(--sp5-xl-gray);
  display: grid; grid-template-columns: repeat(5,1fr);
  box-shadow: 0 -3px 14px rgba(90,10,30,.10);
}
@media (min-width:768px) { .sp5-bottom-nav { display: none; } }
.sp5-bn-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; cursor: pointer; background: none; border: none;
  font-size: 9px; font-weight: 700; color: var(--sp5-gray);
  font-family: var(--sp5-font); position: relative;
  text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none;
}
.sp5-bn-btn.active, .sp5-bn-btn:hover { color: var(--sp5-primary); }
.sp5-bn-icon { font-size: 20px; line-height: 1; }
.sp5-bn-badge {
  position: absolute; top: 4px; right: calc(50% - 20px);
  background: var(--sp5-primary); color: #fff;
  border-radius: 50%; width: 14px; height: 14px;
  font-size: 8px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── TOAST ── */
.sp5-toast {
  position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%) translateY(14px);
  background: var(--sp5-primary-deep); color: #fff;
  padding: 11px 20px; border-radius: 8px; font-size: 13px; font-weight: 600;
  box-shadow: var(--sp5-shadow-md); opacity: 0; transition: .3s; z-index: 800;
  white-space: nowrap; pointer-events: none; max-width: 90vw;
}
@media (min-width:768px) { .sp5-toast { bottom: 22px; right: 18px; left: auto; transform: translateX(0) translateY(14px); max-width: 340px; } }
.sp5-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width:768px) { .sp5-toast.show { transform: translateX(0) translateY(0); } }

/* ── FOOTER ── */
#sp5-footer { background: var(--sp5-primary-deep); color: rgba(255,255,255,.65); margin-top: 20px; }
.sp5-footer-top { max-width: 1280px; margin: 0 auto; padding: 36px 14px; display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
@media (min-width:700px) { .sp5-footer-top { grid-template-columns: repeat(4,1fr); } }
.sp5-footer-col h4 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sp5-footer-col ul { list-style: none; }
.sp5-footer-col li { margin-bottom: 7px; }
.sp5-footer-col a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 12px; transition: .2s; }
.sp5-footer-col a:hover { color: var(--sp5-gold-light); }
.sp5-footer-bottom { background: rgba(0,0,0,.22); text-align: center; padding: 14px; font-size: 11px; border-top: 1px solid rgba(255,255,255,.06); }

/* ── ELEMENTOR COMPATIBILITY ── */
.elementor-page .sp5-header-inner { flex-wrap: wrap; }
.elementor-section { margin: 0; }
.elementor-widget-wrap { width: 100%; }

/* ── BODY PADDING FOR MOBILE NAV ── */
@media (max-width:767px) { body { padding-bottom: 64px; } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sp5-header-inner { gap: 6px; padding: 8px 10px; }
  .sp5-logo-text { font-size: 18px; }
  .sp5-search-form { max-width: 100%; }
  .sp5-hbtn span:not(.sp5-hbtn-icon):not(.sp5-hbtn-badge) { display: none; }
  .woocommerce div.product div.summary { padding-left: 0; margin-top: 14px; }
}

/* ── PRINT ── */
@media print { #sp5-header, .sp5-bottom-nav, .sp5-toast, .sp5-drawer, .sp5-backdrop { display: none; } }
