/*
Theme Name: ShopingWay
Theme URI: https://www.shopingway.com
Author: ShopingWay
Description: Dark-magenta e-commerce theme with hero banner, marquee strip, trust badges, animated stats, customer reviews and WhatsApp Cash-on-Delivery ordering. WooCommerce compatible. Colors, fonts, texts, WhatsApp number sab Appearance > Customize se change hote hain.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: shopingway
Tags: e-commerce, ecommerce, shop, woocommerce, custom-colors
*/

:root {
  --sw-primary: #9e0068;
  --sw-primary-dark: #5b0032;
  --sw-gold: #d4af37;
  --sw-cream: #fbf9f4;
  --sw-font: "Albert Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sw-font);
  color: #1a1a1a;
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--sw-primary); text-decoration: none; }

.sw-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Announcement bar */
.sw-announce {
  background: var(--sw-primary-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  letter-spacing: .04em;
}

/* Header */
.sw-header { background: var(--sw-primary); color: #fff; }
.sw-header-inner { display: flex; align-items: center; gap: 28px; padding: 16px 20px; max-width: 1300px; margin: 0 auto; }
.sw-logo { font-size: 24px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; color: #fff; }
.sw-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.sw-nav a { color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.sw-nav a:hover { text-decoration: underline; }
.sw-header-icons { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.sw-header-icons a { color: #fff; display: inline-flex; }

/* Marquee */
.sw-marquee { background: #f7e3ef; color: var(--sw-primary); overflow: hidden; padding: 8px 0; white-space: nowrap; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.sw-marquee-track { display: inline-block; animation: sw-marquee 22s linear infinite; }
.sw-marquee-track span { margin: 0 26px; }
@keyframes sw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sw-marquee-track { animation: none; } }

/* Hero */
.sw-hero {
  background: radial-gradient(ellipse at 70% 30%, #4a0430 0%, #1a0210 55%, #0a0106 100%);
  color: #fff; text-align: center; padding: 110px 20px 130px;
}
.sw-hero .sw-offer { color: var(--sw-gold); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; }
.sw-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 9vw, 110px); margin: 18px 0 10px; color: #f5efdc; font-weight: 400; letter-spacing: .02em; }
.sw-hero p { font-size: 20px; opacity: .9; margin: 0 0 30px; }
.sw-btn-gold { display: inline-block; background: var(--sw-gold); color: #201500; font-weight: 800; padding: 15px 44px; border-radius: 999px; }
.sw-btn-gold:hover { filter: brightness(1.08); }

/* Buttons */
.sw-btn { display: inline-block; background: var(--sw-primary); color: #fff; font-weight: 800; padding: 13px 34px; border-radius: 999px; border: 0; cursor: pointer; }
.sw-btn:hover { background: var(--sw-primary-dark); color: #fff; }

/* Trust badges */
.sw-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 34px 20px; }
.sw-badge { background: #f4f4f4; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sw-badge svg { color: var(--sw-primary); }

/* Stats */
.sw-stats { background: var(--sw-primary); color: #fff; border-radius: 28px; padding: 44px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; margin: 30px auto; max-width: 1160px; }
.sw-stat-num { font-size: clamp(34px, 5vw, 52px); font-weight: 900; }
.sw-stat-label { margin-top: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
@media (max-width: 640px) { .sw-stats { grid-template-columns: 1fr; } }

/* Sections */
.sw-section { padding: 50px 0; }
.sw-section h2 { text-align: center; font-size: 32px; font-weight: 800; margin: 0 0 30px; }
.sw-section-cream { background: var(--sw-cream); border-radius: 28px; margin: 30px auto; max-width: 1160px; padding: 50px 24px; }

/* Product grid (works with or without WooCommerce) */
.sw-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.sw-product-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.07); transition: transform .2s; }
.sw-product-card:hover { transform: translateY(-4px); }
.sw-product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sw-product-info { padding: 14px 16px 18px; }
.sw-product-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; font-weight: 700; }
.sw-product-name { font-weight: 700; margin: 6px 0; font-size: 15px; }
.sw-price { color: var(--sw-primary); font-weight: 900; }
.sw-price del { color: #999; font-weight: 500; margin-left: 8px; }

/* Letter tiles */
.sw-tiles { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.sw-tile { background: var(--sw-primary); color: #fff; width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; }

/* Reviews */
.sw-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.sw-review { background: #fff; border: 1px solid #eee; border-radius: 18px; padding: 20px; }
.sw-review .stars { color: var(--sw-gold); letter-spacing: 2px; margin-bottom: 8px; }
.sw-review .name { font-weight: 800; margin-top: 10px; }

/* Footer */
.sw-footer { background: var(--sw-primary); color: #fff; padding: 60px 20px 30px; margin-top: 60px; }
.sw-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; max-width: 1200px; margin: 0 auto; }
.sw-footer h3 { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.sw-footer a { color: rgba(255,255,255,.85); }
.sw-footer a:hover { color: #fff; }
.sw-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sw-footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: 13px; }
.sw-newsletter { display: flex; gap: 8px; margin-top: 12px; }
.sw-newsletter input { flex: 1; border-radius: 999px; border: 0; padding: 12px 18px; }
.sw-newsletter button { background: #fff; color: var(--sw-primary); border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; cursor: pointer; }

/* WhatsApp float */
.sw-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.sw-wa-float:hover { transform: scale(1.08); color: #fff; }

/* Sales popup */
.sw-sale-popup { position: fixed; left: 22px; bottom: 22px; z-index: 999; background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 14px 18px; max-width: 300px; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 14px; display: none; }
.sw-sale-popup.show { display: block; animation: sw-pop .3s ease; }
@keyframes sw-pop { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* WooCommerce tweaks */
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button.alt {
  background: var(--sw-primary); color: #fff; border-radius: 999px; font-weight: 800;
}
.woocommerce ul.products li.product .price { color: var(--sw-primary); font-weight: 800; }
