/* --- Base Reset & Variables --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Creating variables for colors */
:root {
  --pink: #ff69b4;
  --blue: #0076ce;
  --black: #1a1a1a;
  --white: #ffffff;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile-First Layout (Default stacked design) --- */
#header {
  background-color: var(--black);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

#header h1 {
  font-size: 1.4rem;
  color: var(--pink);
  margin-bottom: 15px;
}

/* Rounded Logo Styling */
.logo img {
  margin: 0 auto 15px auto;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--pink);
}

#navbar {
  list-style: none;
}

#navbar li {
  margin: 10px 0;
}

#navbar li img {
  margin: 0 auto 15px auto;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--pink);
}

#navbar a {
  color: var(--blue);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

#navbar a:hover {
  color: var(--pink);
}

/* --- Mobile Hero Section with Absolute Overlay --- */
#product-showcase {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-showcase img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#product-showcase h2,
#product-showcase p {
  position: absolute;
  z-index: 2;
  color: var(--white);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  padding: 0 20px;
}

#product-showcase h2 {
  top: 35%;
  font-size: 2.2rem;
  width: 100%;
  text-align: center;
  color: var(--pink);
}

#product-showcase p {
  top: 55%;
  font-size: 1.1rem;
  width: 100%;
  max-width: 500px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Other Sections Styles --- */
section {
  padding: 40px 20px;
  border-bottom: 1px solid #eee;
}

#features h2, #testimonials h2, #call-to-action h2 {
  color: var(--black);
  margin-bottom: 15px;
}

#features ul {
  list-style-position: inside;
  margin-top: 15px;
}

#features li {
  margin-bottom: 8px;
}

/* decoration */
#testimonials p {
  background-color: #f9f9f9;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid var(--pink);
  border-radius: 4px;
}

#testimonials span {
  display: block;
  font-style: italic;
  color: var(--blue);
  margin-top: 5px;
}

#call-to-action {
  background-color: #f4f9ff;
}

form {
  margin-top: 20px;
  max-width: 100%;
}

form p {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  font-size: 1rem;
}

input[type="button"] {
  width: 100%;
  background-color: var(--pink);
  color: var(--black);
  border: none;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s;
}

input[type="button"]:hover {
  opacity: 0.9;
}

#footer {
  background-color: var(--black);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
}

#footer p {
  margin-bottom: 15px;
}

#footer a {
  color: var(--pink);
  text-decoration: none;
}

#footer a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ----- carousel ----- */
.carousel-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Forces a perfect 1:1 square ratio */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.prev { left: 16px; }
.next { right: 16px; }

/* Navigation Dots */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: #000;
}

