/* Hayami Essentials - Styles.css */
/* Mobile-first responsive design */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --pink-primary: #E8AEB7;
  --pink-light: #F4C7CF;
  --cream-bg: #F7F1EA;
  --ivory-card: #FFF9F6;
  --olive-primary: #6E6A3D;
  --olive-hover: #5A5632;
  --text-dark: #2E2E2E;
  --text-muted: #6B6B6B;
  --white: #FFFFFF;
  --footer-bg: #2F2F1F;
  --input-bg: #EFEFEF;
  --border-soft: #E5DED6;
  --shadow: rgba(0,0,0,0.12);
  --shadow-soft: rgba(0,0,0,0.08);
  --border-radius-large: 40px;
  --border-radius-medium: 32px;
  --border-radius-small: 24px;
  --spacing-section: 80px;
  --spacing-element: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream-bg);
}

/* HEADINGS */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
}

/* HERO TITLE */
.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* SECTION TITLES */
h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

/* SUBHEADINGS */
h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* BODY TEXT */
p {
  font-size: 15px;
  color: var(--text-muted);
}

/* PRODUCT TITLE */
.product-title {
  font-size: 24px;
  margin-bottom: 6px;
}

/* PRODUCT PRICE */
.product-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* SMALL LABEL TEXT */
.label,
.story-date {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

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

/* SECTION SPACING */
section {
  margin-bottom: 50px;
  padding-top: 20px;
}

/* Header */
header {
  background-color: var(--cream-bg);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--olive-primary);
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--cream-bg);
  padding: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.nav-menu.active {
  display: block;
}

.nav-menu ul {
  list-style: none;
  text-align: center;
}

.nav-menu li {
  margin: 0.5rem 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem;
  color: var(--text-dark);
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--pink-primary);
}

.cart-icon {
  position: relative;
  font-size: 1.5rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--pink-primary);
  color: var(--white);
  border-radius: 50%;
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}

/* Filter buttons */
.shop-controls {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-group,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--input-bg);
  font-size: 0.95rem;
}

.search-button {
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--olive-primary);
  color: white;
}

.filter-btn {
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background-color: var(--cream-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-soft);
  transition: all 0.3s;
}

.filter-btn.active {
  background-color: var(--olive-primary);
  color: white;
  border-color: var(--olive-primary);
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

/* Hero section */
.hero {
  padding: 2rem 1rem 2.5rem;
  background: linear-gradient(180deg, var(--pink-light) 0%, var(--cream-bg) 100%);
  color: var(--text-dark);
  border-radius: 32px;
  box-shadow: 0 24px 65px var(--shadow);
  margin-top: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy-block {
  text-align: left;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--olive-primary);
}

.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  background-color: var(--pink-primary);
  color: var(--white);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  font-weight: 600;
}

.btn:hover {
  background-color: var(--pink-light);
  transform: translateY(-1px);
}

.btn.btn-secondary {
  background-color: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--pink-primary);
}

.btn.btn-secondary:hover {
  background-color: #fff3f0;
}

.btn.btn-olive {
  background-color: var(--olive-primary);
  color: var(--white);
  border: 1px solid var(--olive-primary);
}

.btn.btn-olive:hover {
  background-color: var(--olive-hover);
}

.hero-image-wrap,
.crown-image-wrap {
  display: flex;
  justify-content: center;
}

.hero-image,
.crown-image {
  width: 100%;
  border-radius: 32px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.12);
}

.crown-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.crown-copy {
  max-width: 520px;
}

.crown-image {
  width: 100%;
}

.crown-revival-section {
  padding: 3rem 2rem;
  background: var(--ivory-card);
  border-radius: 32px;
  box-shadow: 0 20px 48px var(--shadow);
}

.crown-highlight {
  display: grid;
  gap: 1.5rem;
}

/* Section layout */
.section {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--ivory-card);
  border-radius: 30px;
  box-shadow: 0 18px 44px var(--shadow);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--olive-primary);
}

