/* =========================================================
   WEBTRIPATHI ELECTRONICS — MODERN STORE THEME
   ========================================================= */

:root {
  --wt-primary: #2563eb;
  --wt-primary-dark: #1d4ed8;
  --wt-dark: #0f172a;
  --wt-accent: #f97316;
  --wt-bg-light: #f8fafc;
  --wt-card-bg: #ffffff;
  --wt-text: #1e293b;
  --wt-muted: #64748b;
  --wt-radius: 14px;
  --wt-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --wt-shadow-hover: 0 12px 28px rgba(37, 99, 235, 0.16);
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif !important;
  color: var(--wt-text);
  background: var(--wt-bg-light);
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  color: var(--wt-dark);
  font-weight: 700;
}

a { transition: all 0.2s ease; }

/* ---------------------------------------------------------
   TOP HEADER / NAVBAR
--------------------------------------------------------- */
.site-header,
header.site-header,
.ast-primary-header-bar {
  background: #ffffff !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.main-header-menu a {
  font-weight: 600;
  color: var(--wt-dark) !important;
}

.main-header-menu a:hover {
  color: var(--wt-primary) !important;
}

.ast-site-identity .site-title a {
  color: var(--wt-dark) !important;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Cart icon highlight */
.ast-site-header-cart .count,
.ast-cart-menu-wrap .count {
  background: var(--wt-accent) !important;
  color: #fff !important;
}

/* ---------------------------------------------------------
   WHATSAPP FLOATING BUTTON
--------------------------------------------------------- */
.wt-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.2s ease;
}

.wt-whatsapp-float:hover {
  transform: scale(1.08);
}

@media (max-width: 576px) {
  .wt-whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
}

/* ---------------------------------------------------------
   EXTRA FOOTER BAR (About / Links / Payment)
--------------------------------------------------------- */
.wt-footer-extra {
  background: var(--wt-dark);
  padding: 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.wt-footer-extra-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.wt-footer-col h4 {
  color: #fff !important;
  font-size: 16px;
  margin-bottom: 12px;
}

.wt-footer-col p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  margin: 4px 0;
}

.wt-footer-col a {
  color: #93c5fd;
  text-decoration: none;
}

.wt-footer-col a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .wt-footer-extra-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   AUTO HOMEPAGE LAYOUT (front-page.php)
--------------------------------------------------------- */
.wt-home-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.wt-section-title {
  font-size: 26px;
  margin: 50px 0 22px;
  padding-left: 14px;
  border-left: 5px solid var(--wt-primary);
}

.wt-section-block ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.wt-section-block ul.products li.product {
  margin: 0 !important;
  width: 100% !important;
}

.wt-section-block ul.products.columns-4 li.product {
  float: none !important;
}