/* ---- shopping cart -------*/
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; background: #fff; border-bottom: 1px solid #eee; font-family: sans-serif; }
.logo { font-size: 22px; font-weight: bold; color: #2c3e50; }
.cart-icon-btn { background: none; border: none; font-size: 26px; cursor: pointer; position: relative; padding: 5px; }
.cart-bubble { position: absolute; top: -2px; right: -5px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: bold; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 2px; box-sizing: border-box; }
.cart-bubble.hidden { display: none; }

.store-layout-container { max-width: 600px; margin: 40px auto; padding: 0 20px; font-family: sans-serif; }
.product-details { width: 100%; }
.section-hint { color: #7f8c8d; font-size: 14px; margin-bottom: 15px; }
.gift-catalog-box { background: #fdfdfd; border: 1px solid #e2e8f0; padding: 15px; border-radius: 6px; margin-bottom: 20px; }
.item-checkbox-row { display: flex; align-items: center; padding: 12px 8px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background 0.15s ease; }
.item-checkbox-row:last-child { border-bottom: none; }
.item-checkbox-row:hover { background: #f8fafc; }
.item-checkbox-row input[type="checkbox"] { transform: scale(1.2); margin-right: 12px; cursor: pointer; }
.item-label { font-size: 15px; color: #334155; }

.wrapping-toggle-box { background: #fef3c7; padding: 12px 15px; border-radius: 6px; border: 1px dashed #d97706; margin-bottom: 20px; }
.checkbox-container { display: flex; align-items: center; cursor: pointer; font-size: 13.5px; color: #b45309; font-weight: bold; }
.checkbox-container input { margin-right: 10px; transform: scale(1.1); }

.card-message-box { display: flex; flex-direction: column; margin-bottom: 20px; }
.field-title { font-size: 14px; font-weight: bold; color: #475569; margin-bottom: 6px; }
.card-message-box textarea { width: 100%; height: 70px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px; box-sizing: border-box; resize: none; font-family: sans-serif; font-size: 13.5px; }
.card-message-box textarea:focus { outline: none; border-color: #64748b; }

.live-counter-bar { font-size: 16px; margin-bottom: 20px; color: #1e293b; background: #f1f5f9; padding: 12px; border-radius: 4px; }
#live-subtotal-display { color: #0f172a; font-size: 18px; }

.primary-btn { background: #000; color: #fff; border: none; padding: 15px 30px; font-size: 16px; font-weight: bold; cursor: pointer; width: 100%; max-width: 300px; transition: background 0.2s; border-radius: 4px; }
.primary-btn:hover { background: #333; }
.cart-drawer { position: fixed; top: 0; right: -400px; width: 350px; height: 100%; background: #fff; z-index: 100; box-shadow: -2px 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; transition: right 0.3s ease-in-out; }
.cart-drawer.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; padding: 20px; border-bottom: 1px solid #eee; align-items: center; }
.close-btn { background: none; border: none; font-size: 28px; cursor: pointer; }
.cart-items { flex: 1; padding: 20px; overflow-y: auto; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; }
.cart-total { font-size: 18px; font-weight: bold; margin-bottom: 15px; }
.checkout-btn { max-width: 100%; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: none; z-index: 90; }
.cart-overlay.open { display: block; }

.cart-item-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f9f9f9; font-family: sans-serif; }
.remove-item-btn { background: none; border: none; color: #888; cursor: pointer; text-decoration: underline; font-size: 11px; margin-top: 5px; padding: 0; }
.remove-item-btn:hover { color: #ff3b30; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { background: #f0f0f0; border: none; font-size: 14px; font-weight: bold; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 4px; }
.qty-btn:hover { background: #e0e0e0; }
.qty-value { font-size: 14px; font-weight: bold; min-width: 16px; text-align: center; }
.item-price-display { text-align: right; font-size: 14px; font-weight: bold; color: #333; }
.cart-msg-callout { background: #f1f5f9; padding: 6px 10px; font-size: 12px; font-style: italic; border-left: 3px solid #cbd5e1; margin-top: 6px; border-radius: 0 4px 4px 0; color: #475569; max-width: 180px; word-wrap: break-word; }

.checkout-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 200; display: none; align-items: center; justify-content: center; font-family: sans-serif; }
.checkout-modal.open { display: flex; }
.checkout-content { background: #fff; width: 100%; max-width: 500px; max-height: 90vh; border-radius: 8px; overflow-y: auto; padding: 30px; box-sizing: border-box; }
.checkout-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.checkout-summary-bar { background: #f9f9f9; padding: 15px; margin: 20px 0; border-radius: 4px; display: flex; justify-content: space-between; font-size: 16px; }
.total-highlight { color: #ff3b30; font-size: 18px; }
.form-section { margin-bottom: 25px; }
.form-section h3 { font-size: 16px; margin-bottom: 12px; color: #555; }
.form-section input { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 14px; }

/* Triple Row Layout Framework Grid Style values */
.form-row-triple { display: flex; gap: 10px; }
.form-row-triple input { flex: 1; width: 33.33%; }
.place-order-btn { max-width: 100%; margin-top: 10px; background: #059669; }
.place-order-btn:hover { background: #047857; }

/* NEW: Dynamic Option Module Row Style values */
.fulfillment-selection-box { background: #f8fafc; padding: 15px; border-radius: 6px; border: 1px solid #cbd5e1; }
.radio-group-row { display: flex; gap: 20px; margin-top: 5px; }
.radio-container { display: flex; align-items: center; cursor: pointer; font-size: 15px; font-weight: bold; color: #334155; }
.radio-container input { margin-right: 8px; transform: scale(1.2); cursor: pointer; }

/* Hidden state utility modifier */
.conditional-wrapper.hidden {
  display: none;
}

/* --- Desktop Responsive Design (768px and wider) --- */
@media (min-width: 768px) {
  #header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 20px 40px;
  }

  #header h1 {
    grid-column: 2;
    margin-bottom: 0;
    font-size: 1.8rem;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .logo img {
    margin: 0;
    width: 90px;
    height: 90px;
  }

  nav {
    grid-column: 3;
  }

  #navbar {
    display: flex;
    gap: 20px;
  }

  #navbar li {
    margin: 0;
  }

  section {
    padding: 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
  }

  #product-showcase {
    height: 75vh;
    min-height: 550px;
  }

  #product-showcase h2 {
    top: 38%;
    font-size: 4rem;
  }

  #product-showcase p {
    top: 58%;
    font-size: 1.4rem;
    max-width: 700px;
  }

  form {
    max-width: 500px;
  }

  input[type="button"] {
    width: auto;
    padding: 12px 30px;
  }
}
