/*
Theme Name: ShopBD
Theme URI: https://shundorban.com
Author: Shundorban Team
Description: AliExpress-style mobile-first WooCommerce theme for Bangladesh
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2
Text Domain: shopbd
Tags: e-commerce, woocommerce, mobile-first, elementor, rtl-language-support
*/

/* ===================== VARIABLES ===================== */
:root {
  --red:       #E62E2E;
  --red-dark:  #C0392B;
  --red-light: #FF6B35;
  --gold:      #F5C200;
  --green:     #27AE60;
  --bg:        #F5F5F5;
  --white:     #FFFFFF;
  --border:    #EEEEEE;
  --text:      #111111;
  --text-mid:  #555555;
  --text-light:#999999;
  --shadow:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --r-sm:      6px;
  --r-md:      10px;
  --r-lg:      20px;
  --font:      -apple-system, BlinkMacSystemFont, 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ===================== LAYOUT ===================== */
html, body, #page, .site { max-width: 100% !important; width: 100% !important; }
#page { margin: 0 !important; box-shadow: none !important; background: var(--white); min-height: 100vh; }
.site-content { padding-bottom: 64px; }
@media (min-width: 992px) { .site-content { padding-bottom: 0; } }

/* ===================== HEADER ===================== */
#masthead {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(180,0,0,0.2);
}
.header-inner {
  display: flex; align-items: center;
  gap: 10px; padding: 10px 12px;
  width: 100%; box-sizing: border-box;
}
.site-logo a, .site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 34px; width: auto; max-width: 120px; }
.text-logo { color: #fff; font-size: 18px; font-weight: 900; white-space: nowrap; letter-spacing: -0.5px; }
.header-search {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  background: #fff; border-radius: 8px; overflow: hidden;
  height: 38px;
}
.header-search form { display: flex; align-items: center; width: 100%; }
.header-search input[type="search"] {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 0 10px; font-size: 13px; background: transparent; height: 38px;
}
.header-search button[type="submit"] {
  background: var(--red); color: #fff;
  width: 42px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; border-radius: 0;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-cart-btn { position: relative; color: #fff; font-size: 24px; display: flex; align-items: center; }
.header-cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--gold); color: #8B4500;
  font-size: 9px; font-weight: 800;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) {
  .header-inner { max-width: 1280px; margin: 0 auto; padding: 12px 32px; gap: 16px; }
  .site-logo img { height: 40px; max-width: 160px; }
  .text-logo { font-size: 22px; }
  .header-search { border-radius: 6px; height: 42px; }
  .header-search input[type="search"] { font-size: 14px; height: 42px; }
  .header-search button[type="submit"] { width: 48px; height: 42px; font-size: 18px; }
}

/* ===================== NOTICE BAR ===================== */
.notice-bar {
  background: #fff8e0; border-bottom: 1px solid #ffe082;
  padding: 7px 14px; font-size: 12px; color: #7a5000;
  display: flex; align-items: center; gap: 8px; overflow: hidden;
}
.notice-bar .marquee { animation: marquee 25s linear infinite; white-space: nowrap; display: inline-block; }
@keyframes marquee { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ===================== DESKTOP NAV ===================== */
.desktop-nav { display: none; }
@media (min-width: 768px) {
  .desktop-nav {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px; padding: 2px 4px;
  }
  .desktop-nav a {
    color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600;
    padding: 6px 12px; border-radius: 5px;
    transition: background .2s;
  }
  .desktop-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }
}

/* ===================== HERO BANNER ===================== */
.hero-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  padding: 24px 16px 20px; color: #fff; position: relative; overflow: hidden;
}
.hero-banner::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06); border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gold); color: #7a3a00;
  font-size: 11px; font-weight: 800; padding: 3px 10px;
  border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px;
}
.hero-banner h2 { font-size: 26px; font-weight: 900; line-height: 1.15; margin-bottom: 8px; }
.hero-banner p { font-size: 13px; opacity: .88; margin-bottom: 16px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--red);
  border-radius: 22px; padding: 10px 22px;
  font-size: 14px; font-weight: 700;
  transition: background .2s, transform .2s;
}
.hero-cta:hover { background: var(--gold); transform: translateY(-1px); }
.countdown-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; opacity: .9; }
.cd-box {
  background: rgba(0,0,0,0.3); color: #fff;
  padding: 4px 9px; border-radius: 5px;
  font-size: 18px; font-weight: 800; min-width: 36px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.cd-sep { font-size: 18px; font-weight: 800; }
@media (min-width: 768px) {
  .hero-banner { padding: 48px 32px; min-height: 280px; }
  .hero-banner h2 { font-size: 44px; max-width: 560px; }
  .hero-banner p { font-size: 15px; max-width: 480px; }
}

/* ===================== TRUST BAR ===================== */
.trust-bar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 12px 8px; background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--text-mid); text-align: center; }
.trust-item .ti { font-size: 22px; }
@media (min-width: 768px) {
  .trust-bar { padding: 16px 32px; gap: 48px; justify-content: center; }
  .trust-item { flex-direction: row; gap: 8px; font-size: 13px; font-weight: 600; }
  .trust-item .ti { font-size: 26px; }
}

