/* ==========================================================
   Portability for you — Clean & Minimal E-commerce Theme
   ========================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #f4f7fb;
  --color-border: #e2e7ef;
  --color-text: #0d1321;
  --color-text-muted: #626c7d;
  --color-accent: #0d72f5;      /* brand blue, from logo */
  --color-accent-dark: #0a1628; /* brand navy, from logo */
  --color-accent-light: #e8f1fe;
  --color-price-old: #9aa3af;
  --color-danger: #c0392b;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(10,22,40,0.05);
  --shadow-md: 0 6px 20px rgba(10,22,40,0.08);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Announce bar ---------- */
.announce-bar {
  background: var(--color-accent-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.2px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.logo img { height: 44px; width: auto; display: block; }

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.nav-dropdown { position: relative; font-size: 15px; font-weight: 500; cursor: pointer; }
.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px 0;
  margin-top: 8px;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
}
.dropdown-menu a:hover { background: var(--color-surface); color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.search-form {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
}
.search-form input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 160px;
}
.search-form button {
  border: none;
  background: transparent;
  font-size: 15px;
  padding: 4px 8px;
}

.cart-link {
  position: relative;
  font-size: 20px;
  display: flex;
  align-items: center;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-text); color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero-banner {
  position: relative;
  width: 100%;
  line-height: 0;
  background: var(--color-accent-dark);
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-hotspot {
  position: absolute;
  top: 75.8%;
  height: 14.4%;
  display: block;
  cursor: pointer;
}
.hero-hotspot-1 { left: 34.0%; width: 7.7%; }
.hero-hotspot-2 { left: 41.7%; width: 7.7%; }
.hero-hotspot-3 { left: 49.4%; width: 7.7%; }
.hero-hotspot-4 { left: 57.0%; width: 7.7%; }
.hero-cta-row {
  background: var(--color-surface);
  text-align: center;
  padding: 28px 0;
}

/* ---------- Lifestyle strip ---------- */
.lifestyle-strip {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
}
.lifestyle-strip img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.lifestyle-text { text-align: center; }
.lifestyle-text h2 { margin-bottom: 12px; }
.lifestyle-text p { color: var(--color-text-muted); margin-bottom: 20px; }

/* ---------- Section headings ---------- */
.section {
  padding: 56px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 26px; margin: 0; }
.section-head p { color: var(--color-text-muted); margin: 4px 0 0; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--color-accent); white-space: nowrap; }

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--color-border);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-card .icon { font-size: 34px; margin-bottom: 12px; }
.category-card h3 { font-size: 15px; margin: 0; }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-thumb {
  aspect-ratio: 1/1;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-category { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 15px; font-weight: 600; margin: 0; }
.product-name a { display: block; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.price-current { font-size: 17px; font-weight: 700; color: var(--color-accent-dark); }
.price-old { font-size: 13px; color: var(--color-price-old); text-decoration: line-through; }
.product-card .btn { margin: 0 16px 16px; }

/* ---------- Filters / shop layout ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}
.filter-box h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.filter-box ul li { margin-bottom: 10px; }
.filter-box ul li a { font-size: 14px; color: var(--color-text-muted); }
.filter-box ul li a:hover, .filter-box ul li a.active { color: var(--color-accent); font-weight: 600; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--color-text-muted); font-size: 14px; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
.detail-gallery-main {
  aspect-ratio: 1/1;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
}
.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 10px; }
.detail-thumbs img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--color-border); cursor: pointer;
}
.detail-info .product-category { margin-bottom: 8px; }
.detail-info h1 { font-size: 28px; margin-bottom: 12px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.detail-price .price-current { font-size: 26px; }
.detail-short-desc { color: var(--color-text-muted); margin-bottom: 24px; }
.qty-selector {
  display: inline-flex; align-items: center; border: 1px solid var(--color-border);
  border-radius: 999px; overflow: hidden; margin-bottom: 20px;
}
.qty-selector button { border: none; background: var(--color-surface); width: 40px; height: 40px; font-size: 16px; }
.qty-selector input { width: 50px; text-align: center; border: none; font-size: 15px; -moz-appearance: textfield; }
.detail-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.detail-meta { border-top: 1px solid var(--color-border); padding-top: 16px; font-size: 14px; color: var(--color-text-muted); }
.detail-meta div { margin-bottom: 6px; }
.tabs { margin-top: 40px; }
.tab-content { color: var(--color-text-muted); line-height: 1.8; }

.trust-badges { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.trust-badges div { font-size: 13px; color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }

/* ---------- Cart page ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); padding-bottom: 12px; }
.cart-table td { padding: 18px 0; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-product { display: flex; gap: 16px; align-items: center; }
.cart-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--color-surface); }
.cart-product .name { font-weight: 600; font-size: 14px; }
.cart-remove { color: var(--color-danger); font-size: 13px; }
.cart-summary {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--color-text-muted); }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--color-text); border-top: 1px solid var(--color-border); padding-top: 14px; margin-top: 14px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--color-text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.payment-option {
  border: 1px solid var(--color-border); border-radius: 8px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.payment-option.selected { border-color: var(--color-accent); background: var(--color-accent-light); }
.mini-cart-item { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--color-text-muted); }
.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.alert-error { background: #fdecea; color: var(--color-danger); }
.alert-success { background: var(--color-accent-light); color: var(--color-accent-dark); }

/* ---------- Order success ---------- */
.success-box { text-align: center; padding: 80px 20px; max-width: 560px; margin: 0 auto; }
.success-box .icon { font-size: 64px; margin-bottom: 20px; }
.order-number-box {
  background: var(--color-surface); border-radius: var(--radius); padding: 20px;
  margin: 24px 0; font-size: 18px; font-weight: 700; letter-spacing: 1px;
}

/* ---------- About / Contact ---------- */
.page-header { background: var(--color-surface); padding: 48px 0; text-align: center; }
.page-header h1 { font-size: 32px; margin-bottom: 8px; }
.content-block { max-width: 760px; margin: 0 auto; padding: 48px 20px; line-height: 1.8; color: var(--color-text-muted); }
.content-block h2 { color: var(--color-text); margin-top: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px 0; }
.contact-info-item { margin-bottom: 20px; }
.contact-info-item h4 { margin-bottom: 4px; }
.contact-info-item p { color: var(--color-text-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface); margin-top: 64px; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 0 32px; }
.footer-logo { margin-bottom: 12px; }
.footer-logo img { height: 48px; width: auto; }
.footer-col p { color: var(--color-text-muted); font-size: 14px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--color-text-muted); }
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid var(--color-border); padding: 20px 0; text-align: center; font-size: 13px; color: var(--color-text-muted); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .lifestyle-strip { grid-template-columns: 1fr 1fr; }
  .lifestyle-text { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 640px) {
  .main-nav, .search-form { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--color-border); padding: 16px 20px; gap: 14px;
  }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .lifestyle-strip { grid-template-columns: 1fr; padding: 20px; }
  .lifestyle-strip img { height: 200px; }
}
