/* ================= GEShop storefront ================= */
:root {
  --navy: #1b2565;
  --navy-dark: #131b4d;
  --gold: #e8a33d;
  --gold-dark: #d18f27;
  --text: #333;
  --muted: #8a8a94;
  --light: #f6f6f8;
  --border: #e5e5ea;
  --red: #e53935;
  --green: #2e7d32;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(20, 27, 77, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.header-top { background: var(--navy); color: #fff; padding: 14px 0; }
.header-top-inner { display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 8px; font-size: 1.7rem; font-weight: 700; white-space: nowrap; }
.logo img { max-height: 46px; }
.logo-icon { font-size: 1.5rem; }

.header-search { flex: 1; display: flex; background: #fff; border-radius: var(--radius); overflow: hidden; max-width: 620px; }
.header-search input { flex: 1; border: 0; padding: 11px 16px; outline: none; min-width: 0; }
.header-search select { border: 0; border-left: 1px solid var(--border); padding: 0 10px; color: #555; outline: none; background: #fff; font-size: .82rem; }
.header-search button { background: var(--gold); border: 0; color: #fff; padding: 0 22px; font-size: 1.05rem; }
.header-search button:hover { background: var(--gold-dark); }

.header-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.header-account { font-size: .85rem; font-weight: 600; letter-spacing: .4px; }
.header-account:hover, .main-menu a:hover { color: var(--gold); }
.header-icon { position: relative; font-size: 1.25rem; }
.count-badge { position: absolute; top: -8px; right: -10px; background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 50%; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.header-total { font-weight: 700; font-size: .95rem; }

.mobile-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; }

.header-nav { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.header-nav-inner { display: flex; align-items: center; gap: 32px; }

.browse-cats { position: relative; }
.browse-cats-btn { background: none; border: 0; border-right: 1px solid var(--border); padding: 15px 34px 15px 0; font-size: .9rem; font-weight: 600; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.browse-cats-list { position: absolute; top: 100%; left: 0; background: #fff; min-width: 270px; box-shadow: var(--shadow); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 50; }
.browse-cats.open .browse-cats-list, .browse-cats:hover .browse-cats-list { opacity: 1; visibility: visible; transform: none; }
.browse-cats-list a { display: flex; justify-content: space-between; padding: 11px 18px; border-bottom: 1px solid var(--light); font-size: .92rem; }
.browse-cats-list a:hover { background: var(--light); color: var(--navy); }
.browse-cats-list a span { color: var(--muted); font-size: .8rem; }

.main-menu { display: flex; gap: 28px; }
.main-menu a { display: block; padding: 15px 0; font-size: .88rem; font-weight: 600; letter-spacing: .5px; }
.main-menu a.active { color: var(--gold); }

/* ---------- flash & toast ---------- */
.flash { padding: 12px 20px; text-align: center; font-weight: 500; }
.flash-success { background: #e8f5e9; color: var(--green); }
.flash-error { background: #ffebee; color: var(--red); }
.flash-info { background: #e3f2fd; color: #1565c0; }
.toast { position: fixed; bottom: 90px; right: 24px; background: var(--navy); color: #fff; padding: 13px 22px; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .3s; z-index: 300; pointer-events: none; max-width: 320px; }
.toast.show { opacity: 1; transform: none; }

/* ---------- hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--navy-dark); }
.hero-slides { display: flex; transition: transform .6s ease; }
.hero-slide { min-width: 100%; position: relative; height: 520px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(10, 15, 45, .35); }
.hero-slide-content { position: relative; text-align: center; color: #fff; max-width: 900px; padding: 0 24px; }
.hero-slide-content .small { color: var(--gold); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.hero-slide-content h2 { font-size: 3rem; font-weight: 500; line-height: 1.25; margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; z-index: 5; transition: .2s; }
.hero-arrow:hover { background: var(--gold); }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; gap: 18px; justify-content: center; z-index: 5; }
.hero-dot { background: none; border: 0; color: rgba(255,255,255,.75); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.hero-dot::after { content: ''; width: 46px; height: 2px; background: rgba(255,255,255,.4); }
.hero-dot.active { color: #fff; } .hero-dot.active::after { background: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 12px 34px; border-radius: 40px; font-weight: 600; font-size: .92rem; letter-spacing: .4px; border: 2px solid transparent; transition: .2s; text-align: center; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 20px; font-size: .85rem; }

/* ---------- home sections ---------- */
.home-section { padding: 46px 0 10px; }
.section-head { display: flex; align-items: baseline; gap: 26px; border-bottom: 1px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.5rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; padding-bottom: 12px; border-bottom: 2px solid var(--gold); margin-bottom: -1px; }
.section-head .tabs { display: flex; gap: 20px; font-size: .95rem; color: var(--muted); font-weight: 600; }
.section-head .tabs a:hover { color: var(--gold); }

.home-grid { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.side-panel { border: 1px solid var(--gold); padding: 22px; }
.side-panel h2 { font-size: 1.4rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.side-panel .product-card-img img { height: 420px; object-fit: cover; width: 100%; }

/* ---------- product card ---------- */
.product-card { text-align: center; position: relative; }
.product-card-img { position: relative; overflow: hidden; background: var(--light); border-radius: var(--radius); }
.product-card-img > a img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-img > a img { transform: scale(1.05); }
.badge-hot, .badge-sale { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 12px; z-index: 3; letter-spacing: .5px; }
.badge-sale { background: var(--green); top: 12px; }
.badge-hot + .badge-sale { top: 40px; }
.product-card-actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(8px); transition: .25s; z-index: 3; }
.product-card:hover .product-card-actions { opacity: 1; transform: none; }
.icon-btn { background: #fff; border: 1px solid var(--border); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: .2s; border-radius: 3px; }
.icon-btn:hover, .icon-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.product-card-body { padding: 14px 6px 26px; }
.product-card-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.product-card-body h3 a:hover { color: var(--gold); }
.product-card-cat { color: var(--muted); font-size: .88rem; margin: 2px 0 6px; }
.product-card-price .price { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.product-card-price .old-price { color: var(--muted); text-decoration: line-through; font-size: .9rem; margin-left: 8px; }

.center-cta { text-align: center; padding: 24px 0 50px; }

/* ---------- features strip ---------- */
.features-strip { background: var(--navy); color: #fff; padding: 42px 0; margin-top: 50px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { font-size: 2rem; color: var(--gold); }
.feature h4 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { font-size: .88rem; color: rgba(255,255,255,.75); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.85); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; padding: 50px 20px 40px; }
.footer-col h4 { color: #fff; letter-spacing: 1px; margin-bottom: 18px; font-size: .95rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 14px; margin-bottom: 16px; }
.footer-social a { border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 30px; font-size: .82rem; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-about p { font-size: .9rem; margin-bottom: 14px; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .88rem; }

.whatsapp-float { position: fixed; bottom: 24px; right: 24px; background: #25d366; color: #fff; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 200; transition: .2s; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- page banner ---------- */
.page-banner { background: var(--navy); color: #fff; padding: 42px 0; text-align: center; }
.page-banner h1 { font-size: 2rem; font-weight: 600; }
.page-banner .crumbs { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 4px; }
.page-banner .crumbs a:hover { color: var(--gold); }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 34px; padding: 44px 0 60px; align-items: start; }
.shop-sidebar .widget { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.shop-sidebar h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.shop-sidebar ul li { margin-bottom: 8px; }
.shop-sidebar ul a { display: flex; justify-content: space-between; font-size: .95rem; padding: 4px 0; }
.shop-sidebar ul a:hover, .shop-sidebar ul a.active { color: var(--gold); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.shop-toolbar .result-count { color: var(--muted); font-size: .92rem; }
.shop-toolbar select { padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius); outline: none; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; font-size: .92rem; padding: 0 12px; }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: #fff; border-color: var(--gold); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .big { font-size: 3rem; margin-bottom: 12px; }

/* ---------- product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 50px 0; align-items: start; }
.product-gallery .main-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.product-gallery .main-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-thumbs img { width: 82px; height: 82px; object-fit: cover; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.product-thumbs img.active { border-color: var(--gold); }
.product-info h1 { font-size: 1.7rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.product-info .meta { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.product-info .meta a { color: var(--gold); }
.product-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.product-price-row .price { font-size: 1.9rem; color: var(--gold); font-weight: 700; }
.product-price-row .old-price { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; }
.stock-badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 14px; border-radius: 30px; margin-bottom: 16px; }
.stock-badge.in { background: #e8f5e9; color: var(--green); }
.stock-badge.out { background: #ffebee; color: var(--red); }
.product-short { color: #555; margin-bottom: 24px; }
.qty-row { display: flex; gap: 14px; align-items: stretch; margin-bottom: 16px; flex-wrap: wrap; }
.qty-box { display: flex; border: 1px solid var(--border); border-radius: 40px; overflow: hidden; }
.qty-box button { width: 44px; background: none; border: 0; font-size: 1.15rem; color: var(--muted); }
.qty-box input { width: 54px; text-align: center; border: 0; outline: none; font-weight: 600; }
.product-desc { padding: 10px 0 60px; }
.product-desc h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 8px; margin-bottom: 18px; }
.product-desc-inner p { margin-bottom: 12px; }
.product-desc-inner ul { list-style: disc; margin: 0 0 12px 22px; }
.related-section { padding-bottom: 60px; }

/* ---------- cart / tables ---------- */
.page-section { padding: 46px 0 70px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 14px 10px; border-bottom: 2px solid var(--border); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: 16px; }
.cart-prod img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.cart-prod a { font-weight: 600; }
.cart-prod a:hover { color: var(--gold); }
.remove-btn { background: none; border: 0; color: var(--red); font-size: 1.2rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.summary-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.summary-box h3 { margin-bottom: 18px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .5px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--light); }
.summary-row.total { font-size: 1.2rem; font-weight: 700; border-bottom: 0; padding-top: 16px; }
.summary-row.total .amount { color: var(--gold); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-group label .req { color: var(--red); }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); outline: none; transition: border .2s; background: #fff; }
.form-control:focus { border-color: var(--gold); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-error { background: #ffebee; color: var(--red); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: .92rem; }
.form-success { background: #e8f5e9; color: var(--green); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: .92rem; }

.auth-box { max-width: 460px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.auth-box h2 { margin-bottom: 20px; text-align: center; }
.auth-box .alt-link { text-align: center; margin-top: 16px; font-size: .92rem; }
.auth-box .alt-link a { color: var(--gold); font-weight: 600; }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.bank-list { margin: 14px 0; }
.bank-item { border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; background: var(--light); }
.bank-item .bank-name { font-weight: 700; }
.bank-item .acct-num { font-size: 1.25rem; font-weight: 700; letter-spacing: 1px; color: var(--navy); }
.pay-note { font-size: .9rem; color: #666; background: #fff8ec; border: 1px dashed var(--gold); padding: 12px 16px; border-radius: var(--radius); margin-top: 12px; }

/* ---------- order success / tracking ---------- */
.order-success { max-width: 720px; margin: 0 auto; text-align: center; }
.order-success .check { font-size: 4rem; }
.order-success h1 { margin: 10px 0 6px; }
.order-ref { display: inline-block; background: var(--light); border: 1px dashed var(--navy); padding: 8px 26px; font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; border-radius: var(--radius); margin: 12px 0 24px; }
.order-details-box { text-align: left; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.status-pill { display: inline-block; padding: 3px 14px; border-radius: 30px; font-size: .8rem; font-weight: 700; text-transform: capitalize; }
.status-awaiting_payment { background: #fff3e0; color: #e65100; }
.status-pending { background: #f5f5f5; color: #555; }
.status-paid { background: #e3f2fd; color: #1565c0; }
.status-processing { background: #ede7f6; color: #5e35b1; }
.status-shipped { background: #e0f7fa; color: #00838f; }
.status-delivered { background: #e8f5e9; color: var(--green); }
.status-cancelled { background: #ffebee; color: var(--red); }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-info-box h3 { margin-bottom: 18px; }
.contact-info-box p { margin-bottom: 14px; font-size: .95rem; }
.contact-info-box a { color: var(--gold); }

/* ---------- CMS page ---------- */
.cms-content { max-width: 860px; margin: 0 auto; }
.cms-content h2 { margin: 22px 0 12px; color: var(--navy); }
.cms-content h3 { margin: 18px 0 10px; color: var(--navy); }
.cms-content p { margin-bottom: 14px; }
.cms-content ul, .cms-content ol { margin: 0 0 14px 24px; }
.cms-content img { border-radius: var(--radius); margin: 14px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr; }
  .side-panel { display: none; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout, .checkout-layout, .cart-layout, .contact-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .header-top-inner { flex-wrap: wrap; gap: 12px; }
  .header-total { display: none; }
  .header-account { display: none; }
  .header-nav { display: none; }
  .header-nav.open { display: block; }
  .header-nav-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .browse-cats-btn { width: 100%; border-right: 0; }
  .browse-cats-list { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
  .browse-cats.open .browse-cats-list { display: block; }
  .main-menu { flex-direction: column; gap: 0; }
  .main-menu a { padding: 12px 0; border-top: 1px solid var(--light); }
  .products-grid, .products-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-slide { height: 400px; }
  .hero-slide-content h2 { font-size: 1.7rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table tr { display: block; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .cart-table td { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 6px 0; }
  .cart-table td::before { content: attr(data-label); font-weight: 600; font-size: .82rem; text-transform: uppercase; color: var(--muted); }
}
