:root {
  --pm-primary: #0D4A30;
  --pm-secondary: #083220;
  --pm-accent: #E5B83B;
  --pm-ivory: #FAF8F3;
  --pm-surface: #FFFFFF;
  --pm-border: #E5DFD2;
  --pm-text: #1A231E;
  --pm-muted: #5C6860;
  --pm-danger: #DC2626;
  --pm-radius: 14px;
  --pm-shadow: 0 10px 28px rgba(10, 42, 28, 0.08);
  --pm-font-display: 'Cormorant Garamond', Georgia, serif;
  --pm-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body.pm-body {
  margin: 0;
  font-family: var(--pm-font-sans);
  background: var(--pm-ivory);
  color: var(--pm-text);
  line-height: 1.55;
  overflow-x: hidden;
}
body.pm-body {
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  body.pm-body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.pm-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Announcement Bar */
.pm-announcement-bar {
  background: var(--pm-secondary);
  color: #F4EFE3;
  font-size: 12.5px;
  padding: 8px 0;
}
.pm-announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pm-announcement-left, .pm-announcement-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Header */
.pm-header {
  background: var(--pm-surface);
  border-bottom: 1px solid var(--pm-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.pm-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.pm-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pm-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--pm-primary);
  white-space: nowrap;
}
.pm-search-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: none;
}
@media (min-width: 768px) {
  .pm-search-wrap { display: block; }
}
.pm-search-form {
  display: flex;
  border: 1.5px solid var(--pm-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pm-ivory);
}
.pm-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.pm-search-submit {
  background: var(--pm-primary);
  color: #fff;
  border: 0;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.pm-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  box-shadow: var(--pm-shadow);
  z-index: 50;
  max-height: 360px;
  overflow-y: auto;
}
.pm-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #F0ECE3;
}
.pm-search-item img { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; }

.pm-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pm-action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-text);
}
.pm-icon-badge-wrap { position: relative; display: inline-flex; }
.pm-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--pm-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Mega Navigation Bar */
.pm-nav-bar {
  background: var(--pm-surface);
  border-top: 1px solid #F0ECE3;
}
.pm-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.pm-all-cats-wrap { position: relative; }
.pm-all-cats-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pm-primary);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.pm-cats-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--pm-border);
  box-shadow: var(--pm-shadow);
  z-index: 45;
  padding: 8px 0;
}
.pm-cats-dropdown.is-open { display: block; }
.pm-cats-dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
}
.pm-cats-dropdown a:hover { background: var(--pm-ivory); color: var(--pm-primary); }
.pm-cat-drop-count { font-size: 12px; color: var(--pm-muted); }

.pm-primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
.pm-nav-link {
  display: inline-block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-text);
  white-space: nowrap;
}
.pm-nav-link:hover { color: var(--pm-primary); }

.pm-mobile-menu-btn {
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--pm-text);
}
@media (min-width: 768px) {
  .pm-mobile-menu-btn, .pm-hide-desktop { display: none !important; }
}
@media (max-width: 767px) {
  .pm-hide-mobile { display: none !important; }
}
.pm-mobile-search { padding: 0 16px 12px; }

/* Mobile Drawer */
.pm-mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: 290px;
  background: #fff;
  z-index: 70;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
  box-shadow: var(--pm-shadow);
  padding: 20px;
}
.pm-mobile-drawer.is-open { transform: translateX(0); }
.pm-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pm-border);
}
.pm-drawer-close {
  background: transparent;
  border: 0;
  font-size: 26px;
  cursor: pointer;
}
.pm-drawer-nav { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.pm-drawer-nav a { font-weight: 600; padding: 6px 0; }

/* Hero Slider */
.pm-hero-section { padding: 18px 0 10px; }
.pm-hero-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--pm-shadow);
}
@media (min-width: 768px) {
  .pm-hero-slider { min-height: 460px; }
}
.pm-hero-slide {
  display: none;
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  padding: 40px 28px;
  align-items: center;
}
@media (min-width: 768px) {
  .pm-hero-slide { min-height: 460px; padding: 64px 68px; }
}
.pm-hero-slide.is-active { display: flex; }
.pm-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 45, 30, 0.92) 0%, rgba(7, 45, 30, 0.7) 48%, rgba(7, 45, 30, 0.1) 100%);
}
.pm-hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  color: #fff;
}
.pm-hero-kicker {
  display: inline-block;
  color: var(--pm-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.pm-hero-content h1 {
  font-family: var(--pm-font-display);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.08;
  margin: 0 0 14px;
  color: #fff;
}
.pm-hero-content p { margin: 0 0 22px; color: #EAE4D6; font-size: 15.5px; }
.pm-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pm-accent);
  color: #161A16;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.pm-btn-gold:hover { transform: translateY(-1px); }

.pm-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(8, 30, 20, 0.65);
  color: #fff;
  cursor: pointer;
  z-index: 5;
}
.pm-hero-prev { left: 14px; }
.pm-hero-next { right: 14px; }
.pm-hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.pm-hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
}
.pm-hero-dots button.is-active { background: var(--pm-accent); width: 22px; border-radius: 99px; }

/* Sections */
.pm-section { padding: 36px 0; }
.pm-section-heading-centered { text-align: center; margin-bottom: 24px; }
.pm-section-heading-centered h2,
.pm-section-header h2 {
  font-family: var(--pm-font-display);
  font-size: clamp(26px, 3vw, 34px);
  color: var(--pm-text);
  margin: 0;
}
.pm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.pm-view-all-btn {
  background: var(--pm-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Categories (5 Exact Categories) */
.pm-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .pm-categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .pm-categories-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
}
.pm-category-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pm-category-card:hover { transform: translateY(-2px); box-shadow: var(--pm-shadow); }
.pm-category-thumb {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--pm-ivory);
}
.pm-category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-category-card span { font-size: 13.5px; font-weight: 600; display: block; color: var(--pm-text); }
.pm-category-count { display: block; font-size: 11.5px; color: var(--pm-muted); margin-top: 2px; }