.section-copy {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.product-card {
  background-color: var(--ivory-card);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 26px 60px var(--shadow);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.product-card__link {
  display: block;
  color: inherit;
}

.product-info {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0;
}

.product-description {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.product-description p {
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--olive-primary);
  margin-bottom: 0;
}

.product-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.add-to-cart {
  margin: 0 1.5rem 1.5rem;
  width: calc(100% - 3rem);
  padding: 1rem;
  background-color: var(--olive-primary);
  color: var(--white);
  border-radius: 999px;
}

.add-to-cart:hover {
  background-color: var(--olive-hover);
}

.story-time {
  padding: 2.5rem;
  background: var(--ivory-card);
  border-radius: 32px;
  margin: 2.5rem 0;
  box-shadow: 0 20px 48px var(--shadow);
}

.story-date {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--olive-primary);
}

.story-title {
  font-size: 2.4rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.85rem;
  color: var(--text-dark);
}

.story-social {
  display: flex;
  gap: 10px;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.story-image {
  width: 100%;
  border-radius: 32px;
  margin-bottom: 1.5rem;
  max-height: 420px;
  object-fit: cover;
}

.story-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.story-time p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.product-detail-page {
  margin: 2rem 1rem;
  padding: 2.5rem;
  background: var(--ivory-card);
  border-radius: var(--border-radius-large);
  box-shadow: 0 20px 50px var(--shadow-soft);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.product-detail-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail-image {
  width: 100%;
  border-radius: var(--border-radius-large);
  object-fit: cover;
  box-shadow: 0 10px 30px var(--shadow-soft);
  aspect-ratio: 1;
}

.product-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-category {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 2.5rem;
  margin-bottom: 0;
  color: var(--text-dark);
  line-height: 1.1;
  font-weight: 600;
}

.product-tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.product-benefits {
  background: var(--pink-light);
  border-radius: var(--border-radius-medium);
  padding: 1.5rem;
  margin: 1rem 0;
}

.product-benefits h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--olive-primary);
  font-weight: 600;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.benefits-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 1rem;
}

.benefits-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--olive-primary);
  font-size: 1.25rem;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.option {
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius-large);
  border: 2px solid var(--border-soft);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.option:hover {
  border-color: var(--pink-primary);
  background: var(--pink-light);
}

.option.active {
  background: var(--olive-primary);
  color: var(--white);
  border-color: var(--olive-primary);
  box-shadow: 0 4px 12px var(--shadow-soft);
}

.quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0.5rem;
  background: var(--ivory-card);
  border-radius: var(--border-radius-medium);
  border: 1px solid var(--border-soft);
}

.quantity-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--pink-primary);
  background: var(--white);
  color: var(--pink-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.quantity-btn:hover {
  background: var(--pink-primary);
  color: var(--white);
}

.quantity span {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-dark);
}

.product-add-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  background: var(--olive-primary);
  color: var(--white);
  border-radius: var(--border-radius-large);
  border: none;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--shadow-soft);
  margin-top: 0.5rem;
}

.product-add-btn:hover {
  background: var(--olive-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

/* Form styles */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Newsletter */
.newsletter {
  background-color: var(--pink-light);
  padding: 2rem;
  text-align: center;
  color: var(--text-dark);
  border-radius: 24px;
}

.newsletter h3 {
  margin-bottom: 1rem;
}

.newsletter-form {
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  margin-bottom: 1rem;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 1rem;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-details h3 {
  margin-bottom: 0.5rem;
}

.cart-item-price {
  color: var(--olive-primary);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.quantity-btn {
  background-color: var(--pink-light);
  border: 1px solid var(--olive-primary);
  color: var(--olive-primary);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background-color: var(--olive-primary);
  color: white;
}

.quantity {
  margin: 0 1rem;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.item-subtotal {
  font-weight: bold;
  color: var(--text-dark);
}

.remove-item {
  background: none;
  border: none;
  color: var(--pink-primary);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--olive-primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1rem;
}

.checkout-btn:hover {
  background-color: var(--olive-hover);
}

/* Sections */
.section {
  margin: 2rem 0;
}

.section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--olive-primary);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--white);
  text-align: center;
  padding: 1.25rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: white;
  margin: 0 1rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--pink-primary);
}

/* Cart page */
.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 1rem;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-price {
  font-weight: bold;
  color: var(--olive-primary);
}

.remove-item {
  background: none;
  border: none;
  color: var(--pink-primary);
  cursor: pointer;
  font-size: 1.2rem;
}

.filter-btn {
  margin: 0 0.5rem;
  background-color: var(--cream-bg);
  color: var(--text-dark);
  border: 1px solid var(--olive-primary);
}

.filter-btn.active {
  background-color: var(--olive-primary);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Newsletter */
.newsletter {
  background-color: var(--pink-light);
  padding: 2rem;
  text-align: center;
  color: var(--text-dark);
}

.newsletter h3 {
  margin-bottom: 1rem;
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-menu {
    display: block !important;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-menu ul {
    display: flex;
    justify-content: center;
  }

  .nav-menu li {
    margin: 0 1rem;
  }

  .nav-toggle {
    display: none;
  }

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

  .hero-grid {
    grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.9fr);
  }

  .crown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

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

  .hero {
    padding: 4rem 0;
  }
}


