/*
Theme Name: Guru Nirmalya Crochet
Theme URI: https://example.com
Author: Guru Nirmalya Crochet
Description: Handmade crochet shop theme with WooCommerce support. Stitching Smiles, One Loop at a Time.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gnc
*/

:root {
  --pink: #e6197f;
  --pink-dark: #b80f63;
  --pink-soft: #fde7f1;
  --berry: #4a1a12;
  --cream: #fff8f0;
  --purple: #7b4bd1;
  --teal: #19b5d6;
  --sun: #f7b500;
  --leaf: #2e9b3f;
  --ink: #3a2a26;
  --muted: #7d6a64;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(184, 15, 99, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--pink-dark); }
h1, h2, h3, h4 { font-family: 'Pacifico', cursive; color: var(--berry); font-weight: 400; line-height: 1.25; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Buttons */
.btn, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .75em 1.5em;
  font: 800 1rem 'Nunito', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--pink-dark); color: #fff; transform: translateY(-2px); }
.btn-wa { background: #25a244; }
.btn-wa:hover { background: #1c8636; }
.btn-ghost { background: #fff; color: var(--pink-dark); box-shadow: inset 0 0 0 2px var(--pink); }
.btn-ghost:hover { background: var(--pink-soft); color: var(--pink-dark); }

/* Announcement + header */
.topbar { background: var(--berry); color: #fff; text-align: center; font-weight: 700; font-size: .9rem; padding: .5rem 1rem; }
.topbar b { color: var(--sun); }
.site-header { background: #fff; border-bottom: 3px dashed var(--pink); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; padding-block: .5rem; }
.brand img { width: 74px; height: 74px; display: block; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-name { font-family: 'Pacifico', cursive; font-size: 1.5rem; color: var(--berry); line-height: 1.1; }
.brand-name small { display: block; font: 800 .7rem 'Nunito'; letter-spacing: .3em; color: var(--pink); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 800; color: var(--berry); }
.main-nav a:hover { color: var(--pink); }
.cart-link { position: relative; text-decoration: none; font-weight: 800; background: var(--pink-soft); border-radius: 999px; padding: .45rem 1rem; color: var(--pink-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; color: var(--berry); }

/* Hero */
.hero { padding: 3rem 0 2rem; background:
  radial-gradient(circle at 10% 20%, #ffe0ee 0 120px, transparent 121px),
  radial-gradient(circle at 92% 80%, #e8dcff 0 150px, transparent 151px); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.eyebrow { display: inline-block; background: var(--pink-soft); color: var(--pink-dark); font-weight: 800; padding: .3rem .9rem; border-radius: 999px; font-size: .85rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: .6rem 0; }
.hero h1 span { color: var(--pink); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-art { text-align: center; }
.hero-art img { width: min(430px, 100%); filter: drop-shadow(0 14px 22px rgba(74, 26, 18, .25)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(1.5deg); } }

/* Sections */
section { padding: 3.5rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 .3rem; }
.section-head p { color: var(--muted); margin: 0; }
.stitch { border-top: 3px dashed var(--pink); width: 120px; margin: .8rem auto 0; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.cat { border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; text-decoration: none; color: var(--berry); font-weight: 800; box-shadow: var(--shadow); transition: transform .15s; display: block; }
.cat:hover { transform: translateY(-4px) rotate(-1deg); }
.cat span { display: block; font-size: 2.2rem; }
.cat:nth-child(5n+1) { background: #ffe3ef; } .cat:nth-child(5n+2) { background: #fff1c4; }
.cat:nth-child(5n+3) { background: #dff5fb; } .cat:nth-child(5n+4) { background: #eadfff; } .cat:nth-child(5n+5) { background: #def5df; }

/* Features */
.features { background: #fff; border-block: 3px dashed var(--pink-soft); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feat { text-align: center; padding: 1rem; }
.feat .ico { font-size: 2.4rem; }
.feat h3 { font-size: 1.25rem; margin: .4rem 0; }
.feat p { margin: 0; color: var(--muted); }

/* Custom order banner */
.custom { background: linear-gradient(135deg, var(--pink), #ff6fae); color: #fff; border-radius: 28px; padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; box-shadow: var(--shadow); }
.custom h2 { color: #fff; margin: 0 0 .4rem; }
.custom p { margin: 0; max-width: 40rem; }
.custom .btn { background: #fff; color: var(--pink-dark); }

/* Notes */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.note { background: #fff; border: 2px dashed var(--pink); border-radius: var(--radius); padding: 1.3rem; }
.note h3 { font-size: 1.2rem; margin-top: 0; }
.note ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.note.offer { background: #fff7d6; border-color: var(--sun); text-align: center; }
.note.offer strong { font: 400 2rem 'Pacifico'; color: var(--pink-dark); display: block; }

/* Page */
.page-wrap { padding: 2.5rem 0 4rem; }
.page-wrap h1.entry-title { text-align: center; font-size: 2.4rem; }
.entry-content { max-width: 880px; margin: 0 auto; }
.woocommerce-page .page-wrap .container, .page-wrap .container { }

/* WooCommerce */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border-radius: var(--radius); padding: 0 0 1.2rem; text-align: center; box-shadow: var(--shadow); overflow: hidden; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); border-color: var(--pink); }
.woocommerce ul.products li.product a img { margin: 0 0 .8rem; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 400 1.15rem 'Pacifico'; color: var(--berry); padding: 0 .8rem; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--pink-dark); font-weight: 800; font-size: 1.15rem; }
.woocommerce span.onsale { background: var(--sun); color: var(--berry); min-height: auto; min-width: auto; line-height: 1; padding: .6em .9em; }
.woocommerce div.product .product_title { font-size: 2.2rem; }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce-tabs ul.tabs li.active { border-bottom-color: #fff; }
.woocommerce-breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 1rem !important; }
.woocommerce .woocommerce-ordering select, .woocommerce input.input-text, .woocommerce select, .woocommerce textarea { border: 2px solid var(--pink-soft); border-radius: 12px; padding: .6em .8em; font: inherit; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--pink); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--pink); }
.gnc-enquire { margin: 1rem 0; }

/* Footer */
.site-footer { background: var(--berry); color: #f6e6df; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--sun); font-size: 1.2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer .copy { text-align: center; border-top: 1px dashed rgba(255,255,255,.25); margin-top: 2rem; padding-top: 1rem; font-size: .9rem; opacity: .85; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25a244; color: #fff; text-decoration: none; font-weight: 800; padding: .8rem 1.2rem; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: #1c8636; color: #fff; }

@media (max-width: 800px) {
  .hero .container, .custom, .site-footer .cols { grid-template-columns: 1fr; }
  .hero-art { order: -1; } .hero-art img { width: 240px; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 16px; border-bottom: 3px dashed var(--pink); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .8rem; }
  .brand-name { font-size: 1.2rem; }
  .brand img { width: 56px; height: 56px; }
  .custom { padding: 1.6rem; }
}
