:root {
  --primary: #3D1766;
  --secondary: #33054a;
  --accent-magenta: #A239EA;
  --accent-cream: #e996d0;
  --accent-plum: #5F1854;
  --neutral: #085954;
  --radius: 2.2em;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* General background and text */
body {
  background: var(--accent-cream);
  color: var(--neutral);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

.logo img {
            border-radius: 50%; /* Makes the logo circular */
            display: inline-block;
            margin: 15px 0;
            height: 60px;
            width: auto;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 2em;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--accent-magenta);
}

/* Hero Section */


.hero h1 {
  font-size: 2.8em;
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}
.hero p {
  font-size: 1.3em;
  margin-bottom: 1.5em;
}

/* Sleek CTA Button */
.cta {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-weight: bold;
  padding: 0.85em 2.2em;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(255,215,0,0.10);
  font-size: 1.1em;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  margin-top: 0.5em;
}
.cta:hover, .cta:focus {
  background: var(--accent-magenta);
  color: var(--accent-cream);
  box-shadow: 0 4px 24px rgba(162,57,234,0.18);
  transform: translateY(-2px) scale(1.04);
}
.cta.secondary {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Product Cards */
.product-card {
  background: var(--accent-cream);
  border-radius: 1.2em;
  box-shadow: 0 2px 12px rgba(61,23,102,0.07);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  text-align: center;
  margin: 1em 0;
}
.product-card:hover, .product-card:focus-within {
  box-shadow: 0 6px 32px rgba(162,57,234,0.13);
  transform: translateY(-4px) scale(1.03);
}
.product-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 0.5em auto;
  display: block;
}

.product-card h3 {
  color: var(--primary);
  margin: 0.7em 0 0.3em 0;
}
.product-card .price {
  color: var(--accent-plum);
  font-weight: bold;
  font-size: 1.1em;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  text-indent: -9999px; /* Hide link text but keep it accessible */
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
}

/* Footer */

footer nav a {
  color: var(--secondary);
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent-magenta);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: var(--secondary);
  color: var(--primary);
  padding: 1em;
  text-decoration: underline;
  border-radius: 0 0 1em 0;
}

/* Responsive Design */
@media (max-width: 900px) {
  .product-grid {
    flex-direction: column;
    gap: 2em;
  }
  nav ul {
    flex-direction: column;
    gap: 1em;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 2em 1em;
  }
  .hero h1 {
    font-size: 2em;
  }
  .product-card {
    margin: 1em 0.2em;
  }
}

/* ===== GLOBAL RESET & BOX SIZING ===== */
* { box-sizing: border-box; }

/* ===== BODY & MAIN CONTAINER ===== */
body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
  min-height: 100vh;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* ===== HEADER & LOGO ===== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  text-align: center;
}
.header-inner {
  display: grid;
  place-items: center;
  width: 100%;
}
.logo {
  display: inline-block;
  text-align: center;
}
.logo img {
  display: block;
  margin: 0 auto;
  max-width: 10%;
  height: auto;
}

/* ===== MAIN CONTENT ===== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  gap: 30px;
  justify-items: center;
  align-items: start;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}
.product-detail img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  height: auto;
}

/* ===== HEADINGS & TEXT ===== */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
  margin: 20px auto;
}
p {
  text-align: center;
  max-width: 600px;
  margin: 15px auto;
}
.price {
  display: block;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  margin: 15px auto;
}

/* ===== FORM CENTERING ===== */
#add-to-cart {
  text-align: center;
  max-width: 300px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#add-to-cart label {
  display: block;
  text-align: center;
  margin-bottom: 10px;
}
#quantity {
  display: block;
  margin: 10px auto;
  text-align: center;
}
.cta {
  display: block;
  margin: 15px auto;
  text-align: center;
}

/* ===== PRODUCT INFO SECTION ===== */
.product-info {
  text-align: center;
  max-width: 700px;
  margin: 20px auto;
}
.product-info h2 {
  text-align: center;
}
.product-info ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}
.product-info li {
  text-align: left;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  margin-top: 40px;
}
footer nav {
  text-align: center;
}
footer nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
footer nav li {
  margin: 0 15px;
}
footer nav a {
  text-decoration: none;
  padding: 10px;
}
footer p {
  text-align: center;
  margin: 10px auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  body { padding: 0 10px; }
  .product-detail, .product-info, main { max-width: 100%; }
  footer nav ul {
    flex-direction: column;
    align-items: center;
  }
  footer nav li { margin: 5px 0; }
}