@media (max-width: 992px) {
  .wt-section-block ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .wt-section-block ul.products { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   HERO / BANNER SECTION (use with Elementor section id="wt-hero")
--------------------------------------------------------- */
.wt-hero {
  background: linear-gradient(135deg, var(--wt-dark) 0%, #1e3a8a 100%);
  border-radius: var(--wt-radius);
  padding: 70px 40px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.wt-hero h1 {
  color: #fff !important;
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.wt-hero p {
  color: #cbd5e1;
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 28px;
}

.wt-hero .wt-btn-accent {
  background: var(--wt-accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
}

.wt-hero .wt-btn-accent:hover {
  background: #ea580c;
  color: #fff;
}

/* ---------------------------------------------------------
   CATEGORY CARDS (Phones / Laptops / Buds etc.)
--------------------------------------------------------- */
.product-category,
.wt-category-card {
  border-radius: var(--wt-radius);
  overflow: hidden;
  box-shadow: var(--wt-shadow);
  background: var(--wt-card-bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  padding: 24px 12px;
}

.product-category:hover,
.wt-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wt-shadow-hover);
}

.product-category h2,
.product-category h3 {
  font-size: 16px;
  margin-top: 12px;
}

/* ---------------------------------------------------------
   PRODUCT GRID (Shop / Archive pages)
--------------------------------------------------------- */
ul.products li.product {
  background: var(--wt-card-bg);
  border-radius: var(--wt-radius);
  padding: 18px;
  box-shadow: var(--wt-shadow);
  border: 1px solid #eef1f5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--wt-shadow-hover);
}

ul.products li.product img {
  border-radius: 10px;
  background: #f1f5f9;
  object-fit: contain;
  aspect-ratio: 1/1;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--wt-dark);
  margin: 12px 0 6px;
  line-height: 1.4;
}

ul.products li.product .price {
  color: var(--wt-primary);
  font-weight: 700;
  font-size: 17px;
}

ul.products li.product .price del {
  color: var(--wt-muted);
  opacity: 0.7;
  font-weight: 400;
  font-size: 14px;
}

ul.products li.product .price ins {
  color: var(--wt-accent);
  text-decoration: none;
}

.wt-mini-badge {
  display: inline-block;
  font-size: 11px;
  background: #ecfdf5;
  color: #059669;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
  font-weight: 600;
}

.onsale {
  background: var(--wt-accent) !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  top: 12px !important;
  left: 12px !important;
}

/* Star ratings */
.star-rating {
  color: #fbbf24 !important;
}

/* ---------------------------------------------------------
   BUTTONS (Add to cart, View cart, etc.)
--------------------------------------------------------- */
a.button, button.button,
.single_add_to_cart_button,
.wc-forward,
.checkout-button {
  background: var(--wt-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 11px 24px !important;
  font-weight: 600 !important;
  border: none !important;
  letter-spacing: 0.2px;
}

a.button:hover, button.button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
  background: var(--wt-primary-dark) !important;
  color: #fff !important;
}

/* Secondary / outline buttons */
.wt-btn-outline {
  border: 2px solid var(--wt-primary);
  color: var(--wt-primary);
  background: transparent;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------------------------------------------------------
   SINGLE PRODUCT PAGE
--------------------------------------------------------- */
.single-product .summary.entry-summary .price {
  font-size: 28px;
  color: var(--wt-primary);
  font-weight: 800;
}

.single-product .woocommerce-product-gallery {
  border-radius: var(--wt-radius);
  overflow: hidden;
  background: #f8fafc;
}

.single-product .product_meta,
.single-product .woocommerce-tabs {
  font-size: 14px;
  color: var(--wt-muted);
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--wt-primary);
  font-weight: 700;
}

/* Quantity input */
.quantity .qty {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 10px;
}

/* ---------------------------------------------------------
   CART / CHECKOUT
--------------------------------------------------------- */
.woocommerce-cart table.cart,
.woocommerce-checkout table.shop_table {
  border-radius: var(--wt-radius);
  overflow: hidden;
  box-shadow: var(--wt-shadow);
  border: none !important;
}

.woocommerce-checkout #payment {
  background: var(--wt-card-bg) !important;
  border-radius: var(--wt-radius);
  box-shadow: var(--wt-shadow);
}

/* ---------------------------------------------------------
   TRUST BADGES / FEATURES STRIP (icons row under hero)
--------------------------------------------------------- */
.wt-features-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0;
}

.wt-feature-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  background: var(--wt-card-bg);
  border-radius: var(--wt-radius);
  padding: 20px 12px;
  box-shadow: var(--wt-shadow);
}

.wt-feature-item h4 {
  font-size: 15px;
  margin: 10px 0 4px;
}

.wt-feature-item p {
  font-size: 13px;
  color: var(--wt-muted);
  margin: 0;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer, footer.site-footer, .ast-footer-overlay {
  background: var(--wt-dark) !important;
  color: #cbd5e1 !important;
}

.site-footer a, footer.site-footer a {
  color: #93c5fd !important;
}

.site-footer h2, .site-footer h3,
footer.site-footer h2, footer.site-footer h3 {
  color: #fff !important;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 768px) {
  .wt-hero { padding: 40px 20px; text-align: center; }
  .wt-hero h1 { font-size: 28px; }
  .wt-hero p { margin-left: auto; margin-right: auto; }
  .wt-features-strip { flex-direction: column; }
}
