@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Inter:wght@400;500;600;700;800&display=swap');

/* Teacher store theme.
   Drop this after css/styles.css to restyle the original storefront without
   changing ecommerce/cart behavior. */
:root {
  --primary: #1F6F64;
  --primary-dark: #15554C;
  --primary-light: #E4F3EF;
  --secondary: #E3A72F;
  --secondary-dark: #A86F15;
  --accent: #C94F4F;
  --text-primary: #22313A;
  --text-secondary: #617078;
  --text-light: #8B9AA1;
  --bg-white: #FFFCF4;
  --bg-light: #F7F1E4;
  --bg-gray: #EFE6D4;
  --border: #E2D7C2;
  --shadow-sm: 0 1px 3px rgba(37, 48, 53, 0.08);
  --shadow-md: 0 8px 24px rgba(37, 48, 53, 0.11);
  --shadow-lg: 0 18px 46px rgba(37, 48, 53, 0.15);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
}

body {
  background:
    linear-gradient(90deg, rgba(31, 111, 100, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(31, 111, 100, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-light);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.top-bar {
  background: #243238;
  color: #FFF8E8;
}

.top-bar a {
  color: #F4C95D;
}

.header {
  background: rgba(255, 252, 244, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(226, 215, 194, 0.72);
}

.header .logo {
  color: var(--text-primary);
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 900;
  letter-spacing: 0;
}

.header .logo svg {
  display: none;
}

.header .logo::before {
  content: "";
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,0.6) 45% 55%, transparent 55%),
    linear-gradient(#F4C95D, #F4C95D) 50% 78% / 22px 4px no-repeat,
    linear-gradient(135deg, #1F6F64 0 48%, #15554C 48% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.22),
    0 8px 20px rgba(31, 111, 100, 0.18);
}

.logo .logo-brand {
  font-size: 1.42rem;
}

.logo .logo-brand span,
.footer-about .logo .highlight {
  color: var(--primary);
}

.search-bar input {
  border-radius: 999px;
  background: #FFF7E8;
  border-color: var(--border);
}

.search-bar button,
.cart-count {
  background: var(--primary);
}

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

.main-nav {
  background: rgba(255, 252, 244, 0.94);
  border-bottom: 1px solid rgba(226, 215, 194, 0.78);
}

.main-nav li a {
  color: #52626A;
  font-weight: 700;
}

.main-nav li a:hover,
.main-nav li a.active {
  color: var(--primary);
}

.main-nav li a::after {
  height: 3px;
  background: var(--secondary);
  border-radius: 999px;
}

.hero {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 102px 0 92px;
  background:
    radial-gradient(circle at 82% 22%, rgba(244, 201, 93, 0.38), transparent 32%),
    linear-gradient(115deg, #203139 0%, #1F6F64 52%, #F2C35B 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 37, 42, 0.76), rgba(24, 37, 42, 0.28) 52%, rgba(24, 37, 42, 0.1)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(255,255,255,0.06) 42px 43px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,0.045) 42px 43px);
}

.hero::after {
  width: min(42vw, 570px);
  aspect-ratio: 1.15;
  right: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  border-radius: 8px;
  background:
    linear-gradient(#FFF8E8 0 0) 50% 52% / 74% 4px no-repeat,
    linear-gradient(#FFF8E8 0 0) 50% 38% / 66% 4px no-repeat,
    linear-gradient(#FFF8E8 0 0) 50% 66% / 58% 4px no-repeat,
    linear-gradient(135deg, rgba(255,252,244,0.92), rgba(247,241,228,0.82));
  border: 10px solid rgba(255, 252, 244, 0.32);
  box-shadow: 0 34px 70px rgba(24, 37, 42, 0.24);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 96px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 540px;
  color: #fff;
}

.hero-badge {
  background: rgba(255, 252, 244, 0.16);
  color: #F9D77C;
  border-color: rgba(249, 215, 124, 0.42);
  border-radius: 999px;
  text-transform: uppercase;
}

.hero-badge::before {
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(249, 215, 124, 0.2);
}

.hero h1 {
  max-width: 550px;
  font-family: 'Merriweather', Georgia, serif;
  color: #FFFDF8;
  font-size: clamp(3.3rem, 5.8vw, 5.65rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 .highlight {
  color: #F9D77C;
}

.hero h1 .highlight::after {
  display: none;
}

.hero p {
  color: rgba(255, 252, 244, 0.9);
  max-width: 520px;
}

.hero-buttons {
  gap: 14px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  position: relative;
  animation: none;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: min(86%, 455px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 252, 244, 0.28), rgba(255, 252, 244, 0));
  transform: translate(10%, -8%);
}

.hero-image img {
  width: min(78%, 470px);
  max-height: 510px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 42px rgba(16, 28, 32, 0.3));
  border-radius: 8px;
  animation: none;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 540px;
}

.hero-trust-item {
  min-width: 0;
}

.hero-trust-item strong {
  display: block;
  font-size: 1.08rem;
  white-space: normal;
}

.hero-trust-item strong,
.hero-trust-stars {
  color: #F9D77C;
}

.hero-trust-item span {
  color: rgba(255, 252, 244, 0.74);
}

.btn {
  border-radius: 999px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(31, 111, 100, 0.26);
}

.btn-secondary {
  background: rgba(255, 252, 244, 0.94);
  border-color: rgba(255, 252, 244, 0.86);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--secondary);
  color: var(--primary);
}

.features-strip,
.featured-collections,
.products-section,
.newsletter,
.footer {
  background: var(--bg-light);
}

.feature-item {
  background: rgba(255, 252, 244, 0.78);
  border: 1px solid rgba(226, 215, 194, 0.82);
}

.feature-icon {
  background: #FFF4D6;
  color: var(--secondary-dark);
}

.feature-icon svg {
  stroke: var(--secondary-dark);
}

.feature-item:hover .feature-icon {
  background: var(--secondary);
  color: #243238;
}

.section-title h2,
.products-header h2,
.page-header h1,
.collection-hero h1,
.newsletter h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 900;
  letter-spacing: 0;
}

.section-title .underline {
  background: var(--secondary);
}

.categories {
  background: #F1E8D7;
}

.category-card,
.collection-card,
.product-card,
.filter-group,
.cart-summary,
.checkout-form,
.cart-table,
.main-image,
.product-type-section {
  border-radius: 8px;
}

.category-card:hover,
.product-card:hover {
  box-shadow: 0 18px 42px rgba(37, 48, 53, 0.15);
}

.category-card:hover .cat-img::after {
  background: linear-gradient(to top, rgba(32, 49, 57, 0.82), rgba(32, 49, 57, 0.22), transparent);
}

.collection-card {
  background: #203139;
}

.collection-card .coll-overlay {
  background: linear-gradient(to bottom, rgba(32, 49, 57, 0.1) 32%, rgba(32, 49, 57, 0.88));
}

.product-card {
  background: #FFFCF4;
  border-color: rgba(226, 215, 194, 0.92);
}

.product-image {
  background:
    linear-gradient(90deg, rgba(31,111,100,0.045) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(31,111,100,0.045) 1px, transparent 1px) 0 0 / 22px 22px,
    #FFF7E8;
}

.product-badge {
  border-radius: 999px;
  background: var(--secondary);
  color: #243238;
  box-shadow: none;
}

.badge-new {
  background: var(--primary);
  color: #fff;
}

.badge-sale {
  background: var(--accent);
  color: #fff;
}

.badge-hot {
  background: var(--secondary);
  color: #243238;
}

.badge-hot::before {
  content: "";
}

.product-category {
  color: var(--primary);
}

.price-current {
  color: var(--accent);
}

.page-header,
.collection-hero {
  background:
    linear-gradient(90deg, rgba(31,111,100,0.05) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(135deg, #FFFCF4, #F1E8D7);
}

.breadcrumb {
  color: var(--text-light);
}

.sidebar {
  top: 132px;
}

.filter-group,
.sort-bar {
  background: rgba(255, 252, 244, 0.9);
  border: 1px solid var(--border);
}

.main-image {
  background: #FFF7E8;
  border: 1px solid var(--border);
}

.detail-description-wrap {
  border-left: 3px solid var(--primary);
  padding-left: 18px;
}

.newsletter {
  background:
    linear-gradient(135deg, rgba(32, 49, 57, 0.94), rgba(31, 111, 100, 0.88)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,0.055) 34px 35px);
  color: #FFFDF8;
}

.newsletter p {
  color: rgba(255, 252, 244, 0.78);
}

.newsletter-form input {
  background: rgba(255, 252, 244, 0.96);
}

.newsletter-form button {
  background: var(--secondary);
  color: #243238;
}

.newsletter-form button:hover {
  background: #F4C95D;
}

.footer {
  background: #203139;
  color: #FFF8E8;
}

.footer h4 {
  color: #FFFDF8;
}

.footer ul li a,
.footer-about p,
.footer-bottom {
  color: rgba(255, 248, 232, 0.7);
}

.footer ul li a:hover {
  color: #F9D77C;
}

.empty-cart p {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero {
    min-height: 560px;
    padding: 72px 0 70px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(24, 37, 42, 0.84), rgba(24, 37, 42, 0.5)),
      repeating-linear-gradient(0deg, transparent 0 40px, rgba(255,255,255,0.06) 40px 41px),
      repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.045) 40px 41px);
  }

  .hero::after,
  .hero-image {
    display: none;
  }

  .hero .container {
    display: block;
  }

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

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

  .hero-buttons .btn-secondary {
    background: rgba(255, 252, 244, 0.94);
  }

  .hero-trust {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