/* ===================== CATEGORY STRIP ===================== */
.cat-strip { background: #fff; border-bottom: 1px solid var(--border); }
.cat-strip-inner {
  display: flex; overflow-x: auto; scrollbar-width: none;
  padding: 10px 8px 8px;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 4px 10px; flex-shrink: 0; cursor: pointer; text-decoration: none;
}
.cat-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: transform .2s;
}
.cat-item:hover .cat-icon { transform: scale(1.1); }
.cat-item span { font-size: 10.5px; color: var(--text-mid); text-align: center; white-space: nowrap; }
.cat-item.active span { color: var(--red); font-weight: 700; }
@media (min-width: 768px) {
  .cat-strip-inner { max-width: 1280px; margin: 0 auto; flex-wrap: wrap; justify-content: center; overflow: visible; padding: 16px 32px; }
  .cat-icon { width: 58px; height: 58px; font-size: 26px; }
  .cat-item span { font-size: 12px; }
}

/* ===================== SECTION HEADER ===================== */
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 8px; background: #fff;
}
.sec-hd h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.sec-hd .see-all { font-size: 12px; color: var(--red); font-weight: 600; display: flex; align-items: center; gap: 2px; }
@media (min-width: 768px) {
  .sec-hd { max-width: 1280px; margin: 0 auto; padding: 20px 32px 10px; }
  .sec-hd h3 { font-size: 20px; }
  .sec-hd .see-all { font-size: 13px; padding: 6px 14px; border: 1.5px solid var(--red); border-radius: 20px; }
  .sec-hd .see-all:hover { background: var(--red); color: #fff; }
}

/* ===================== FLASH DEALS ===================== */
.flash-wrap { background: #fff; padding-bottom: 12px; border-bottom: 8px solid var(--bg); }
.flash-scroll {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 0 12px 4px;
}
.flash-scroll::-webkit-scrollbar { display: none; }
.flash-card {
  min-width: 130px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; flex-shrink: 0; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.flash-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.flash-card-img { width: 130px; height: 130px; object-fit: cover; display: block; background: #f8f8f8; }
.flash-card-img.no-img { display: flex; align-items: center; justify-content: center; font-size: 40px; }
.flash-card-body { padding: 8px; }
.flash-price { color: var(--red); font-size: 15px; font-weight: 800; }
.flash-old { color: var(--text-light); font-size: 10px; text-decoration: line-through; }
.flash-badge { display: inline-block; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; margin-top: 2px; }
.flash-stars { color: #f5a623; font-size: 10px; }
.flash-sold { font-size: 10px; color: var(--text-light); }
.stock-bar { height: 4px; background: #ffe0e0; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.stock-fill { height: 100%; background: var(--red); border-radius: 2px; }
@media (min-width: 768px) {
  .flash-scroll { max-width: 1280px; margin: 0 auto; flex-wrap: wrap; overflow: visible; padding: 0 32px 12px; gap: 14px; }
  .flash-card { min-width: 160px; width: calc(12.5% - 14px); }
  .flash-card-img { width: 100%; height: 160px; }
}

/* ===================== PRODUCT GRID ===================== */
.products-wrap { background: var(--bg); padding-bottom: 16px; }

/* WooCommerce product grid override */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  float: none !important;
  clear: both !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff !important;
  border: 0.5px solid #efefef !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transition: box-shadow .2s !important;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important; z-index: 1 !important; }
.woocommerce ul.products li.product img {
  width: 100% !important; aspect-ratio: 1/1 !important;
  object-fit: cover !important; display: block !important;
  height: auto !important; margin: 0 !important;
  border-radius: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 12.5px !important; color: var(--text) !important;
  padding: 6px 8px 0 !important; margin: 0 !important;
  font-weight: 400 !important; line-height: 1.4 !important;
  display: -webkit-box !important; -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important; overflow: hidden !important;
}
.woocommerce ul.products li.product .price {
  padding: 4px 8px 2px !important;
  display: flex !important; align-items: baseline !important; gap: 5px !important;
}
.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price ins .woocommerce-Price-amount {
  color: var(--text) !important; font-size: 15px !important;
  font-weight: 800 !important; text-decoration: none !important;
}
.woocommerce ul.products li.product .price del { display: none !important; }
.woocommerce ul.products li.product .onsale {
  background: var(--red) !important; color: #fff !important;
  font-size: 9px !important; font-weight: 700 !important;
  padding: 2px 6px !important; border-radius: 3px !important;
  position: absolute !important; top: 6px !important; left: 6px !important;
  margin: 0 !important; min-height: auto !important; line-height: 1.5 !important;
}
.woocommerce ul.products li.product .button { display: none !important; }
/* Product badge row */
.shopbd-badges { padding: 5px 8px 0; display: flex; gap: 4px; flex-wrap: wrap; }
.badge-brand { background: #111; color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.badge-sale  { background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.shopbd-meta { display: flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 10.5px; color: var(--text-light); }
.shopbd-meta .stars { color: #f5a623; letter-spacing: -1px; }
.shopbd-disc { color: var(--red); font-size: 11px; font-weight: 600; padding: 0 8px 6px; }
.shopbd-top { color: var(--red); font-size: 10.5px; font-weight: 600; padding: 0 8px 2px; }

@media (min-width: 600px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 992px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(4, 1fr) !important; gap: 0 !important; }
  .woocommerce ul.products li.product:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12) !important; transform: translateY(-3px); }
}
@media (min-width: 1280px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(5, 1fr) !important; }
}

/* ===================== PROMO BANNERS ===================== */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 12px; background: var(--bg); }
.promo-card { border-radius: 10px; overflow: hidden; padding: 18px 14px; color: #fff; min-height: 90px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .2s; }
.promo-card:hover { transform: translateY(-3px); }
.promo-card h4 { font-size: 14px; font-weight: 800; line-height: 1.25; margin-bottom: 3px; }
.promo-card p { font-size: 11px; opacity: .85; }
.promo-1 { background: linear-gradient(135deg, #E62E2E, #FF6B35); }
.promo-2 { background: linear-gradient(135deg, #1565C0, #42A5F5); }
@media (min-width: 768px) {
  .promo-grid { max-width: 1280px; margin: 0 auto; padding: 0 32px 20px; gap: 16px; }
  .promo-card { min-height: 120px; padding: 24px; }
  .promo-card h4 { font-size: 20px; }
}

/* ===================== DIVIDER ===================== */
.divider { height: 8px; background: var(--bg); }

/* ===================== BOTTOM NAV ===================== */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.07);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 8px 4px 6px;
  color: var(--text-light); font-size: 9.5px; text-decoration: none;
  cursor: pointer; position: relative;
  transition: color .2s;
}
.bn-item .ico { font-size: 23px; line-height: 1; }
.bn-item.active, .bn-item:hover { color: var(--red); }
.bn-item.active::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 2.5px; background: var(--red); border-radius: 0 0 2px 2px;
}
.bn-badge {
  position: absolute; top: 5px; right: calc(50% - 18px);
  background: var(--red); color: #fff;
  font-size: 8px; font-weight: 700; border-radius: 50%;
  width: 15px; height: 15px; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 992px) { #bottom-nav { display: none !important; } }

/* ===================== SINGLE PRODUCT BUY BAR ===================== */
.shopbd-buy-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: #fff; border-top: 1px solid #eee;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  padding: 10px 12px; gap: 8px; align-items: center;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
}
@media (max-width: 991px) {
  body.single-product .shopbd-buy-bar { display: flex !important; }
  body.single-product #bottom-nav { display: none !important; }
  body.single-product .site-content { padding-bottom: 80px !important; }
  body.single-product form.cart .single_add_to_cart_button { display: none !important; }
}
.buy-wl-btn {
  width: 48px; height: 48px; border-radius: 10px;
  background: #fff; border: 1.5px solid #eee;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; transition: border-color .2s;
}
.buy-wl-btn:hover, .buy-wl-btn.active { border-color: var(--red); background: #fff5f5; }
.buy-cart-btn {
  flex: 1; height: 48px; border-radius: 10px;
  background: #fff; color: var(--red); border: 2px solid var(--red);
  font-size: 14px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.buy-cart-btn:hover { background: #fff5f5; }
.buy-now-btn {
  flex: 1.4; height: 48px; border-radius: 10px;
  background: var(--red); color: #fff; border: 2px solid var(--red);
  font-size: 14px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.buy-now-btn:hover { background: var(--red-dark); }
.shopbd-toast {
  position: fixed; bottom: 82px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.8); color: #fff;
  padding: 10px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600; z-index: 99999;
  opacity: 0; transition: opacity .3s; white-space: nowrap; pointer-events: none;
}
.shopbd-toast.show { opacity: 1; }

/* ===================== ACCOUNT PAGE ===================== */
.shopbd-account { max-width: 100%; background: #fff; min-height: 80vh; }
.account-welcome { padding: 30px 20px 20px; }
.account-welcome h2 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.account-welcome h2 span { color: var(--red); }
.account-welcome p { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.signin-trigger {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid #e0e0e0; border-radius: 12px;
  padding: 16px 18px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.signin-trigger:hover { border-color: var(--red); box-shadow: 0 2px 12px rgba(230,46,46,0.08); }
.signin-trigger span { font-size: 15px; font-weight: 700; }
.signin-trigger em { font-size: 20px; color: #bbb; font-style: normal; }
.account-benefits { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.ab-item { display: flex; align-items: center; gap: 14px; }
.ab-icon { font-size: 26px; }
.ab-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.ab-text small { font-size: 11px; color: var(--text-light); }

/* Dashboard */
.user-header {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  padding: 28px 20px 24px; color: #fff;
}
.user-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.22); border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 12px;
}
.user-header h2 { font-size: 20px; font-weight: 800; margin-bottom: 3px; }
.user-header p { font-size: 13px; opacity: .85; }
.dash-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 16px 14px; }
.dash-item {
  background: #fff; border-radius: 12px; padding: 16px 8px;
  text-align: center; text-decoration: none; color: var(--text);
  border: 1px solid #f0f0f0; box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: box-shadow .2s, transform .2s;
}
.dash-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dash-item .di { font-size: 28px; margin-bottom: 5px; }
.dash-item .dl { font-size: 11px; font-weight: 600; color: #555; }
.dash-item .dc { font-size: 18px; font-weight: 800; color: var(--red); }

/* Auth Modal */
.auth-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 99999;
  align-items: flex-end; justify-content: center;
}
.auth-overlay.open { display: flex; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.auth-sheet {
  background: #fff; width: 100%; max-width: 520px;
  border-radius: 22px 22px 0 0;
  padding: 24px 20px 36px; position: relative;
  max-height: 95vh; overflow-y: auto;
  animation: slideup .28s cubic-bezier(.4,0,.2,1);
}
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.auth-close {
  position: absolute; top: 14px; right: 16px;
  background: #f0f0f0; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #555;
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.auth-logo img { height: 34px; width: auto; }
.auth-logo-name { font-size: 19px; font-weight: 900; color: var(--red); letter-spacing: -.5px; }
.auth-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 18px; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 1.5px solid #ddd; border-radius: 30px;
  padding: 12px; font-size: 14px; font-weight: 600; color: #333;
  background: #fff; cursor: pointer; margin-bottom: 18px;
  transition: background .2s;
}
.google-btn:hover { background: #f8f8f8; }
.g-ico { width: 20px; height: 20px; flex-shrink: 0; }
.auth-tabs { display: flex; border-bottom: 1.5px solid #eee; margin-bottom: 16px; }
.auth-tab {
  flex: 1; padding: 10px 0; font-size: 14px; font-weight: 600;
  color: #aaa; border: none; background: none; cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  transition: color .2s, border-color .2s;
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--text); }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.auth-input {
  width: 100%; border: 1.5px solid #e0e0e0; border-radius: 10px;
  padding: 13px 14px; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .2s; background: #fff;
  font-family: inherit; box-sizing: border-box;
}
.auth-input:focus { border-color: var(--text); }
.auth-input::placeholder { color: #bbb; }
.phone-wrap {
  display: flex; align-items: center;
  border: 1.5px solid #e0e0e0; border-radius: 10px; overflow: hidden;
  transition: border-color .2s;
}
.phone-wrap:focus-within { border-color: var(--text); }
.phone-flag {
  display: flex; align-items: center; gap: 5px;
  padding: 13px 12px; border-right: 1.5px solid #e0e0e0;
  background: #fafafa; white-space: nowrap; font-size: 13px; color: #333;
}
.phone-flag .flag { font-size: 18px; }
.phone-input {
  flex: 1; border: none; outline: none; padding: 13px 12px;
  font-size: 14px; font-family: inherit; background: transparent; color: var(--text);
}
.pass-wrap { position: relative; }
.pass-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #aaa; font-size: 18px; padding: 0;
}
.remember-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.remember-left { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
.remember-left input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; border-radius: 4px; }
.forgot-btn { font-size: 13px; color: #555; text-decoration: underline; background: none; border: none; cursor: pointer; font-family: inherit; }
.forgot-btn:hover { color: var(--red); }
.auth-submit {
  width: 100%; background: var(--red); color: #fff; border: none;
  border-radius: 12px; padding: 15px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 6px; transition: background .2s; font-family: inherit;
}
.auth-submit:hover { background: var(--red-dark); }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: #777; }
.auth-switch button { color: var(--red); font-weight: 700; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px; }
.terms-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-size: 12.5px; color: #555; line-height: 1.5; }
.terms-row input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--red); }
.terms-row a { color: var(--red); font-weight: 700; }
.pass-rules { display: none; background: #f8f8f8; border-radius: 8px; padding: 10px 14px; margin-top: 6px; font-size: 12px; color: #666; line-height: 1.8; }
.pass-rules.show { display: block; }
.show-rules-btn { font-size: 12px; color: var(--red); background: none; border: none; cursor: pointer; padding: 4px 0 0; font-family: inherit; text-decoration: underline; }
.auth-err { display: none; background: #ffebee; border: 1px solid #ef9a9a; border-radius: 8px; padding: 10px 14px; text-align: center; color: #c62828; font-size: 13px; margin-bottom: 10px; }
.auth-ok  { display: none; background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 8px; padding: 10px 14px; text-align: center; color: #2e7d32; font-size: 14px; font-weight: 600; margin-top: 10px; }

/* ===================== FORGOT PASSWORD ===================== */
.forgot-header { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 20px; cursor: pointer; }
.forgot-icon-wrap { text-align: center; font-size: 68px; margin: 8px 0 14px; }
.forgot-title { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.forgot-desc { text-align: center; font-size: 13px; color: var(--text-light); margin-bottom: 22px; line-height: 1.6; }

/* ===================== FOOTER ===================== */
#colophon { background: #111; color: #aaa; padding: 36px 0 16px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #222; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand .fl { color: var(--red); font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.footer-brand p { font-size: 12px; color: #777; line-height: 1.6; margin-bottom: 12px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: #777; font-size: 20px; transition: color .2s; }
.footer-social a:hover { color: var(--gold); }
.footer-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pay-badge { background: #1e1e1e; border: 1px solid #333; border-radius: 5px; padding: 4px 9px; font-size: 10.5px; color: #aaa; font-weight: 600; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #777; font-size: 12px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 16px; font-size: 11px; color: #444; }

/* ===================== PAGE TITLE BANNER ===================== */
.page-title-bar {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  padding: 20px 16px; color: #fff;
}
.page-title-bar h1 { font-size: 20px; font-weight: 800; }
.page-title-bar .bc { font-size: 11px; opacity: .8; margin-top: 3px; }
.page-title-bar .bc a { color: rgba(255,255,255,.8); }
@media (min-width: 768px) {
  .page-title-bar { padding: 32px 40px; }
  .page-title-bar h1 { font-size: 28px; }
}

/* ===================== GENERAL PAGE CONTENT ===================== */
.page-body { max-width: 900px; margin: 0 auto; padding: 20px 16px 32px; font-size: 14px; line-height: 1.8; color: var(--text-mid); }
.page-body h2 { font-size: 16px; color: var(--text); margin: 18px 0 8px; }
.page-body h3 { font-size: 14px; color: var(--text); margin: 14px 0 6px; }

/* ===================== WC OVERRIDES ===================== */
.woocommerce-page .woocommerce { max-width: 1200px; margin: 0 auto; padding: 16px; }
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--red) !important; color: #fff !important;
  border-radius: var(--r-lg) !important; font-weight: 700 !important;
  transition: background .2s !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--red-dark) !important; }
.woocommerce div.product .product_title { font-size: 17px !important; font-weight: 800 !important; line-height: 1.3 !important; padding: 12px !important; }
.woocommerce div.product p.price { padding: 0 12px 10px !important; font-size: 22px !important; color: var(--red) !important; font-weight: 900 !important; }
.woocommerce div.product p.price ins { text-decoration: none !important; }
@media (max-width: 767px) {
  .woocommerce div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; }
  .woocommerce div.product .summary { width: 100% !important; float: none !important; padding: 0 12px !important; }
}

/* ===================== ELEMENTOR COMPAT ===================== */
.elementor-template-canvas #masthead,
.elementor-template-canvas .notice-bar,
.elementor-template-canvas #colophon,
.elementor-template-canvas #bottom-nav { display: none !important; }
.elementor-template-canvas .site-content,
.elementor-template-full-width .site-content { padding: 0 !important; }
.elementor-section, .elementor-container, .elementor-column { max-width: 100% !important; }

/* ===================== 404 / SEARCH / MISC ===================== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ei { font-size: 64px; margin-bottom: 14px; }
.empty-state h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.btn-red { display: inline-block; background: var(--red); color: #fff; border-radius: var(--r-lg); padding: 11px 24px; font-size: 14px; font-weight: 700; transition: background .2s; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
