/* ROMY Store — lightweight flexbox layout */
:root {
  --color-text: #3a4149;
  --color-text-muted: #878787;
  --color-heading: #222222;
  --color-accent: #56cfe1;
  --color-accent-dark: #3a4149;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f8;
  --color-border: #e6e6e6;
  --color-badge: #84b9c4;
  --font: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --header-h: 72px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-accent);
  color: #fff;
}
.skip-link:focus { left: 0; }

.site-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: 1px;
}
.site-logo__text { font-size: 1.5rem; }
.site-logo__sub { font-size: 0.65rem; font-weight: 400; color: var(--color-text-muted); letter-spacing: 2px; text-transform: uppercase; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading);
  white-space: nowrap;
}
.site-nav__list a:hover { color: var(--color-accent); }

.nav-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--color-badge);
  color: #fff;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 4px;
}

.site-nav__dropdown { position: relative; }
.site-nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 50;
}
.site-nav__submenu a { padding: 8px 16px; font-weight: 400; }
.site-nav__dropdown:hover .site-nav__submenu,
.site-nav__dropdown.is-open .site-nav__submenu { display: block; }

.header-cart {
  display: flex;
  align-items: center;
  color: var(--color-heading);
  padding: 8px;
}
.header-cart:hover { color: var(--color-accent); }

/* Main */
.site-main { min-height: 50vh; }

.page-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
  text-align: center;
}
.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-heading);
}

.romlicontainer {
  padding: 40px 0 60px;
}

/* Homepage */
.hero-slider {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}
.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-slide--dark-text { color: var(--color-text); }
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, transparent 60%);
}
.hero-slide--dark-text .hero-slide__overlay { background: none; }
.hero-slide__content {
  position: relative;
  z-index: 1;
  padding: 48px 20px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-slide__content--right { text-align: right; margin-left: auto; }
.hero-slide h2 { margin: 0 0 8px; font-size: 2rem; font-weight: 700; }
.hero-slide p { margin: 0 0 16px; font-size: 1.25rem; font-weight: 300; }

.section-title {
  text-align: center;
  margin: 0 0 32px;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-heading);
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 48px;
}
.product-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card__body { padding: 16px; text-align: center; }
.product-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; }
.product-card .price { font-weight: 600; color: var(--color-heading); margin-bottom: 12px; }

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.feature-card {
  flex: 1 1 220px;
  text-align: center;
}
.feature-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--color-heading); }
.feature-card p { margin: 0; font-size: 14px; color: var(--color-text-muted); }

.media-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}
.media-text--reverse { flex-direction: row-reverse; }
.media-text__media { flex: 1 1 280px; }
.media-text__text { flex: 1 1 280px; }
.media-text h3 { margin: 0 0 16px; font-size: 1.5rem; color: var(--color-heading); }
.media-text p { color: var(--color-text-muted); }

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 40px 0;
  background: var(--color-bg-alt);
  margin-bottom: 48px;
}
.perk {
  flex: 1 1 200px;
  max-width: 260px;
  text-align: center;
  padding: 16px;
}
.perk h3 { margin: 0 0 4px; font-size: 1rem; color: var(--color-heading); }

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-accent-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--color-accent); color: #fff; }
.btn--light { background: #fff; color: var(--color-accent-dark); }
.btn--light:hover { background: var(--color-accent); color: #fff; }

.video-wrap { margin: 0 auto 48px; max-width: 900px; }
.video-wrap video { width: 100%; border-radius: var(--radius); }

/* Page content (migrated) */
.page-content img { border-radius: var(--radius); }
.page-content h2, .page-content h3 { color: var(--color-heading); margin-top: 1.5em; }
.page-content p { margin: 0 0 1em; }
.page-content ul, .page-content ol { margin: 0 0 1em 1.5em; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.page-content th, .page-content td { border: 1px solid var(--color-border); padding: 8px 12px; text-align: left; }
.page-content th { background: var(--color-bg-alt); }

.support-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.support-card {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
}
.support-card img { margin: 0 auto 12px; max-height: 120px; object-fit: contain; }
.support-card h3 { font-size: 1.1rem; margin: 0; }

/* Product page */
.product-page.page-content { padding-top: 24px; }
.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.product-breadcrumb a { color: var(--color-text-muted); }
.product-breadcrumb span:last-child { color: var(--color-heading); }

.product-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.product-gallery {
  flex: 1 1 420px;
  max-width: 520px;
  min-width: 0;
}

.product-gallery__main {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-gallery__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.product-gallery__slide {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}
.product-gallery__slide.is-active { display: flex; }

.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-heading);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.product-gallery__nav:hover { background: #fff; color: var(--color-accent); }
.product-gallery__nav--prev { left: 10px; }
.product-gallery__nav--next { right: 10px; }

.product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product-gallery__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--color-bg-alt);
  cursor: pointer;
  overflow: hidden;
}
.product-gallery__thumb.is-active,
.product-gallery__thumb:hover { border-color: var(--color-accent); }
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.product-info {
  flex: 1 1 320px;
  max-width: 520px;
  min-width: 0;
}

.product-info__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-heading);
}

