:root {
  --rcg-green: #2d5016;
  --rcg-accent: #c45c26;
  --rcg-bg: #faf9f7;
  --rcg-text: #1a1a1a;
  --rcg-muted: #666;
  --rcg-border: #e5e2dd;
}
* { box-sizing: border-box; }
body.rcg-body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--rcg-text); background: var(--rcg-bg); }
.rcg-announcement { background: var(--rcg-green); color: #fff; text-align: center; padding: 0.5rem 1rem; font-size: 0.875rem; line-height: 1.4; }
.rcg-announcement p { margin: 0; }
.rcg-announcement a { color: #fff; font-weight: 600; text-decoration: underline; }
.rcg-announcement a:hover { text-decoration: none; opacity: 0.92; }
.rcg-header { background: #fff; border-bottom: 1px solid var(--rcg-border); position: sticky; top: 0; z-index: 50; }
.rcg-header-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.rcg-logo { font-size: 1.35rem; font-weight: 700; color: var(--rcg-text); text-decoration: none; }
.rcg-nav { display: flex; gap: 1.25rem; flex: 1; flex-wrap: wrap; }
.rcg-nav a { color: var(--rcg-text); text-decoration: none; font-size: 0.95rem; }
.rcg-nav a:hover { color: var(--rcg-accent); }
.rcg-cart-link { font-weight: 600; text-decoration: none; color: var(--rcg-text); }
.rcg-cart-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.rcg-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rcg-border);
}
.rcg-cart-item-main { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.rcg-cart-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--rcg-border);
  flex-shrink: 0;
}
.rcg-cart-thumb-empty {
  display: inline-block;
  background: #f1f5f9;
}
.rcg-cart-item-text { min-width: 0; }
.rcg-cart-item-title { font-weight: 600; color: var(--rcg-text); text-decoration: none; }
.rcg-cart-item-title:hover { color: var(--rcg-accent); }
.rcg-cart-variant, .rcg-cart-item-qty { display: block; font-size: 0.875rem; color: var(--rcg-muted); }
.rcg-cart-item-end { text-align: right; flex-shrink: 0; }
.rcg-cart-item-price { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.rcg-cart-remove {
  background: none;
  border: none;
  color: #b91c1c;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 0;
}
.rcg-cart-remove:hover { color: #991b1b; }
.rcg-cart-remove:disabled { opacity: 0.5; cursor: not-allowed; }
.rcg-cart-totals { margin-top: 1rem; line-height: 1.6; }
.rcg-checkout-summary-list .rcg-cart-item { padding: 0.5rem 0; }
.rcg-checkout-summary-item .rcg-cart-thumb { width: 48px; height: 48px; }
.rcg-cart-count { background: var(--rcg-accent); color: #fff; border-radius: 999px; padding: 0.1rem 0.45rem; font-size: 0.75rem; margin-left: 0.25rem; }
.rcg-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.rcg-hero { text-align: center; padding: 3rem 1rem; }
.rcg-hero h1 { font-size: 2.25rem; margin: 0 0 0.75rem; }
.rcg-hero-sub { color: var(--rcg-muted); font-size: 1.125rem; }
.rcg-hero--has-image {
  position: relative;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.rcg-hero--has-image .rcg-hero-media {
  width: 100%;
  height: var(--rcg-hero-height, 480px);
  overflow: hidden;
}
.rcg-hero--has-image .rcg-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.rcg-hero--has-image .rcg-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}
.rcg-hero--has-image h1 { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.rcg-hero--has-image .rcg-hero-sub { color: rgba(255, 255, 255, 0.92); }
.rcg-hero--has-image .rcg-btn { margin-top: 0.5rem; }
.rcg-btn { display: inline-block; background: var(--rcg-green); color: #fff; padding: 0.65rem 1.25rem; text-decoration: none; border-radius: 4px; font-weight: 600; border: none; cursor: pointer; }
.rcg-btn-outline { background: transparent; color: var(--rcg-green); border: 2px solid var(--rcg-green); }
.rcg-page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; align-items: center; }
.rcg-cart-actions { margin-top: 2rem; }
.rcg-product-card-placeholder { width: 100%; aspect-ratio: 1; background: #f1f5f9; }
.rcg-collection-desc { color: var(--rcg-muted); margin-bottom: 1.5rem; }
.rcg-section { margin-bottom: 3rem; }
.rcg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rcg-border);
  border-radius: 8px;
  overflow: hidden;
  padding: 1.5rem;
}
.rcg-split img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 6px; }
.rcg-split h2, .rcg-split h3 { margin-top: 0; }
@media (max-width: 768px) {
  .rcg-split { grid-template-columns: 1fr; }
}
.rcg-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.rcg-feature-card { background: #fff; border: 1px solid var(--rcg-border); border-radius: 8px; overflow: hidden; }
.rcg-feature-card img { width: 100%; height: 200px; object-fit: cover; }
.rcg-feature-card h3, .rcg-feature-card p { padding: 0 1rem; }
.rcg-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.rcg-product-card { background: #fff; border: 1px solid var(--rcg-border); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.rcg-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.rcg-product-card a { text-decoration: none; color: inherit; display: block; }
.rcg-product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.rcg-product-card h3 { font-size: 0.95rem; padding: 0.75rem 1rem 0.25rem; margin: 0; }
.rcg-price { padding: 0 1rem 1rem; margin: 0; font-weight: 600; }
.rcg-price-compare { text-decoration: line-through; color: var(--rcg-muted); font-weight: 400; margin-left: 0.5rem; }
.rcg-collection-title { font-size: 1.75rem; margin-bottom: 0.5rem; }
.rcg-footer { background: #fff; border-top: 1px solid var(--rcg-border); padding: 2rem 1.5rem; margin-top: 3rem; }
.rcg-footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.rcg-copy { text-align: center; color: var(--rcg-muted); font-size: 0.875rem; margin-top: 2rem; }
/* PDP carousel — fixed frame; images letterbox with white space */
.rcg-gallery-wrap { position: relative; max-width: 560px; }
.rcg-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  background: #fff;
  border: 1px solid var(--rcg-border);
  border-radius: 8px;
  overflow: hidden;
}
.rcg-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.rcg-carousel-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rcg-carousel-slide img,
.rcg-carousel-slide video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.rcg-carousel-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rcg-thumb { width: 56px; height: 56px; padding: 0; border: 2px solid transparent; cursor: pointer; background: #fff; }
.rcg-thumb.active { border-color: var(--rcg-green); }
.rcg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rcg-carousel-prev, .rcg-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 1px solid #ccc;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 2;
}
.rcg-carousel-prev { left: 8px; }
.rcg-carousel-next { right: 8px; }
/* Checkout */
.rcg-checkout { max-width: 560px; }
.rcg-checkout-form fieldset { border: 1px solid var(--rcg-border); margin-bottom: 1rem; padding: 1rem; }
.rcg-checkout-form label { display: block; margin-bottom: 0.75rem; }
.rcg-checkout-form input { display: block; width: 100%; margin-top: 4px; padding: 0.5rem; }
.rcg-checkout-summary { padding: 1rem; background: #fff; border: 1px solid var(--rcg-border); margin: 1rem 0; }
/* PDP */
.rcg-pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
@media (max-width: 768px) { .rcg-pdp { grid-template-columns: 1fr; } }
.rcg-gallery img { width: 100%; border-radius: 8px; }
.rcg-variant-select { width: 100%; padding: 0.5rem; margin-bottom: 0.75rem; }
.rcg-reviews { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.rcg-review { border-bottom: 1px solid var(--rcg-border); padding: 1rem 0; }
.rcg-stars { color: #f59e0b; }
