:root {
  --lavender: #F3DCEB;
  --aqua: #A8F1F2;
  --peach: #FF914D;
  --gold: #FFD45A;
  --brown: #7A3B12;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, serif;
}

body {
  background: var(--lavender);
  color: var(--brown);
}

header {
  background: var(--white);
  padding: 15px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--gold);
}

.logo {
  width: 120px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--brown);
  font-weight: bold;
}

nav a:hover {
  color: var(--peach);
}

.hero {
  min-height: 75vh;
  background: linear-gradient(135deg, var(--lavender), var(--aqua));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.hero h1 {
  font-size: 55px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 22px;
  margin-bottom: 25px;
}

.btn,
button {
  background: var(--peach);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.btn:hover,
button:hover {
  background: var(--gold);
  color: var(--brown);
}

.section {
  padding: 60px 8%;
  text-align: center;
}

.section h1,
.section h2 {
  font-size: 38px;
  margin-bottom: 30px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(122, 59, 18, 0.15);
}

.product-img {
  background: var(--aqua);
  height: 180px;
  border-radius: 20px;
  font-size: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.card p {
  margin-bottom: 15px;
}

.card h4 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--peach);
}

.why {
  background: var(--aqua);
  text-align: center;
  padding: 50px 8%;
}

.why h2 {
  margin-bottom: 15px;
}

.cart {
  background: white;
  padding: 40px 8%;
  text-align: center;
}

#cart-items {
  margin: 20px 0;
}

.cart-item {
  background: var(--lavender);
  padding: 12px;
  margin: 10px auto;
  max-width: 500px;
  border-radius: 15px;
}

.checkout {
  display: inline-block;
  margin-top: 20px;
}

.about,
.contact {
  max-width: 800px;
  margin: auto;
}

.about p {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 20px;
}

form {
  max-width: 500px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 15px;
  border: 2px solid var(--gold);
  border-radius: 15px;
  font-size: 16px;
}

textarea {
  height: 150px;
}

.contact-info {
  margin-top: 15px;
  font-weight: bold;
}

footer {
  background: var(--brown);
  color: white;
  text-align: center;
  padding: 20px;
}

/* Mobile */
@media (max-width: 700px) {
  header {
    flex-direction: column;
  }

  nav {
    margin-top: 15px;
  }

  nav a {
    margin: 8px;
    display: inline-block;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }
}
.clear-btn {
  margin-top: 15px;
  margin-right: 10px;
  background: var(--brown);
}

.cart-item {
  background: var(--lavender);
  padding: 18px;
  margin: 15px auto;
  max-width: 500px;
  border-radius: 18px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.cart-item button {
  margin: 5px;
  padding: 8px 14px;
  border-radius: 10px;
}
.hero h1 {
  animation: slideDown 3s ease forwards;
}

.hero p {
  animation: fadeIn 2s ease forwards;
}

.hero .btn {
  animation: fadeUp 2.2s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.logo {
    width: 180px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}
.shop-hero {
    background: linear-gradient(
        135deg,
        #f7cdda,
        #bff4f3
    );

    text-align: center;
    padding: 70px 20px;
    margin-bottom: 40px;
}

.shop-hero h1 {

    font-size: 60px;
    color: #e87da4;
    margin-bottom: 15px;

    animation: fadeDown 1s ease;
}

.shop-hero p {

    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: #555;
}

.products {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 25px;
}

.card {

    background: white;

    border-radius: 20px;

    padding: 20px;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(232,125,164,0.15);

    transition: all 0.3s ease;
}

.card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(232,125,164,0.25);
}

.product-img {

    width: 100%;

    height: 300px;

    overflow: hidden;

    border-radius: 15px;

    background: white;

    margin-bottom: 15px;
}

.product-img img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}

.card h3 {

    margin-bottom: 10px;

    color: #222;

    font-size: 20px;
}

.card p {

    margin-bottom: 15px;

    font-size: 18px;

    font-weight: bold;
}

.card button {

    background: #e87da4;

    color: white;

    border: none;

    padding: 12px 22px;

    border-radius: 10px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.card button:hover {

    background: #f2a9c1;
}

@keyframes fadeDown {

    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.top-banner {
  background: linear-gradient(90deg, #f7cdda, #bff4f3);
  color: #7A3B12;
  text-align: center;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.reviews {
  background: #fff9fc;
  padding: 60px 8%;
  text-align: center;
}

.reviews h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--brown);
}

.review-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.review-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(122, 59, 18, 0.12);
}

.stars {
  color: #F4C247;
  font-size: 22px;
  margin-bottom: 12px;
}

.review-card p {
  font-size: 17px;
  line-height: 1.5;
}

.review-card h4 {
  margin-top: 15px;
  color: #e87da4;
}
.instagram-section {
  background: linear-gradient(135deg, var(--lavender), var(--aqua));
  text-align: center;
  padding: 60px 8%;
}

.instagram-section h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--brown);
}

.instagram-section p {
  font-weight: bold;
  margin-bottom: 25px;
  color: #e87da4;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.insta-box {
  height: 180px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  box-shadow: 0 8px 20px rgba(122, 59, 18, 0.12);
}

.insta-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer {
  background: var(--brown);
  color: white;
  padding: 45px 8% 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 25px;
}

.footer h3,
.footer h4 {
  margin-bottom: 12px;
  color: var(--gold);
}

.footer p {
  line-height: 1.6;
}

.footer a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 15px;
  font-size: 14px;
}
.newsletter {
  background: #fff9fc;
  text-align: center;
  padding: 60px 8%;
}

