/* Toy Land Workshop - styles
   Colors and fonts are set once here. Change them to restyle the whole site. */
:root {
  --red: #E4513F;
  --red-d: #C23A2A;
  --red-l: #FDE7E3;
  --yellow: #FFC530;
  --yellow-l: #FFF3CC;
  --blue: #2D6CDF;
  --blue-d: #1F4FAA;
  --blue-l: #E6EEFE;
  --green: #2FAE6B;
  --green-l: #DFF5E9;
  --ink: #1E2547;
  --text: #3C4366;
  --muted: #6B7193;
  --line: #E8E2D4;
  --cream: #FFF9EE;
  --white: #FFFFFF;
  --head: "Grandstander", "Trebuchet MS", sans-serif;
  --body: "Quicksand", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 12px; font-weight: 800; }
h1 { font-size: 46px; }
h2 { font-size: 34px; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.sm { width: 16px; height: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: 14px; background: var(--red); color: #fff; font: 700 16px var(--body); cursor: pointer; box-shadow: 0 5px 0 var(--red-d); transition: transform .15s, box-shadow .15s; }
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--red-d); }
.btn.blue { background: var(--blue); box-shadow: 0 5px 0 var(--blue-d); }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn.white:hover { color: var(--ink); }

/* Block stripe: the four toy colors in a row */
.stripe { height: 8px; background: linear-gradient(90deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--blue) 50% 75%, var(--green) 75% 100%); }

