/* ============================================================
   URUZON — Amazon-inspired design system (green/melon palette)
   ============================================================ */

/* --- Variables --- */
:root {
  /* Primary */
  --uz-dark:         #1a3a2a;
  --uz-dark-hover:   #244d38;
  --uz-mid:          #2d6a4f;
  --uz-mid-light:    #40916c;

  /* Accent / CTA */
  --uz-accent:       #c8e064;
  --uz-accent-hover: #b8d44e;
  --uz-melon:        #f5c16c;

  /* Neutrals */
  --uz-bg:           #eaeded;
  --uz-bg-white:     #ffffff;
  --uz-text:         #0f1111;
  --uz-text-sec:     #565959;
  --uz-text-muted:   #888;
  --uz-link:         #2d6a4f;
  --uz-link-hover:   #1a3a2a;
  --uz-border:       #ddd;
  --uz-star:         #f5c16c;
  --uz-price:        #b12704;

  /* Layout */
  --uz-max-w:        1200px;
  --uz-radius:       8px;
  --uz-radius-sm:    4px;
  --uz-font:         "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  /* Shadows */
  --uz-shadow:       0 2px 5px rgba(0,0,0,0.08);
  --uz-shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--uz-font);
  color: var(--uz-text);
  background: var(--uz-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--uz-link);
}

a:hover {
  color: var(--uz-link-hover);
  text-decoration: underline;
}

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

/* --- Header --- */
.uz-header {
  background: var(--uz-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.uz-header-inner {
  max-width: var(--uz-max-w);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.uz-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.uz-logo:hover {
  color: var(--uz-accent);
  text-decoration: none;
}

.uz-logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--uz-accent);
  letter-spacing: 0;
}

/* Search */
.uz-search {
  flex: 1;
  display: flex;
  height: 40px;
  border-radius: var(--uz-radius);
  overflow: hidden;
}

.uz-search-cat {
  background: var(--uz-bg);
  border: none;
  padding: 0 8px;
  font-size: 12px;
  color: var(--uz-text);
  border-right: 1px solid var(--uz-border);
  cursor: pointer;
}

.uz-search-input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.uz-search-btn {
  background: var(--uz-accent);
  border: none;
  width: 44px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uz-text);
}

.uz-search-btn:hover {
  background: var(--uz-accent-hover);
}

/* Header nav */
.uz-header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.uz-header-link {
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}

.uz-header-link:hover {
  color: var(--uz-accent);
  text-decoration: none;
}

.uz-link-small {
  font-size: 11px;
  color: #ccc;
}

.uz-link-bold {
  font-size: 13px;
  font-weight: 700;
}

.uz-cart {
  font-size: 22px;
  position: relative;
  flex-direction: row;
  align-items: flex-end;
  gap: 2px;
}

.uz-cart-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--uz-accent);
}

/* Sub navigation */
.uz-subnav {
  background: var(--uz-mid);
}

.uz-subnav-inner {
  max-width: var(--uz-max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.uz-subnav-inner a {
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  white-space: nowrap;
  transition: background 0.15s;
}

.uz-subnav-inner a:hover {
  background: var(--uz-dark-hover);
  text-decoration: none;
}

/* --- Section utilities --- */
.uz-section {
  max-width: var(--uz-max-w);
  margin: 0 auto;
  padding: 20px 16px;
}

.uz-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--uz-text);
}

/* --- Hero banner --- */
.uz-hero {
  background: linear-gradient(135deg, var(--uz-dark) 0%, var(--uz-mid) 50%, var(--uz-mid-light) 100%);
  color: #fff;
  padding: 40px 16px;
  text-align: center;
}

.uz-hero-inner {
  max-width: var(--uz-max-w);
  margin: 0 auto;
}

.uz-hero h2 {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}

.uz-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.uz-hero-badge {
  display: inline-block;
  background: var(--uz-accent);
  color: var(--uz-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.uz-btn-cta {
  display: inline-block;
  background: var(--uz-accent);
  color: var(--uz-text);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border: none;
  border-radius: var(--uz-radius);
  cursor: pointer;
  transition: background 0.15s;
}

.uz-btn-cta:hover {
  background: var(--uz-accent-hover);
  text-decoration: none;
  color: var(--uz-text);
}

.uz-btn-cta-lg {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  text-align: center;
}

.uz-btn-secondary {
  display: inline-block;
  background: var(--uz-bg-white);
  color: var(--uz-text);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border: 1px solid var(--uz-border);
  border-radius: var(--uz-radius);
  cursor: pointer;
  transition: background 0.15s;
}

.uz-btn-secondary:hover {
  background: var(--uz-bg);
  text-decoration: none;
  color: var(--uz-text);
}

/* --- Product grid --- */
.uz-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.uz-product-card {
  background: var(--uz-bg-white);
  border-radius: var(--uz-radius);
  box-shadow: var(--uz-shadow);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.uz-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--uz-shadow-hover);
}

.uz-product-card a {
  display: block;
  color: inherit;
}

.uz-product-card a:hover {
  text-decoration: none;
}

.uz-product-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  overflow: hidden;
}

