/*
Theme Name: Amanex Flash Sale
Theme URI: https://amanexgroup.online/
Author: Amanex Group
Description: A polished WooCommerce storefront for Amanex Group's UAE and GCC launch.
Version: 1.0.0
Text Domain: amanex-flash-sale
*/

:root {
  --ink: #2b1b1a;
  --muted: #775f5a;
  --terracotta: #a64f3f;
  --terracotta-dark: #7d352b;
  --peach: #f4d9cf;
  --peach-light: #fff7f3;
  --cream: #fffaf8;
  --line: rgba(43, 27, 26, .12);
  --shadow: 0 18px 55px rgba(76, 39, 29, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.announcement {
  padding: 9px 16px;
  color: #fff;
  background: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}
.winter-ribbon { padding: 10px 0; color: #fff; background: var(--terracotta-dark); font-size: .82rem; }
.winter-ribbon-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
.winter-ribbon-inner strong { color: #fff4ef; letter-spacing: .05em; }
.winter-ribbon-inner span { color: #f0cfc5; }
.winter-ribbon-inner .winter-ar { color: #fff; font-size: .9rem; font-weight: 800; }
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255,250,248,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 1.15rem; letter-spacing: .1em; }
.brand small { margin-top: 5px; color: var(--terracotta); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.main-nav a:hover { color: var(--terracotta); }
.cart-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; background: var(--terracotta); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.cart-count { display: inline-grid; width: 20px; height: 20px; place-items: center; color: var(--terracotta-dark); background: #fff; border-radius: 50%; font-size: .72rem; }
.site-main { overflow: hidden; }

.hero { padding: 72px 0 68px; background: radial-gradient(circle at 88% 15%, rgba(255,255,255,.8), transparent 30%), linear-gradient(135deg, var(--peach-light), #f4ddd4 58%, #edc3b4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 62px; }
.eyebrow { margin: 0 0 16px; color: var(--terracotta); font-size: .76rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(2.8rem, 6vw, 5.9rem); letter-spacing: -.065em; line-height: .95; }
.hero-copy > p { max-width: 550px; margin: 26px 0 0; color: var(--muted); font-size: 1.1rem; }
.price-row { display: flex; align-items: center; gap: 15px; margin: 28px 0 22px; }
.price-old { color: var(--muted); font-size: 1rem; text-decoration: line-through; }
.price-now { color: var(--terracotta-dark); font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.discount-pill { padding: 7px 11px; color: #fff; background: var(--ink); border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button, .hero .add_to_cart_button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--terracotta);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease;
}
.button:hover, .hero .add_to_cart_button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { color: #fff; background: var(--terracotta-dark); transform: translateY(-2px); }
.button.secondary { color: var(--ink); background: rgba(255,255,255,.62); border: 1px solid rgba(43,27,26,.12); }
.button.secondary:hover { color: var(--ink); background: #fff; }
.hero-visual { position: relative; min-height: 500px; padding: 24px; display: grid; place-items: center; border-radius: 34px; background: rgba(255,255,255,.57); box-shadow: var(--shadow); }
.hero-visual::before { position: absolute; width: 260px; height: 260px; content: ""; border-radius: 50%; background: #efb7a5; filter: blur(2px); opacity: .52; }
.hero-visual img { position: relative; max-height: 495px; width: 100%; object-fit: cover; object-position: center; border-radius: 20px; mix-blend-mode: multiply; }
.hero-visual .hero-promo-art { max-height: 510px; border-radius: 22px; mix-blend-mode: normal; box-shadow: 0 12px 30px rgba(75,31,24,.16); }
.hero-note { position: absolute; right: -14px; bottom: 34px; z-index: 2; max-width: 176px; padding: 14px; color: #fff; background: var(--ink); border-radius: 16px; box-shadow: var(--shadow); font-size: .78rem; font-weight: 750; }
.sparkle-layer { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.sparkle { position: absolute; top: var(--y); left: var(--x); width: var(--size); height: var(--size); background: #fff; border-radius: 50%; box-shadow: 0 0 14px rgba(255,255,255,.95); opacity: 0; animation: sparkle-pop 2.8s ease-in-out var(--delay) infinite; }
@keyframes sparkle-pop { 0%, 100% { opacity: 0; transform: scale(.45); } 45%, 65% { opacity: .95; transform: scale(1.25); } }
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.75,.25,1); }
[data-animate="zoom"] { transform: scale(.97); }
[data-animate].is-visible { opacity: 1; transform: none; }

.trust-strip { padding: 20px 0; background: var(--ink); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .86rem; }
.trust-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--ink); background: var(--peach); border-radius: 50%; font-weight: 900; }
.trust-item strong { display: block; font-size: .87rem; }
.trust-item span { display: block; color: #e8d6d1; font-size: .76rem; }

.section { padding: 86px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { max-width: 650px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.05em; line-height: 1; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 260px 260px; gap: 16px; }
.gallery-card { overflow: hidden; min-height: 220px; border-radius: 22px; background: var(--peach); }
.gallery-card:first-child { grid-row: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-card:first-child img { object-position: center; }
.gallery-card:hover img { transform: scale(1.04); }

.offer { padding: 28px; color: #fff; background: var(--terracotta-dark); border-radius: 28px; }
.offer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.offer h2 { margin: 0 0 8px; font-size: clamp(1.65rem, 3vw, 2.6rem); letter-spacing: -.04em; line-height: 1.05; }
.offer p { max-width: 650px; margin: 0; color: #f7ded7; }
.offer .button { color: var(--ink); background: #fff; white-space: nowrap; }

.details-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.details-copy h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.05em; line-height: 1; }
.details-copy p { color: var(--muted); }
.detail-list { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.detail-list li { display: flex; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detail-list b { color: var(--terracotta); }
.feature-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 35px rgba(76,39,29,.06); }
.feature-card h3 { margin: 0 0 15px; font-size: 1.35rem; }
.feature-card p { margin: 0 0 18px; color: var(--muted); }
.contact-links { display: grid; gap: 10px; }
.contact-links a { padding: 12px 14px; color: var(--ink); background: var(--peach-light); border-radius: 12px; font-weight: 750; }
.contact-links a:hover { color: var(--terracotta-dark); }

.policy-band { padding: 26px 0; background: #f2e7e2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.policy-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.policy-band strong { display: block; margin-bottom: 4px; }
.policy-band p { margin: 0; color: var(--muted); font-size: .87rem; }

.site-footer { padding: 48px 0 28px; color: #ecd9d4; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 35px; }
.site-footer h3, .site-footer h4 { margin: 0 0 12px; color: #fff; }
.site-footer p { margin: 0; color: #cdbab5; font-size: .9rem; }
.site-footer a { color: #f4d9cf; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 7px; font-size: .88rem; }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #bda8a2; font-size: .78rem; }

.page-shell { padding: 70px 0; }
.page-shell .entry-title { margin: 0 0 24px; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.06em; line-height: 1; }
.entry-content, .woocommerce { max-width: 920px; margin: 0 auto; }
.entry-content h2, .entry-content h3 { margin-top: 32px; line-height: 1.15; }
.entry-content p, .entry-content li { color: var(--muted); }
.entry-content a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: .85rem; }
.woocommerce ul.products li.product, .woocommerce div.product { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.woocommerce ul.products li.product a img { border-radius: 13px; }
.woocommerce div.product div.images img { border-radius: 18px; }
.woocommerce div.product .product_title { letter-spacing: -.035em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--terracotta-dark); font-weight: 900; }
.woocommerce span.onsale { background: var(--terracotta); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--terracotta); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--terracotta); }
.woocommerce table.shop_table { border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

@media (max-width: 820px) {
  .wrap { width: min(100% - 28px, 650px); }
  .site-header .wrap { min-height: 68px; }
  .main-nav { display: none; }
  .hero { padding: 48px 0; }
  .hero-grid, .details-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .hero-visual { min-height: 380px; }
  .hero-visual img { max-height: 370px; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 58px 0; }
  .section-heading, .policy-band .wrap { align-items: start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 170px 170px; }
  .gallery-card:first-child { grid-row: span 2; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .copyright { flex-direction: column; gap: 6px; }
}

@media (max-width: 460px) {
  .cart-chip { padding: 9px 11px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .58rem; }
  .hero-visual { min-height: 320px; padding: 15px; }
  .hero-visual img { max-height: 310px; }
  .hero-visual .hero-promo-art { max-height: 330px; }
  .hero-note { right: 8px; bottom: 12px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 220px); }
  .gallery-card:first-child { grid-row: auto; }
}