/* Top bar and header */
.topbar { background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 20px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.topbar-right { display: flex; gap: 22px; }
.header { background: #fff; position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; }
.logo img { width: 240px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 16px; border-radius: 12px; color: var(--ink); font-weight: 700; }
.main-nav a:hover, .main-nav a.on { background: var(--yellow-l); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; }
.cart-btn:hover { color: #fff; background: var(--blue); }
.cart-count { background: var(--yellow); color: var(--ink); border-radius: 20px; min-width: 24px; padding: 0 7px; text-align: center; font-size: 13px; }
.menu-btn { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 7px; color: var(--ink); cursor: pointer; }

/* Sections */
.section { padding: 76px 0; }
.section.white { background: #fff; }
.section.yellow { background: var(--yellow-l); }
.section.blue { background: var(--blue-l); }
.section.green { background: var(--green-l); }
.sec-head { margin-bottom: 34px; }
.sec-head h2 { margin: 0; }
.sec-head.center { text-align: center; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.row-head .sec-head { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Hero */
.hero { padding: 64px 0 76px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 56px; }
.hero h1 span { color: var(--red); }
.hero p { font-size: 18px; max-width: 520px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 520px; }
.hero-facts div { background: #fff; border-radius: 14px; padding: 12px 14px; border: 2px solid var(--line); }
.hero-facts b { display: block; font-family: var(--head); font-size: 22px; color: var(--ink); }
.hero-facts small { color: var(--muted); font-weight: 600; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Toy block tiles (perks) */
.blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.block { position: relative; border-radius: 18px; padding: 26px 22px 22px; color: #fff; margin-top: 12px; }
.block::before, .block::after { content: ""; position: absolute; top: -12px; width: 38px; height: 16px; border-radius: 8px 8px 3px 3px; background: inherit; }
.block::before { left: 22%; }
.block::after { right: 22%; }
.block h3 { color: inherit; margin: 12px 0 4px; }
.block p { margin: 0; font-size: 15px; opacity: .92; }
.b-red { background: var(--red); }
.b-yellow { background: var(--yellow); color: var(--ink); }
.b-blue { background: var(--blue); }
.b-green { background: var(--green); }
.block .ic { width: 30px; height: 30px; }

/* Department cards */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dept { display: flex; flex-direction: column; background: #fff; border-radius: 18px; border: 2px solid var(--line); overflow: hidden; color: var(--text); transition: transform .15s; }
.dept:hover { transform: translateY(-4px); color: var(--text); }
.dept-top { display: flex; align-items: center; justify-content: center; height: 92px; color: #fff; }
.dept-top .ic { width: 40px; height: 40px; }
.dept-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.dept-body strong { font-family: var(--head); font-size: 19px; color: var(--ink); }
.dept-body small { color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.dept-body em { margin-top: auto; font-style: normal; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.three { grid-template-columns: repeat(3, 1fr); }
.product { display: flex; flex-direction: column; background: #fff; border-radius: 18px; border: 2px solid var(--line); overflow: hidden; box-shadow: 0 6px 0 rgba(30, 37, 71, .07); }
.product-img { background: #fff; aspect-ratio: 1 / 1; padding: 12px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 4px 18px 18px; }
.p-dept { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.product h3 { font-size: 17px; }
.product p { font-size: 14px; color: var(--muted); }
.product-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.price { align-self: flex-start; font-family: var(--head); font-size: 20px; font-weight: 800; color: var(--ink); background: var(--yellow-l); padding: 2px 12px; border-radius: 10px; }
.add-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 11px; border: 0; border-radius: 12px; background: var(--yellow); color: var(--ink); font: 700 15px var(--body); cursor: pointer; box-shadow: 0 4px 0 #D9A21C; }
.add-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #D9A21C; }
.add-btn.added { background: var(--green); color: #fff; box-shadow: 0 4px 0 #23864F; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 8px solid #fff; box-shadow: 14px 14px 0 var(--blue); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .dot { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.check-list h3 { margin: 0 0 2px; }
.check-list p { margin: 0; }

/* Steps as a toy train */
.train { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.train::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 6px; border-top: 4px dashed var(--muted); opacity: .4; }
.car { position: relative; background: #fff; border-radius: 18px; border: 2px solid var(--line); padding: 26px 22px 40px; text-align: center; }
.car .num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; color: #fff; font: 800 24px var(--head); margin-bottom: 12px; }
.car p { margin: 0; }
.car::before, .car::after { content: ""; position: absolute; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); border: 6px solid #fff; }
.car::before { left: 22%; }
.car::after { right: 22%; }

/* Testimonials as speech bubbles */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { display: flex; flex-direction: column; }
.bubble { position: relative; flex: 1; background: #fff; border-radius: 20px; padding: 24px; border: 2px solid var(--line); }
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -14px; width: 24px; height: 24px; background: #fff; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); }
.stars { color: var(--yellow); font-size: 18px; letter-spacing: 2px; margin-bottom: 8px; }
.bubble p { margin: 0; color: var(--ink); }
.who { display: flex; align-items: center; gap: 12px; margin: 24px 0 0 18px; }
.avatar { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font: 800 20px var(--head); }
.who b { display: block; color: var(--ink); }
.who small { color: var(--muted); font-weight: 600; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; border: 2px solid var(--line); overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card div { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 a { color: var(--ink); }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .text-link { margin-top: auto; }

/* Newsletter */
.news { background: var(--red); color: #fff; border-radius: 28px; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; }
.news-text { padding: 48px; }
.news h2 { color: #fff; }
.news img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.news-form input { flex: 1; min-width: 200px; }
.news .form-msg { color: #fff; }

/* Page banner */
.banner { background: var(--blue-l); padding: 52px 0; text-align: center; }
.banner h1 { margin: 0; font-size: 44px; }

/* Shop chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; justify-content: center; }
.chips a { padding: 8px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; }
.chips a.on, .chips a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.group { margin-bottom: 56px; }
.group:last-child { margin-bottom: 0; }

/* Forms */
label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 15px; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: 500 16px var(--body); background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-msg { font-weight: 700; color: var(--green); margin-top: 12px; }
.card { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 30px; }

/* About and contact */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
.info { display: flex; gap: 14px; align-items: flex-start; }
.info .dot, .values .dot { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.info p { margin: 0; }
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: stretch; }
.contact-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; min-height: 320px; }

/* Cart and checkout */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: middle; }
.cart-table th { background: var(--ink); color: #fff; font-weight: 700; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; }
.cart-table input { width: 80px; }
.remove-btn { background: var(--red-l); color: var(--red-d); border: 0; border-radius: 10px; padding: 8px 12px; font: 700 14px var(--body); cursor: pointer; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.table-wrap { overflow-x: auto; }
.summary h3 { margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px dashed var(--line); }
.summary-line.total { font-weight: 800; color: var(--ink); font-size: 18px; border: 0; }
.summary .btn { width: 100%; justify-content: center; margin-top: 16px; }
.empty { text-align: center; padding: 48px 20px; }

/* Article and policy text */
.article { max-width: 780px; margin: 0 auto; }
.article img { width: 100%; border-radius: 20px; margin-bottom: 30px; aspect-ratio: 16 / 9; object-fit: cover; }
.article h2 { font-size: 26px; margin-top: 30px; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 6px; }

/* Toast */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; gap: 14px; align-items: center; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; max-width: 360px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; }
.toast.show { opacity: 1; visibility: visible; transform: none; }
.toast a { color: var(--yellow); font-weight: 700; white-space: nowrap; }

/* Footer */
.footer { background: var(--ink); color: #C9CDE3; margin-top: 0; }
.footer a { color: #C9CDE3; }
.footer a:hover { color: var(--yellow); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 44px 20px 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-top img { width: 240px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-contact span, .footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 20px; }
.footer h4 { font-family: var(--head); color: #fff; font-size: 18px; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-bottom nav { display: flex; gap: 18px; }

/* Responsive */
@media (max-width: 1000px) {
  .product-grid, .dept-grid, .blocks { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .split, .news, .contact-wrap, .cart-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 10px 20px 18px; border-bottom: 2px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .cart-btn .label { display: none; }
  .topbar-right a:last-child { display: none; }
  .quotes, .blog-grid, .train, .values, .info-grid, .product-grid.three { grid-template-columns: 1fr 1fr; }
  .train::before { display: none; }
}
@media (max-width: 600px) {
  h1, .banner h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 56px 0; }
  .logo img { width: 190px; }
  .topbar-in { justify-content: center; }
  .topbar-in > span:first-child { display: none; }
  .product-grid, .product-grid.three, .quotes, .blog-grid, .train, .values, .info-grid, .form-grid { grid-template-columns: 1fr; }
  .dept-grid, .blocks { grid-template-columns: 1fr 1fr; gap: 14px; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .news-text { padding: 32px 24px; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hero-facts b { font-size: 18px; }
  .cart-table th:nth-child(1), .cart-table td:nth-child(1) { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