.uz-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uz-product-info {
  padding: 12px;
}

.uz-product-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--uz-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.uz-product-card a:hover .uz-product-title {
  color: var(--uz-link);
}

.uz-stars {
  color: var(--uz-star);
  font-size: 13px;
  margin-bottom: 4px;
}

.uz-review-count {
  color: var(--uz-link);
  font-size: 12px;
}

.uz-product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--uz-price);
  line-height: 1;
  margin-bottom: 4px;
}

.uz-price-symbol {
  font-size: 13px;
  vertical-align: top;
  line-height: 1.8;
}

.uz-prime-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--uz-mid);
}

.uz-prime-badge::before {
  content: "✓ ";
}

/* --- Breadcrumb --- */
.uz-breadcrumb {
  font-size: 12px;
  color: var(--uz-text-sec);
  margin-bottom: 12px;
}

.uz-breadcrumb a {
  color: var(--uz-link);
  font-size: 12px;
}

/* --- Product detail --- */
.uz-detail {
  display: flex;
  gap: 32px;
  background: var(--uz-bg-white);
  border-radius: var(--uz-radius);
  padding: 24px;
  box-shadow: var(--uz-shadow);
}

.uz-detail-img {
  flex: 0 0 40%;
  max-width: 400px;
}

.uz-detail-img-box {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid var(--uz-border);
  border-radius: var(--uz-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  overflow: hidden;
}

.uz-detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uz-detail-info {
  flex: 1;
  min-width: 0;
}

.uz-detail-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.uz-detail-stars {
  color: var(--uz-star);
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--uz-border);
}

.uz-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--uz-price);
  margin-bottom: 4px;
}

.uz-detail-price .uz-price-symbol {
  font-size: 15px;
}

.uz-detail-tax {
  font-size: 12px;
  color: var(--uz-text-sec);
  margin-bottom: 12px;
}

.uz-detail-prime {
  font-size: 14px;
  font-weight: 700;
  color: var(--uz-mid);
  margin-bottom: 16px;
}

.uz-detail-prime::before {
  content: "✓ ";
}

.uz-detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--uz-text-sec);
  margin-bottom: 20px;
}

.uz-detail-stock {
  font-size: 16px;
  font-weight: 700;
  color: var(--uz-mid);
  margin-bottom: 16px;
}

.uz-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}

.uz-detail-meta {
  font-size: 12px;
  color: var(--uz-text-muted);
  margin-top: 12px;
  line-height: 1.8;
}

/* --- Flash messages --- */
.uz-flash {
  max-width: var(--uz-max-w);
  margin: 12px auto;
  padding: 10px 16px;
  border-radius: var(--uz-radius-sm);
  font-size: 14px;
}

.uz-flash-notice {
  background: #e8f5e9;
  color: var(--uz-mid);
  border: 1px solid #c8e6c9;
}

.uz-flash-alert {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}

/* --- Pre-order badges --- */
.uz-preorder-badge {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.uz-preorder-badge-sm {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #e65100;
  margin-top: 2px;
}

.uz-btn-preorder {
  background: #ffb74d;
  color: var(--uz-text);
}

.uz-btn-preorder:hover {
  background: #ffa726;
}

/* --- Cart page --- */
.uz-cart-empty {
  background: var(--uz-bg-white);
  border-radius: var(--uz-radius);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--uz-shadow);
}

.uz-cart-empty p {
  font-size: 16px;
  color: var(--uz-text-sec);
  margin-bottom: 20px;
}

.uz-cart-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.uz-cart-items {
  flex: 1;
  min-width: 0;
}

.uz-cart-item {
  display: flex;
  gap: 16px;
  background: var(--uz-bg-white);
  border-radius: var(--uz-radius);
  padding: 16px;
  box-shadow: var(--uz-shadow);
  margin-bottom: 12px;
}

.uz-cart-item-img {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: var(--uz-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}

.uz-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uz-cart-item-info {
  flex: 1;
  min-width: 0;
}

.uz-cart-item-info h3 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 4px;
}

.uz-cart-item-info h3 a {
  color: var(--uz-link);
}

.uz-cart-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--uz-price);
  margin: 8px 0 4px;
}