/* Product Grid & Cards */
.pm-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 900px) {
  .pm-product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}
.pm-product-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pm-product-card:hover { transform: translateY(-3px); box-shadow: var(--pm-shadow); }
.pm-product-media {
  position: relative;
  aspect-ratio: 4/5;
  background: #F4F0E7;
  overflow: hidden;
}
.pm-product-thumb-link img { width: 100%; height: 100%; object-fit: cover; }
.pm-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--pm-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}
.pm-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--pm-border);
  color: var(--pm-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.pm-wish-btn.is-active { color: var(--pm-danger); }

.pm-product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pm-product-title { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pm-product-price { font-size: 15px; font-weight: 700; color: var(--pm-primary); font-variant-numeric: tabular-nums; }
.pm-product-price del { color: var(--pm-muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.pm-add-cart-btn {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--pm-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  min-height: 40px;
}
.pm-add-cart-btn:hover { background: var(--pm-secondary); }

/* Flash Sale Section */
.pm-flash-box {
  background: var(--pm-secondary);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
}
.pm-flash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.pm-flash-countdown {
  display: flex;
  gap: 10px;
}
.pm-countdown-unit {
  background: var(--pm-accent);
  color: #161A16;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 58px;
  font-variant-numeric: tabular-nums;
}
.pm-countdown-unit strong { display: block; font-size: 20px; line-height: 1.1; }
.pm-countdown-unit span { font-size: 11px; font-weight: 600; }

.pm-flash-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 767px) {
  .pm-flash-carousel-viewport { overflow: hidden; }
  .pm-flash-track {
    display: flex;
    gap: 12px;
    transition: transform 0.35s ease;
  }
  .pm-flash-track .pm-product-card {
    min-width: calc(50% - 6px);
    color: var(--pm-text);
  }
}
.pm-flash-track .pm-product-card { color: var(--pm-text); }

/* Promo Banner */
.pm-promo-card {
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  padding: 48px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pm-promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 41, 27, 0.92) 0%, rgba(8, 50, 32, 0.72) 55%, rgba(8, 50, 32, 0.25) 100%);
  z-index: 1;
}
.pm-promo-content { max-width: 560px; position: relative; z-index: 2; }
.pm-promo-content h2 { font-family: var(--pm-font-display); font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 10px; color: #fff; }
.pm-promo-content p { color: #EAE4D6; margin: 0 0 20px; }

/* Single Product Fabric & Fit Specs */
.pm-product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #FAF8F3;
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 13px;
}
.pm-product-specs span { color: var(--pm-muted); }
.pm-wc-container { padding-top: 28px; padding-bottom: 48px; }

/* Why Choose Us */
.pm-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 900px) {
  .pm-trust-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}
.pm-trust-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 20px 16px;
  text-align: center;
}
.pm-trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #E8F3EC;
  color: var(--pm-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pm-trust-card h3 { font-size: 14.5px; margin: 0 0 6px; }
.pm-trust-card p { font-size: 12.5px; color: var(--pm-muted); margin: 0; }

/* Testimonials */
.pm-testimonial-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .pm-testimonial-split { grid-template-columns: 1.6fr 1fr; }
}
.pm-testimonial-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 26px;
}
.pm-testimonial-item { display: none; gap: 18px; align-items: center; }
.pm-testimonial-item.is-active { display: flex; }
.pm-avatar { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pm-stars { color: #F59E0B; margin: 4px 0; }
.pm-brand-crest-card {
  background: var(--pm-secondary);
  color: #fff;
  border-radius: var(--pm-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.pm-crest-title { font-family: var(--pm-font-display); font-size: 32px; font-weight: 700; color: var(--pm-accent); }
.pm-crest-tagline { font-size: 14px; color: #DFD8C8; margin-top: 6px; }

/* Newsletter & Footer */
.pm-newsletter-band {
  background: #EFEBE1;
  border-top: 1px solid var(--pm-border);
  padding: 36px 0;
}
.pm-newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pm-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pm-newsletter-form input[type="email"] {
  padding: 12px 16px;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  min-width: 260px;
  font-size: 14px;
}

.pm-footer { background: var(--pm-secondary); color: #EAE4D6; padding-top: 48px; }
.pm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  padding-bottom: 36px;
}
.pm-footer h3, .pm-footer h4 { color: #fff; margin: 0 0 12px; }
.pm-footer ul { list-style: none; padding: 0; margin: 0; }
.pm-footer li { margin-bottom: 8px; font-size: 14px; }
.pm-social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--pm-accent); }
.pm-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0; font-size: 13px; }
.pm-footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Mobile Bottom Nav */
.pm-mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #fff;
  border-top: 1px solid var(--pm-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 60;
}
@media (min-width: 768px) {
  .pm-mobile-bottom-nav { display: none; }
}
.pm-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--pm-muted);
  gap: 2px;
}
.pm-bnav-cart-pill {
  position: relative;
  background: var(--pm-primary);
  color: #fff;
  width: 38px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-bnav-cart-pill .pm-cart-count {
  position: absolute;
  top: -5px;
  right: -6px;
  background: var(--pm-accent);
  color: #161A16;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
