/* =========================================================
   GemzBeez — Storefront Stylesheet
   Palette: hot pink / golden yellow / turquoise / deep purple
   Type: Baloo 2 (display, bubbly) + Quicksand (body)
   Signature element: faceted "gem" badges + wavy hive dividers
   ========================================================= */

:root {
  --pink: #FF4FA3;
  --pink-dark: #E8348A;
  --yellow: #FFC93C;
  --yellow-dark: #F0AE0E;
  --teal: #2DD9CF;
  --teal-dark: #1EB8AF;
  --purple: #7B4FFF;
  --purple-dark: #6435E8;
  --ink: #3A1B47;
  --cream: #FFFBF3;
  --cream-2: #FFF3DC;
  --white: #ffffff;
  --shadow-pop: 0 6px 0 rgba(58,27,71,0.9);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, .display {
  font-family: 'Baloo 2', cursive;
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Sparkle background decoration ---------- */
.sparkle-bg {
  position: relative;
  overflow: hidden;
}
.sparkle-bg::before,
.sparkle-bg::after {
  content: "✦";
  position: absolute;
  color: var(--yellow);
  font-size: 28px;
  opacity: .55;
}
.sparkle-bg::before { top: 12%; left: 6%; }
.sparkle-bg::after { bottom: 10%; right: 8%; color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 17px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: var(--shadow-pop);
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(58,27,71,0.9); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 3px solid var(--ink); box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 14px; border-width: 2px; box-shadow: 0 4px 0 rgba(58,27,71,0.9); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  text-align: center;
  padding: 6px 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  letter-spacing: .3px;
}

.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 54px; width: auto; }
.brand-text {
  font-family: 'Baloo 2', cursive;
  font-size: 26px;
  font-weight: 700;
}
.brand-text .gemz { color: var(--pink); }
.brand-text .beez { color: var(--yellow-dark); -webkit-text-stroke: 1px var(--ink); }

.main-nav { display: flex; gap: 22px; }
.main-nav a {
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 4px;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--pink); color: var(--pink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 18px;
}
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

.search-form { flex: 1; max-width: 380px; display: flex; }
.search-form input {
  flex: 1;
  border: 2px solid var(--ink);
  border-right: none;
  border-radius: 999px 0 0 999px;
  padding: 10px 16px;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  outline: none;
}
.search-form button {
  border: 2px solid var(--ink);
  background: var(--yellow);
  border-radius: 0 999px 999px 0;
  padding: 0 18px;
  cursor: pointer;
  font-size: 16px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  color: #fff;
  padding: 64px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-copy { flex: 1; min-width: 280px; }
.hero-copy h1 { font-size: 46px; color: #fff; text-shadow: 3px 3px 0 rgba(58,27,71,.55); }
.hero-copy p { font-size: 18px; max-width: 480px; opacity: .95; margin-bottom: 26px; }
.hero-art { flex: 1; min-width: 260px; text-align: center; }
.hero-art img { max-width: 340px; margin: 0 auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -2px;
}

/* ---------- Category pills ---------- */
.cat-strip { padding: 40px 0 10px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}
.cat-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 5px 0 rgba(58,27,71,.9);
  transition: transform .15s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card .cat-icon { font-size: 34px; margin-bottom: 8px; }
.cat-card .cat-name { font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 15px; }
.cat-card.c-pink { background: #FFE3F1; }
.cat-card.c-yellow { background: #FFF3D0; }
.cat-card.c-teal { background: #DDFBF8; }
.cat-card.c-purple { background: #EBE1FF; }

/* ---------- Section heading ---------- */
.section { padding: 50px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 30px; }
.section-head .see-all { font-family: 'Baloo 2', cursive; font-weight: 600; color: var(--purple); }
.eyebrow {
  display: inline-block;
  font-family: 'Baloo 2', cursive;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---------- Product grid & card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(58,27,71,.9);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-5px); }
.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gem-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--pink);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px 6px 14px;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
  z-index: 2;
}
.gem-badge.sale { background: var(--teal); color: var(--ink); }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 12px; color: var(--purple); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.product-name { font-family: 'Baloo 2', cursive; font-size: 17px; font-weight: 600; }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; font-family: 'Baloo 2', cursive; }
.price-now { font-size: 20px; color: var(--pink-dark); font-weight: 700; }
.price-old { font-size: 14px; color: #a89aad; text-decoration: line-through; }
.product-card .btn { margin: 0 16px 16px; }
.stock-tag { font-size: 12px; font-weight: 700; color: #c0392b; }

/* ---------- Gem-shaped price/discount ribbon (signature) ---------- */
.gem {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
}

/* ---------- Wavy hive divider between sections ---------- */
.honeycomb-strip {
  background: var(--cream-2);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; padding: 16px 0; color: var(--purple); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Shop layout: filters + grid ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.filter-box {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 5px 0 rgba(58,27,71,.9);
}
.filter-box h4 { font-size: 16px; margin-bottom: 12px; }
.filter-box label { display: block; font-size: 14px; margin: 8px 0; cursor: pointer; }
.filter-box input[type=number] { width: 100%; padding: 8px; border-radius: 8px; border: 2px solid var(--ink); margin-bottom: 8px; }
.sort-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.sort-bar select { border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-family: 'Quicksand'; font-weight: 600; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 50%;
  font-weight: 700; font-family: 'Baloo 2', cursive;
}
.pagination a.active, .pagination .current { background: var(--pink); color: #fff; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.pd-gallery img { border: 3px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 0 8px 0 rgba(58,27,71,.9); }
.pd-info h1 { font-size: 32px; }
.pd-price { font-size: 30px; font-family: 'Baloo 2', cursive; color: var(--pink-dark); margin: 12px 0; }
.pd-qty { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.qty-box { display: flex; align-items: center; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty-box button { background: var(--yellow); border: none; width: 38px; height: 40px; font-size: 18px; cursor: pointer; }
.qty-box input { width: 50px; border: none; text-align: center; font-family: 'Baloo 2', cursive; font-size: 16px; }
.pd-desc { margin-top: 26px; line-height: 1.8; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: 'Baloo 2', cursive; padding: 10px 8px; border-bottom: 3px solid var(--ink); }
.cart-table td { padding: 14px 8px; border-bottom: 2px dashed #e5d7ea; vertical-align: middle; }
.cart-item-name { display: flex; gap: 12px; align-items: center; }
.cart-item-name img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.remove-link { color: var(--pink-dark); font-size: 13px; font-weight: 700; }
.cart-summary { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-md); padding: 22px; box-shadow: 0 6px 0 rgba(58,27,71,.9); }
.cart-summary .row-line { display: flex; justify-content: space-between; margin: 10px 0; font-weight: 600; }
.cart-summary .total-line { font-family: 'Baloo 2', cursive; font-size: 20px; border-top: 3px dashed var(--ink); padding-top: 14px; margin-top: 14px; }
.coupon-box { display: flex; gap: 8px; margin: 16px 0; }
.coupon-box input { flex: 1; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 16px; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 8px 0 rgba(58,27,71,.9);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  outline: none;
  background: var(--cream);
}
.form-control:focus { border-color: var(--pink); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 2px solid var(--ink); font-weight: 600; margin-bottom: 18px; }
.alert-success { background: #DDFBF8; }
.alert-error { background: #FFE0E0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 50px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--yellow); font-size: 17px; }
.site-footer a { opacity: .85; display: block; margin: 6px 0; font-size: 14px; }
.site-footer a:hover { opacity: 1; color: var(--teal); }
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; opacity: .7; }
.social-row { display: flex; gap: 10px; margin-top: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--cream); display: flex; align-items: center; justify-content: center; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state img { max-width: 180px; margin: 0 auto 20px; }

/* ---------- Badges / misc ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 2px solid var(--ink); }
.badge-placed { background: #FFF3D0; }
.badge-processing { background: #DDEBFF; }
.badge-shipped { background: #E1D6FF; }
.badge-delivered { background: #D8FBE0; }
.badge-cancelled { background: #FFD9D9; }

table.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
table.admin-table th, table.admin-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
table.admin-table th { background: var(--cream-2); font-family: 'Baloo 2', cursive; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .search-form { display: none; }
  .hero-copy h1 { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