.uz-btn-remove {
  background: none;
  border: none;
  color: var(--uz-link);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.uz-btn-remove:hover {
  color: var(--uz-link-hover);
}

.uz-cart-item-qty {
  font-size: 13px;
  color: var(--uz-text-sec);
  margin-bottom: 8px;
}

.uz-cart-summary {
  width: 280px;
  flex-shrink: 0;
}

.uz-cart-summary-box {
  background: var(--uz-bg-white);
  border-radius: var(--uz-radius);
  padding: 20px;
  box-shadow: var(--uz-shadow);
  position: sticky;
  top: 72px;
}

.uz-cart-total {
  font-size: 16px;
  margin-bottom: 16px;
}

.uz-cart-total-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--uz-price);
}

/* --- Gift form --- */
.uz-gift-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--uz-bg-white);
  border-radius: var(--uz-radius);
  padding: 24px;
  box-shadow: var(--uz-shadow);
}

.uz-gift-product {
  width: 220px;
  flex-shrink: 0;
  text-align: center;
}

.uz-gift-product-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fff8e1, #ffe082);
  border-radius: var(--uz-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
  margin-bottom: 12px;
}

.uz-gift-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uz-gift-product-name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 6px;
}

.uz-gift-product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--uz-price);
}

.uz-gift-form {
  flex: 1;
  min-width: 0;
}

.uz-form-group {
  margin-bottom: 20px;
}

.uz-form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.uz-form-help {
  font-size: 12px;
  color: var(--uz-text-muted);
  margin: 0 0 8px;
}

.uz-recipient-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--uz-border);
  border-radius: var(--uz-radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}

.uz-recipient-option:hover {
  background: #fafafa;
}

.uz-recipient-option input[type="radio"]:checked + .uz-recipient-name {
  font-weight: 700;
}

.uz-recipient-name {
  flex: 1;
}

.uz-form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  border: 1px solid var(--uz-border);
  border-radius: var(--uz-radius-sm);
  resize: vertical;
  box-sizing: border-box;
}

.uz-form-textarea:focus {
  outline: none;
  border-color: var(--uz-mid);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.uz-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

@media (max-width: 599px) {
  .uz-gift-layout {
    flex-direction: column;
  }

  .uz-gift-product {
    width: 100%;
  }
}

/* --- Purchase complete --- */
.uz-complete {
  background: var(--uz-bg-white);
  border-radius: var(--uz-radius);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--uz-shadow);
  max-width: 600px;
  margin: 20px auto;
}

.uz-complete-icon {
  width: 64px;
  height: 64px;
  background: var(--uz-mid);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.uz-complete h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.uz-complete-msg {
  font-size: 15px;
  color: var(--uz-text-sec);
  margin-bottom: 8px;
}

.uz-complete-sub {
  font-size: 13px;
  color: var(--uz-text-muted);
  margin-bottom: 24px;
}

/* --- Footer --- */
.uz-footer-top {
  background: var(--uz-dark-hover);
  padding: 12px;
  text-align: center;
}

.uz-footer-top a {
  color: #fff;
  font-size: 13px;
}

.uz-footer-top a:hover {
  text-decoration: none;
  color: var(--uz-accent);
}

.uz-footer {
  background: var(--uz-dark);
  color: #ccc;
  padding: 32px 16px;
}

.uz-footer-inner {
  max-width: var(--uz-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.uz-footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.uz-footer-col a {
  display: block;
  color: #ccc;
  font-size: 13px;
  line-height: 2;
}

.uz-footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.uz-footer-bottom {
  background: var(--uz-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  text-align: center;
}

.uz-footer-bottom-inner {
  max-width: var(--uz-max-w);
  margin: 0 auto;
}

.uz-footer-logo {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.uz-footer-copy {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* --- Responsive --- */
@media (min-width: 600px) {
  .uz-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .uz-product-img {
    font-size: 64px;
  }

  .uz-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .uz-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .uz-footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .uz-hero {
    padding: 56px 16px;
  }
}

/* Mobile adjustments */
@media (max-width: 599px) {
  .uz-cart-layout {
    flex-direction: column;
  }

  .uz-cart-summary {
    width: 100%;
  }

  .uz-cart-item-img {
    width: 80px;
    height: 80px;
  }

  .uz-search-cat {
    display: none;
  }

  .uz-header-link .uz-link-small {
    display: none;
  }

  .uz-header-link .uz-link-bold {
    font-size: 11px;
  }

  .uz-detail {
    flex-direction: column;
    padding: 16px;
  }

  .uz-detail-img {
    flex: none;
    max-width: 100%;
  }

  .uz-detail-actions {
    max-width: 100%;
  }

  .uz-detail-title {
    font-size: 18px;
  }

  .uz-detail-price {
    font-size: 24px;
  }

  .uz-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