.newsletter h2 {
  font-size: 36px;
  color: var(--brown);
  margin-bottom: 10px;
}

.newsletter p {
  margin-bottom: 25px;
  font-size: 17px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: auto;
}

.newsletter-form input {
  flex: 1;
  padding: 13px;
  border: 2px solid var(--gold);
  border-radius: 25px;
}

.newsletter-form button {
  border-radius: 25px;
}

@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column;
  }
}
.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--peach);
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 999;
}

.floating-cart:hover {
  background: var(--gold);
  transform: scale(1.08);
}

.cart-count {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--brown);
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  margin-left: 5px;
  font-weight: bold;
}

.floating-cart .cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  margin-left: 0;
  border: 2px solid white;
}

nav a .cart-count {
  vertical-align: middle;
}
.category-section {
  text-align: center;
  padding: 35px 8% 10px;
  background: white;
}

.category-section h2 {
  margin-bottom: 20px;
  color: var(--brown);
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.category-btn {
  text-decoration: none;
  background: #fff9fc;
  color: var(--brown);
  border: 2px solid #f7cdda;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: bold;
}

.category-btn:hover {
  background: #f7cdda;
}

.category-btn.active {
  background: #f7cdda;
}

#noProductsMessage {
  display: none;
  margin-top: 18px;
  font-weight: bold;
  color: var(--brown);
}
.owner-preview {

    background: white;

    text-align: center;

    padding: 70px 8%;
}

.owner-preview h2 {

    color: #e87da4;

    font-size: 42px;

    margin-bottom: 20px;
}

.owner-preview p {

    max-width: 700px;

    margin: auto;

    font-size: 18px;

    line-height: 1.8;

    color: #555;

    margin-bottom: 25px;
}
.about-hero {
    background: linear-gradient(135deg, #f7cdda, #bff4f3);
    text-align: center;
    padding: 80px 20px;
}

.about-hero h1 {
    font-size: 60px;
    color: #e87da4;
    margin-bottom: 10px;
}

.about-hero p {
    color: #555;
    font-size: 18px;
}

.about-owner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 80px 8%;
    background: white;
}

.owner-image img {
    width: 400px;
    max-width: 100%;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.owner-content {
    max-width: 600px;
}

.owner-content h2 {
    color: #e87da4;
    margin-bottom: 20px;
    font-size: 38px;
}

.owner-content p {
    line-height: 1.9;
    margin-bottom: 18px;
    color: #555;
}

.why-about {
    background: #fff9fc;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 25px;
    padding: 60px 8%;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.about-card h3 {
    margin-bottom: 15px;
    color: #e87da4;
}
.cart-page {
  padding: 70px 8%;
  text-align: center;
  background: #fff9fc;
  min-height: 70vh;
}

.cart-page h1 {
  font-size: 42px;
  margin-bottom: 25px;
  color: var(--brown);
}

.cart-item {
  background: white;
  max-width: 600px;
  margin: 18px auto;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cart-item button {
  margin: 5px;
  padding: 8px 14px;
  border-radius: 10px;
}
.cart-popup {
  position: fixed;
  top: 90px;
  right: 25px;
  background: #fff9fc;
  color: #7A3B12;
  border: 2px solid #f7cdda;
  padding: 14px 22px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  font-weight: bold;
  z-index: 9999;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.image-modal img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 20px;
  background: white;
  padding: 10px;
  cursor: zoom-in;
}

.close-modal {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 45px;
  cursor: pointer;
}

/* Nail cards keep the focus on the product image, name, price, and action. */
.card[data-category="nails"] {
  display: flex;
  flex-direction: column;
}

.card[data-category="nails"] > p {
  display: none;
}

.card[data-category="nails"] h3 {
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card[data-category="nails"] h4 {
  margin-top: auto;
}

@media (max-width: 700px) {
  header {
    padding: 12px 4%;
  }

  .logo {
    width: 145px;
  }

  nav {
    margin-top: 8px;
    text-align: center;
  }

  nav a {
    margin: 5px 6px;
    font-size: 14px;
  }

  .hero {
    min-height: 55vh;
    padding: 44px 20px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.15;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .shop-hero,
  .about-hero {
    padding: 42px 16px;
    margin-bottom: 20px;
  }

  .shop-hero h1,
  .about-hero h1 {
    font-size: 34px;
  }

  .section {
    padding: 38px 12px;
  }

  .section h1,
  .section h2,
  .reviews h2,
  .instagram-section h2,
  .newsletter h2,
  .owner-preview h2 {
    font-size: 27px;
    margin-bottom: 20px;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card {
    padding: 10px;
    border-radius: 16px;
    text-align: center;
  }

  .product-img {
    height: 165px;
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .card[data-category="nails"] .product-img {
    height: 190px;
  }

  .card h3 {
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .card p {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 9px;
  }

  .card h4 {
    font-size: 16px;
    margin-bottom: 9px;
  }

  .card .btn,
  .card button {
    width: auto;
    min-width: 0;
    padding: 7px 11px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 18px;
    display: inline-block;
    margin: 0 auto;
    white-space: nowrap;
  }

  .hero .btn,
  .owner-preview .btn,
  .instagram-section .btn {
    padding: 9px 17px;
    font-size: 14px;
  }

  .reviews,
  .instagram-section,
  .newsletter,
  .owner-preview {
    padding: 42px 16px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .insta-box {
    height: 170px;
  }

  .floating-cart {
    right: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .products {
    gap: 10px;
  }

  .product-img {
    height: 145px;
  }

  .card[data-category="nails"] .product-img {
    height: 165px;
  }

  .card {
    padding: 8px;
  }
}
