/* RayGem - components: header, footer, hero, sections, cards, buttons */

/* ---- Header / nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  background: var(--white);
  border-bottom: 1.5px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--red);
}
.nav-wa {
  background: var(--red);
  color: var(--white) !important;
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
}
.nav-wa:hover {
  background: var(--red-light);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.btn-primary:hover {
  background: var(--navy-dark);
}
.btn-secondary {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.btn-secondary:hover {
  background: var(--red-light);
}
.btn-order {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.btn-order:hover {
  background: var(--navy-light);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--line);
  background-color: #0f1a45;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Centered Hero Redesign */
.hero-text-centered {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-border-box {
  padding: 24px 48px;
  margin-bottom: 24px;
  display: inline-block;
}
.hero-border-box .h-line1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.hero-border-box .h-line2 {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.2;
}
.hero-navy-bar {
  background: linear-gradient(90deg, rgba(27, 42, 107, 0) 0%, rgba(27, 42, 107, 0.85) 20%, rgba(27, 42, 107, 0.85) 80%, rgba(27, 42, 107, 0) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 10px 40px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-contact-num {
  margin-bottom: 36px;
}
.hero-contact-num a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  transition: opacity 0.2s;
  letter-spacing: 0.05em;
}
.hero-contact-num a i {
  background: var(--white);
  color: var(--navy);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.hero-contact-num a:hover {
  opacity: 0.9;
}
.hero-btns-centered {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btns-centered a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, transform .15s;
  font-family: var(--font);
  text-decoration: none;
}
.hero-btns-centered a:hover {
  transform: translateY(-1px);
}
.hero-btns-centered .btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.hero-btns-centered .btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
}
.hero-btns-centered .btn-wa {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.hero-btns-centered .btn-wa:hover {
  background: var(--green-700);
  border-color: var(--green-700);
}

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--cream);
  border-bottom: 1.5px solid var(--line);
  padding: 16px 40px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}
.trust-item i {
  color: var(--red);
  font-size: 17px;
}

/* ---- Sections ---- */
.section {
  padding: 64px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.section--soft {
  background: var(--bg);
}
.section-header {
  margin-bottom: 36px;
}
.section-header .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 32px;
  letter-spacing: -.5px;
  color: var(--navy);
}
.section-header p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
}
.prod-section {
  background: var(--bg);
}
.prod-section .section-header, .prod-section .prod-grid {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* ---- Category cards ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--line);
  transition: all 0.25s;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: block;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}
.cat-card.expo-card-home:hover {
  border-color: var(--red);
}
.cat-img {
  width: 100%;
  aspect-ratio: 1.5/1;
  overflow: hidden;
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.cat-card:hover .cat-img img {
  transform: scale(1.05);
}
.cat-label {
  padding: 18px 20px;
  text-align: center;
}
.cat-label h3 {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}
.cat-label p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.cat-card.expo-card-home .cat-label h3 {
  color: var(--red);
}
.cat-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.cat-card.expo-card-home .cat-arrow {
  color: var(--red);
}

/* ---- FX price components ---- */
.price-cad {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
}
.price-cad span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}
.price-conv {
  font-size: 0.75rem;
  margin-top: 3px;
  margin-bottom: 0.85rem;
}
.price-conv em {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}


/* ---- Product cards ---- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.prod-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.prod-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gold);
}
.prod-card a.prod-img, .prod-card .prod-img {
  background: #f9f7f2;
  height: 220px;
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid var(--line);
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.prod-card:hover .prod-img img {
  transform: scale(1.04);
}
.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  background: var(--gold);
  color: var(--white);
  z-index: 2;
}
.badge-green { background: #25D366; color: #fff; }
.badge-blue { background: var(--navy); color: #fff; }
.badge-amber { background: var(--red); color: #fff; }
.badge-gold { background: var(--gold); color: #fff; }

.prod-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prod-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.prod-name a:hover {
  color: var(--red);
}
.prod-desc {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
}
.prod-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
}
.prod-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  display: block;
  line-height: 1;
}

/* ---- COD band ---- */
.cod-section {
  background: var(--white);
  padding: 64px 40px;
}
.cod-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.cod-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(200, 150, 42, 0.2);
}
.cod-icon-wrap i {
  font-size: 28px;
  color: var(--red);
}
.cod-text h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--navy);
}
.cod-text p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* ---- Dark contact band ---- */
.contact-section {
  background: var(--navy-dark);
  padding: 64px 40px;
  text-align: center;
}
.contact-section h2 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.contact-section p {
  font-size: 16px;
  color: var(--cream);
  margin-bottom: 32px;
}
.contact-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-wa-large {
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background 0.2s;
}
.btn-wa-large:hover {
  background: var(--green-700);
}
.btn-mail-large {
  background: var(--red);
  color: var(--white);
  border-radius: 10px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background 0.2s;
}
.btn-mail-large:hover {
  background: var(--red-light);
}

/* ---- Footer ---- */
.footer {
  background: var(--white);
  border-top: 1.5px solid var(--line);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 40px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 32px;
}
.footer-brand img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text);
  max-width: 280px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--red);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact a {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact a:hover {
  color: var(--red);
}
.footer-bottom {
  border-top: 1.5px solid var(--line);
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: var(--text);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 40px 0;
  font-size: 13px;
  color: var(--text);
}
.breadcrumb a:hover {
  color: var(--red);
}

/* ---- Shop toolbar ---- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all .15s;
}
.filter-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.filter-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.search-box {
  position: relative;
}
.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  font-size: 18px;
}
.search-box input {
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 10px 18px 10px 40px;
  font-size: 14px;
  font-family: var(--font);
  min-width: 240px;
  outline: none;
}
.search-box input:focus {
  border-color: var(--gold);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1.5px solid var(--line);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-wa { justify-content: center; margin-top: 6px; }
  .hero { min-height: 480px; }
  .hero::before {
    background: rgba(0, 0, 0, 0.55);
  }
  .hero-text-centered {
    padding: 48px 20px;
  }
  .hero-border-box {
    padding: 16px 24px;
    margin-bottom: 20px;
  }
  .hero-border-box .h-line1 {
    font-size: 22px;
    letter-spacing: 0.14em;
  }
  .hero-border-box .h-line2 {
    font-size: 36px;
    letter-spacing: 0.12em;
  }
  .hero-navy-bar {
    font-size: 12px;
    padding: 8px 20px;
    margin-bottom: 18px;
  }
  .hero-contact-num {
    margin-bottom: 28px;
  }
  .hero-contact-num a {
    font-size: 16px;
  }
  .trust-bar { padding: 14px 20px; gap: 20px; }
  .section, .prod-section, .cod-section, .contact-section { padding: 48px 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cod-inner { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px 20px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
}
