:root {
  --pink: #f6a8c8;
  --pink-dark: #d6579b;
  --pink-light: #fdeaf2;
  --blue: #a9ddf3;
  --blue-dark: #4fa8d1;
  --blue-light: #eaf7fd;
  --white: #ffffff;
  --text: #5b4a52;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Quicksand", sans-serif;
  color: var(--text);
  background: var(--pink-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top navigation */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: linear-gradient(120deg, var(--pink-light), var(--blue-light));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--pink-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--blue-dark);
}

@media (min-width: 521px) {
  nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--pink-dark);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

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

nav a.active {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.search-form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  border: 2px solid var(--white);
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
  height: 42px;
  width: 240px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}
.search-form input {
  border: none;
  outline: none;
  padding: 8px 40px 8px 14px;
  font-family: inherit;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.search-form input::-webkit-search-cancel-button {
  display: none;
}

.search-form button {
  position: absolute;
  right: 0;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 30px;
  height: 42px;
  padding: 0 16px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  transition: all 0.2s ease;
}

.cart-btn:hover {
  border-color: var(--pink-dark);
}

.stock-text {
  font-size: 0.85rem;
  color: var(--pink-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.add-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px 10px;
  background: linear-gradient(180deg, var(--pink-dark), var(--pink-light));
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--white);
}

.hero p {
  max-width: 520px;
  margin: 0 auto 25px;
  font-weight: 700;
  color: var(--white);
}

.hero-btn {
  display: inline-block;
  margin-bottom: 35px;
  padding: 12px 32px;
  background: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-btn:hover {
  color: var(--blue-dark);
  background: var(--pink-light);
  transform: translateY(-2px);
}

.logo-cluster {
  position: relative;
  width: 640px;
  height: 640px;
  margin: 0 auto;
}

.logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
  z-index: 2;
  overflow: hidden;
  padding: 0;
}

.logo-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crochet-crop {
  position: absolute;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.crochet-crop img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.crochet-1 {
  top: 12%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.crochet-2 {
  top: 34%;
  left: 85%;
  transform: translate(-50%, -50%);
}
.crochet-3 {
  top: 76%;
  left: 72%;
  transform: translate(-50%, -50%);
}
.crochet-4 {
  top: 76%;
  left: 28%;
  transform: translate(-50%, -50%);
}
.crochet-5 {
  top: 34%;
  left: 15%;
  transform: translate(-50%, -50%);
}

/* About section */
.about {
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 50px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.about h2 {
  color: var(--pink-dark);
  margin-bottom: 16px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
}

footer .footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 14px auto 0;
  font-weight: 600;
}

footer a {
  color: var(--pink-dark);
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

footer a:hover {
  color: var(--pink-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer p {
  color: var(--pink-dark);
  font-weight: 700;
}

@media (max-width: 520px) {
  .logo-cluster {
    width: 300px;
    height: 300px;
  }
  .logo-center {
    width: 160px;
    height: 160px;
  }
  .crochet-crop {
    width: 55px;
    height: 55px;
  }
  nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }
  .search-form {
    width: 100%;
  }
  footer .footer-links {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Shop header */
.shop-header {
  text-align: center;
  padding: 50px 20px 20px;
}

.shop-header h1 {
  font-size: 2rem;
  color: var(--pink-dark);
  margin-bottom: 10px;
}

.shop-header p {
  max-width: 500px;
  margin: 0 auto;
  color: var(--pink-dark);
  font-weight: 700;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px;
}

.filter-btn {
  border: 2px solid var(--pink);
  background: var(--white);
  color: var(--pink-dark);
  font-family: inherit;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.filter-btn:hover {
  background: var(--pink-light);
}

.filter-btn.active {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 30px 70px;
  flex: 1;
  align-items: start;
}

.product-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.product-photo {
  position: relative;
  padding: 12px;
  background: var(--pink-light);
}

.product-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px dashed var(--white);
  display: block;
}

.badge {
  position: absolute;
  top: 26px;
  left: 26px;
  background: var(--white);
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
  padding: 18px 20px 22px;
  border-top: 3px dotted var(--pink-light);
}

.product-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 14px;
}

.product-bottom {
  width: 100%;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.add-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.add-btn:hover {
  background: var(--pink-dark);
  transform: scale(1.08);
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  .product-photo {
    width: 140px;
    flex-shrink: 0;
    padding: 10px;
  }
  .product-photo img {
    height: 100%;
    min-height: 100px;
  }
  .badge {
    top: 14px;
    left: 14px;
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  .product-info {
    flex: 1;
    padding: 14px;
    border-top: none;
    border-left: 3px dotted var(--pink-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .product-info h3 {
    margin-bottom: 8px;
    font-size: 1rem;
  }
  .add-btn {
    width: 36px;
    height: 36px;
  }
}

.skeleton-card {
  box-shadow: none;
}

.skeleton-photo,
.skeleton-text,
.skeleton-price,
.skeleton-btn {
  background-color: #e0e0e0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.skeleton-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.skeleton-text {
  height: 24px;
  width: 80%;
}

.skeleton-price {
  width: 60px;
  height: 24px;
}

.skeleton-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-photo::after,
.skeleton-text::after,
.skeleton-price::after,
.skeleton-btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--pink-light);
}

.cart-header h2 {
  color: var(--pink-dark);
  font-size: 1.5rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--pink-light);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--pink-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-weight: 600;
}

.qty-btn {
  background: var(--pink-light);
  border: none;
  color: var(--pink-dark);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: var(--pink);
  color: var(--white);
}

.qty-btn:disabled {
  background: #e0e0e0;
  color: #a0a0a0;
  cursor: not-allowed;
  transform: none;
}

.qty-btn:disabled:hover {
  background: #e0e0e0;
  color: #a0a0a0;
}

.cart-footer {
  padding: 20px;
  border-top: 2px solid var(--pink-light);
  background: var(--white);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.checkout-btn:hover {
  background: var(--pink-dark);
}