.product-price {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: #696969;
}
.product-price del {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-right: 8px;
}
.product-price ins {
  color: #ec0101;
  text-decoration: none;
  font-weight: 600;
}

.product-features {
  margin: 0 0 20px;
  padding: 0 0 0 18px;
  color: var(--color-text);
  font-size: 14px;
}
.product-features li { margin-bottom: 4px; }

.product-option { margin-bottom: 16px; }
.product-option__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.product-swatch {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--color-heading);
  border-radius: 4px;
  font-size: 13px;
}

.product-cart-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 40px;
  overflow: hidden;
}
.product-qty__btn {
  width: 36px;
  height: 40px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-heading);
}
.product-qty__input {
  width: 48px;
  height: 40px;
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  -moz-appearance: textfield;
}
.product-qty__input::-webkit-outer-spin-button,
.product-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-add { min-width: 180px; }

.product-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.product-payments img {
  width: 38px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
  border-radius: 0;
}

.product-cats {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.product-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  color: var(--color-heading);
}
.product-social a:hover {
  background: var(--color-accent);
  color: #fff;
}
.product-social svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.product-description { margin-top: 16px; }
.product-description > h2 {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 500;
}
.product-desc-block { margin-bottom: 28px; max-width: 820px; }
.product-desc-block h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.product-desc-block p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Blog */
.blog-container { padding: 20px 0; }
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-card {
  flex: 1 1 280px;
  max-width: 360px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.blog-title { margin: 0 0 8px; font-size: 1.1rem; }
.blog-title a { color: var(--color-heading); }
.blog-preview p { margin: 0; font-size: 14px; color: var(--color-text-muted); }

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-top: 60px;
}
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  padding-bottom: 40px;
}
.site-footer__col { flex: 1 1 180px; }
.site-footer__col h3 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-heading);
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer__col a { font-size: 14px; color: var(--color-text-muted); }
.site-footer__col a:hover { color: var(--color-accent); }
.site-footer__col p { font-size: 14px; color: var(--color-text-muted); margin: 0 0 16px; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.newsletter-form input {
  flex: 1 1 180px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
.newsletter-form button {
  padding: 10px 20px;
  background: var(--color-heading);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.newsletter-form button:hover { background: var(--color-accent); }

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}
.site-footer__bottom p { margin: 0; font-size: 14px; color: var(--color-text-muted); }

/* Responsive */
@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 16px 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__submenu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
  .site-header { position: relative; }
  .site-header__inner { position: relative; flex-wrap: wrap; }
  .hero-slide { min-height: 280px; }
  .hero-slide h2 { font-size: 1.5rem; }
  .hero-slide p { font-size: 1rem; }
  .media-text, .media-text--reverse { flex-direction: column; }
  .product-layout { gap: 28px; }
  .product-gallery { max-width: none; flex: 1 1 100%; }
  .product-info { max-width: none; flex: 1 1 100%; }
}

@media (max-width: 600px) {
  .page-header { padding: 28px 0; }
  .romlicontainer { padding: 28px 0 40px; }
  .product-gallery__thumb { width: 52px; height: 52px; }
}
