/* ---- Base ---- */
:root{
  --bg:#fafafa;
  --card:#fff;
  --accent:#ff69b4;
  --accent-dark:#b62a70;
  --pink-soft:#fff0f5;
  --title-pink:#ff4da6;
  --muted:#666;
  --text:#333;
  --shadow: 0 6px 20px rgba(0,0,0,0.06);
  --radius-md: 10px;
}

*{box-sizing:border-box}
html,body{height:100%}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* ---- Header ---- */
header {
  text-align: center;
  background: #f8e1eb;
  padding: 22px 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.logo-container{ margin-top:10px; }
.logo-container img{ width:160px; height:auto; border-radius:8px; display:inline-block; }

.shop-title{
  display:inline-block;
  margin:12px 0;
  padding:14px 36px;
  background:var(--pink-soft);
  color:var(--title-pink);
  font-family: "Pacifico", cursive;
  font-size:36px;
  border-radius:40px;
  box-shadow: 0 6px 15px rgba(255,105,180,0.25);
  text-shadow: 1px 1px 4px rgba(255,105,180,0.35);
}

/* tagline */
.shop-tagline{
  display:inline-block;
  margin-top:8px;
  padding:6px 14px;
  background:var(--pink-soft);
  color:var(--title-pink);
  border-radius:24px;
  font-size:15px;
  box-shadow:0 4px 10px rgba(255,182,193,0.18);
}

/* ---- Page containers ---- */
.container { max-width:1200px; margin:22px auto; padding:0 18px; }

/* ---- Product grid ---- */
.product-section { padding:30px 0; text-align:center; }
.product-section h2 { margin:0 0 18px; color:var(--text); font-size:22px; }

.product-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
  align-items:start;
  margin:0 auto;
}

/* ---- Product card ---- */
.product-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition: transform .18s ease, box-shadow .18s ease;
  text-align:center;
}

.product-card:hover{
  transform:translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.product-card a { color:inherit; text-decoration:none; display:block; }
.product-card img{
  width:100%;
  max-width:220px;
  margin:0 auto;
  height:auto;
  object-fit:cover;
  border-radius:8px;
  display:block;
  background:linear-gradient(180deg, #fff, #fff0f5);
}

/* content */
.product-info { display:flex; flex-direction:column; gap:6px; align-items:center; }
.product-info strong { font-size:16px; color:var(--text); }
.product-info p { margin:0; color:var(--muted); font-size:14px; }

/* CTA area inside card (keeps buy button separate from link) */
.card-actions { width:100%; display:flex; gap:10px; flex-direction:column; }

/* ---- Buttons ---- */
button, .btn {
  background:var(--accent);
  color:#fff;
  border:0;
  padding:12px;
  border-radius:25px;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  transition: background .18s ease, transform .12s ease;
  width:100%;
  text-align:center;
  display:inline-block;
  text-decoration:none;
  box-sizing:border-box;
}

button:hover, .btn:hover { background:var(--accent-dark); transform: translateY(-2px); }
.btn-secondary { background:#5acc8d; }
.btn-secondary:hover { background:#3ea86b; }

/* ---- Cart & summary ---- */
.cart-section {
  background: var(--pink-soft);
  margin: 30px auto;
  padding:22px;
  border-radius:18px;
  box-shadow:var(--shadow);
  max-width:980px;
}

.cart-container {
  background:var(--card);
  padding:20px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

/* cart row */
.cart-item {
  display:flex;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(0,0,0,0.04);
}

.cart-item img { width:100px; height:100px; object-fit:cover; border-radius:8px; }
.cart-details { flex:1; display:flex; flex-direction:column; gap:8px; }
.cart-details h3 { margin:0; font-size:16px; color:var(--text); }
.cart-price { text-align:right; min-width:140px; font-weight:700; color:var(--title-pink); }

/* small helper text */
.stock-note { font-size:13px; color:#666; }

/* flash */
.flash {
  background: linear-gradient(90deg,#fffaf7,#fff0f5);
  color:var(--title-pink);
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:12px;
  box-shadow:0 2px 6px rgba(255,182,193,0.12);
}

/* empty state */
.empty-cart { text-align:center; color:#999; padding:28px 0; font-size:16px; }

/* order summary */
.order-summary {
  background:var(--pink-soft);
  padding:12px;
  border-radius:8px;
  font-family:monospace;
  white-space:pre-wrap;
  color:#222;
}

/* utility layout */
.row { display:flex; gap:12px; align-items:center; }
.col { flex:1; }

/* ---- Responsive tweaks ---- */
@media (max-width:900px) {
  .shop-title{ font-size:44px; padding:12px 28px; }
  .product-card img{ max-width:180px; }
}

@media (max-width:600px){
  .product-grid{ grid-template-columns: 1fr; gap:14px; padding:0 6px; }
  .product-card{ flex-direction:row; align-items:center; padding:12px; gap:12px; text-align:left; }
  .product-card img{ width:96px; height:96px; }
  .product-info{ align-items:flex-start; }
  .shop-title{ font-size:32px; padding:10px 18px; }
  .logo-container img{ width:140px; }
  .cart-item{ flex-direction:column; align-items:flex-start; }
  .cart-price{ text-align:left; width:100%; }
  button, .btn { width:100%; }
}

/* ---- Accessibility ---- */
a:focus, button:focus { outline:3px solid rgba(214,51,132,0.10); outline-offset:4px; border-radius:8px; }

/* ---- Performance hint ---- */
/* Add loading="lazy" to <img> tags in markup for better performance on mobile */


.description {
  display: block;
  margin: 14px auto 0;
  max-width: 900px;
  text-align: left;
  font-family: "Poppins", Arial, sans-serif; /* modern UI font */
  font-weight: 300;
  color: #333;
  background: linear-gradient(180deg, rgba(255,240,245,0.6), rgba(255,249,250,0.9));
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(255,182,193,0.08);
  line-height: 1.65;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255,200,220,0.45);
}

/* Optional: slightly different style for long product details (serif for reading comfort) */
.description.long {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: #2e2e2e;
}

/* Small screens */
@media (max-width:600px){
  .description { font-size: 15px; padding:12px; border-radius:10px; }
  .description.long { font-size: 15.5px; }
}

/* Make any inline links inside description look fitting */
.description a {
  color: #d63384;
  text-decoration: underline;
}

.description { transition: max-height 0.28s ease, opacity 0.22s ease; overflow: hidden; }
.description.hidden { max-height: 0; opacity: 0; padding-top:0; padding-bottom:0; }
.description.visible { max-height: 2000px; opacity: 1; }

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.submit-btn {
  background: #ff69b4;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: #ff85c1;
  transform: translateY(-1px);
}

.back-btn {
  display: inline-block;
  text-align: center;
  padding: 12px 18px;
  border: 2px solid #ff69b4;
  border-radius: 8px;
  color: #ff69b4;
  text-decoration: none;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #ffe4ef;
  transform: translateY(-1px);
}


