/*
Theme Name: Tupperware Brand Child
Theme URI: https://www.tupperware.com/
Description: A lightweight WordPress child theme recreating the Tupperware Brand storefront homepage.
Author: Tupperware Brand
Template: generatepress
Version: 1.0.0
Text Domain: tupperware-brand-child
*/

:root {
  --tw-teal: #00524f;
  --tw-pink: #e64779;
  --tw-yellow: #f8db54;
  --tw-ink: #1d2524;
  --tw-muted: #68716f;
  --tw-line: #dfe6e3;
  --tw-paper: #fff;
  --tw-soft: #f5f7f6;
  --tw-max: 1240px;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--tw-paper); color: var(--tw-ink); font-family: Arial, Helvetica, sans-serif; }
body, button, input, select, textarea { letter-spacing: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.site-content, .content-area, .site-main { width: 100%; max-width: none; padding: 0; margin: 0; }
.tw-shell { width: min(calc(100% - 48px), var(--tw-max)); margin-inline: auto; }
.tw-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; }

/* Header */
.tw-top-banner { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 18px; background: var(--tw-teal); color: #fff; font-size: 13px; line-height: 1.35; text-align: center; }
.tw-top-banner svg { flex: 0 0 20px; width: 20px; height: 20px; }
.tw-top-banner a { text-decoration: underline; text-underline-offset: 3px; }
.tw-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--tw-line); }
.tw-header-row { min-height: 76px; display: grid; grid-template-columns: 180px 1fr auto; gap: 25px; align-items: center; }
.tw-brand img { width: 170px; height: auto; }
.tw-nav .menu { display: flex; align-items: center; justify-content: center; gap: 5px; list-style: none; padding: 0; margin: 0; }
.tw-nav .menu > li { position: relative; }
.tw-nav .menu > li > a { display: block; padding: 28px 13px; color: var(--tw-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tw-nav .menu > li > a:hover, .tw-nav .menu > li.current-menu-item > a { color: var(--tw-teal); }
.tw-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 215px; background: #fff; border: 1px solid var(--tw-line); box-shadow: 0 14px 30px rgba(0,0,0,.1); padding: 8px 0; margin: 0; list-style: none; visibility: hidden; opacity: 0; transform: translateY(6px); transition: .2s ease; }
.tw-nav li:hover > .sub-menu, .tw-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.tw-nav .sub-menu a { display: block; padding: 9px 15px; font-size: 13px; text-decoration: none; }
.tw-nav .sub-menu a:hover { background: var(--tw-soft); color: var(--tw-teal); }
.tw-actions { display: flex; align-items: center; gap: 14px; }
.tw-icon-button { display: inline-flex; justify-content: center; align-items: center; width: 33px; height: 33px; border: 0; background: transparent; color: var(--tw-ink); cursor: pointer; text-decoration: none; }
.tw-icon-button:hover { color: var(--tw-teal); }
.tw-icon-button svg { width: 22px; height: 22px; }
.tw-search { position: absolute; inset: 100% 0 auto; display: none; padding: 18px 0; background: #fff; border-bottom: 1px solid var(--tw-line); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.tw-search.is-open { display: block; }
.tw-search form { display: flex; max-width: 620px; margin: 0 auto; }
.tw-search input[type=search] { flex: 1; min-height: 44px; border: 1px solid #b8c4c0; padding: 0 13px; font-size: 15px; }
.tw-search button { border: 0; background: var(--tw-teal); color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer; }
.tw-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.tw-menu-toggle svg { width: 26px; height: 26px; }

/* Shared sections */
.tw-section { padding: 66px 0; }
.tw-section--soft { background: var(--tw-soft); }
.tw-section-heading { margin: 0 0 26px; color: var(--tw-teal); font-size: clamp(25px, 3vw, 36px); line-height: 1.08; font-weight: 700; }
.tw-section-heading--center { text-align: center; }
.tw-section-intro { max-width: 690px; margin: -10px auto 28px; color: var(--tw-muted); text-align: center; line-height: 1.6; }
.tw-button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 23px; border: 1px solid var(--tw-teal); background: var(--tw-teal); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; transition: background .2s, color .2s; }
.tw-button:hover { background: #fff; color: var(--tw-teal); }
.tw-button--pink { border-color: var(--tw-pink); background: var(--tw-pink); }
.tw-button--pink:hover { color: var(--tw-pink); }

/* Hero */
.tw-hero { position: relative; overflow: hidden; background: #edf1ef; }
.tw-hero-track { display: flex; transition: transform .45s ease; }
.tw-hero-slide { flex: 0 0 100%; position: relative; aspect-ratio: 2.63 / 1; min-height: 245px; }
.tw-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.tw-hero-controls { position: absolute; inset: auto 24px 18px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.tw-hero-arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(0,0,0,.25); background: rgba(255,255,255,.9); color: var(--tw-ink); cursor: pointer; }
.tw-hero-arrow:hover { background: var(--tw-teal); color: #fff; }
.tw-hero-arrow svg { width: 17px; }
.tw-hero-dots { display: flex; gap: 7px; margin: 0 6px; }
.tw-hero-dot { width: 8px; height: 8px; border: 0; border-radius: 50%; padding: 0; background: rgba(0,0,0,.35); cursor: pointer; }
.tw-hero-dot.is-active { background: var(--tw-teal); transform: scale(1.25); }

/* Promo tiles and category grid */
.tw-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tw-tile { display: block; overflow: hidden; background: #fff; text-decoration: none; }
.tw-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease; }
.tw-tile:hover img { transform: scale(1.035); }
.tw-tile__body { padding: 16px 18px 19px; }
.tw-tile__body h3 { margin: 0 0 7px; color: var(--tw-teal); font-size: 19px; }
.tw-tile__body p { margin: 0; color: var(--tw-muted); font-size: 14px; line-height: 1.45; }
.tw-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tw-category { text-align: center; text-decoration: none; }
.tw-category img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--tw-soft); transition: transform .2s; }
.tw-category:hover img { transform: translateY(-4px); }
.tw-category span { display: block; margin-top: 12px; color: var(--tw-ink); font-size: 14px; font-weight: 700; }

/* Products */
.tw-product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tw-product-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--tw-line); }
.tw-product-card__image { position: relative; overflow: hidden; background: #f7f8f8; }
.tw-product-card__image img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.tw-product-card__image img + img { position: absolute; inset: 0; opacity: 0; }
.tw-product-card:hover .tw-product-card__image img + img { opacity: 1; }
.tw-sale { position: absolute; top: 10px; left: 10px; padding: 5px 8px; background: var(--tw-pink); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tw-product-card__body { display: flex; flex: 1; flex-direction: column; padding: 14px 13px 15px; }
.tw-product-card h3 { margin: 0 0 10px; min-height: 42px; color: var(--tw-ink); font-size: 14px; line-height: 1.35; }
.tw-product-card h3 a { text-decoration: none; }
.tw-rating { margin-bottom: 7px; color: #e0a300; font-size: 12px; letter-spacing: 1px; }
.tw-price { margin-top: auto; color: var(--tw-teal); font-size: 16px; font-weight: 700; }
.tw-price s { margin-right: 5px; color: #89938f; font-size: 13px; font-weight: 400; }
.tw-card-link { display: block; margin-top: 12px; color: var(--tw-teal); font-size: 12px; font-weight: 700; text-decoration: underline; text-transform: uppercase; }

/* Editorial and recipes */
.tw-editorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tw-editorial { position: relative; min-height: 325px; overflow: hidden; color: #fff; }
.tw-editorial img { width: 100%; height: 100%; min-height: 325px; object-fit: cover; transition: transform .35s; }
.tw-editorial:hover img { transform: scale(1.03); }
.tw-editorial__content { position: absolute; inset: auto 0 0; padding: 32px 28px 25px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.tw-editorial__content h3 { margin: 0 0 7px; font-size: 25px; }
.tw-editorial__content p { margin: 0 0 15px; max-width: 460px; line-height: 1.45; }
.tw-recipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tw-recipe-card { background: #fff; }
.tw-recipe-card img { width: 100%; aspect-ratio: 1.3; object-fit: cover; }
.tw-recipe-card h3 { padding: 14px 14px 17px; margin: 0; color: var(--tw-teal); font-size: 15px; line-height: 1.35; }

/* Newsletter and footer */
.tw-newsletter { display: grid; grid-template-columns: 1fr minmax(280px, 470px); gap: 35px; align-items: center; padding: 45px 0; }
.tw-newsletter h2 { margin: 0 0 9px; color: var(--tw-pink); font-size: 34px; }
.tw-newsletter p { margin: 0; color: var(--tw-teal); line-height: 1.55; }
.tw-newsletter form { display: flex; }
.tw-newsletter input[type=email] { flex: 1; min-height: 45px; border: 1px solid #aab8b4; padding: 0 13px; }
.tw-newsletter button { border: 0; background: var(--tw-pink); color: #fff; padding: 0 19px; font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.tw-footer { padding: 52px 0 22px; background: #f0f3f1; color: var(--tw-ink); }
.tw-footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 35px; }
.tw-footer h2 { margin: 0 0 15px; color: var(--tw-teal); font-size: 14px; letter-spacing: .05em; }
.tw-footer ul { list-style: none; padding: 0; margin: 0; }
.tw-footer li { margin: 0 0 10px; }
.tw-footer a { color: #44504d; font-size: 13px; text-decoration: none; }
.tw-footer a:hover { color: var(--tw-teal); text-decoration: underline; }
.tw-footer-brand img { width: 190px; margin-bottom: 15px; }
.tw-footer-brand p { max-width: 250px; color: var(--tw-muted); font-size: 13px; line-height: 1.55; }
.tw-footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 34px; margin-top: 30px; border-top: 1px solid #d3ddd9; color: var(--tw-muted); font-size: 12px; }

/* Inner pages keep the same typography when GeneratePress renders them. */
.tw-page-wrap { width: min(calc(100% - 48px), 900px); margin: 70px auto; }
.tw-page-wrap h1 { color: var(--tw-teal); }

@media (max-width: 1024px) {
  .tw-header-row { grid-template-columns: 150px 1fr auto; gap: 14px; }
  .tw-brand img { width: 145px; }
  .tw-nav .menu > li > a { padding-inline: 8px; font-size: 13px; }
  .tw-product-grid { grid-template-columns: repeat(3, 1fr); }
  .tw-category-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
}
@media (max-width: 760px) {
  .tw-shell { width: min(calc(100% - 30px), var(--tw-max)); }
  .tw-top-banner { font-size: 12px; }
  .tw-header-row { grid-template-columns: auto 1fr auto; min-height: 64px; }
  .tw-menu-toggle { display: inline-flex; }
  .tw-brand { justify-self: center; }
  .tw-brand img { width: 142px; }
  .tw-nav { position: absolute; inset: 100% 0 auto; display: none; background: #fff; border-bottom: 1px solid var(--tw-line); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .tw-nav.is-open { display: block; }
  .tw-nav .menu { display: block; padding: 10px 15px 17px; }
  .tw-nav .menu > li > a { padding: 12px 5px; border-bottom: 1px solid #edf0ef; }
  .tw-nav .sub-menu { position: static; display: block; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; padding: 0 0 5px 15px; }
  .tw-nav .sub-menu a { padding: 8px 5px; }
  .tw-actions { gap: 4px; }
  .tw-actions .tw-account, .tw-actions .tw-wishlist { display: none; }
  .tw-search form { width: calc(100% - 30px); }
  .tw-section { padding: 45px 0; }
  .tw-hero-slide { aspect-ratio: 1.13 / 1; min-height: 250px; }
  .tw-hero-slide img { object-fit: cover; }
  .tw-tile-grid, .tw-editorial-grid { grid-template-columns: 1fr; }
  .tw-product-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .tw-product-card h3 { min-height: 0; font-size: 13px; }
  .tw-category-grid { grid-template-columns: repeat(3, 1fr); gap: 17px 12px; }
  .tw-category span { font-size: 12px; }
  .tw-recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .tw-newsletter { grid-template-columns: 1fr; gap: 20px; padding: 35px 0; }
  .tw-newsletter h2 { font-size: 28px; }
  .tw-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .tw-footer-brand { grid-column: 1 / -1; }
  .tw-footer-bottom { display: block; line-height: 1.8; }
}
