/* ============ SHOP PAGE STYLES ============ */

:root {
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --cream: #FFFDF8;
  --teal: #2EC4B6;
  --lime: #D4F053;
  --pink: #FF69B4;
  --ink: #1a1a1a;
}

.shop-page {
  background: var(--cream);
}

/* ============ HERO ============ */
.shop-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 5% 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.shop-hero-content {
  flex: 1;
  max-width: 520px;
}

.shop-hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--teal);
  background: rgba(46, 196, 182, 0.1);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.shop-hero-title em {
  color: var(--teal);
  font-style: normal;
}

.shop-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #666;
  line-height: 1.6;
}

.shop-hero-visual {
  flex: 0 0 280px;
}

.shop-hero-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .shop-hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 5% 40px;
    gap: 24px;
  }
  .shop-hero-content { max-width: 100%; }
  .shop-hero-visual { flex: 0 0 200px; }
}

/* ============ CATEGORY TABS ============ */
.shop-categories {
  padding: 0 5% 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.category-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border: 2px solid #e0e0e0;
  border-radius: 100px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.category-tab:hover {
  border-color: var(--teal);
}

.category-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.coming-soon-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  background: var(--pink);
  color: white;
  border-radius: 100px;
  font-weight: 600;
}

/* ============ SECTIONS ============ */
.shop-section {
  padding: 20px 5% 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #666;
  margin-bottom: 0;
}

/* ============ FILTERS ============ */
.filters-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 100px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
}

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

/* ============ PRODUCTS GRID ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ============ PRODUCT CARD ============ */
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card.hidden {
  display: none;
}

.product-image-wrap {
  position: relative;
  background: #f8f8f8;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 100px;
  color: white;
}

.badge-teal { background: var(--teal); }
.badge-lime { background: #9ACD32; color: var(--ink); }
.badge-pink { background: var(--pink); }
.badge-orange { background: #FFB347; color: var(--ink); }
.badge-purple { background: #9B59B6; }

.product-lang-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  background: white;
  color: var(--ink);
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: 700;
  margin-top: auto;
}

/* ============ COMING SOON ============ */
.shop-section-coming-soon {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-content {
  text-align: center;
  max-width: 400px;
  padding: 50px 30px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.coming-soon-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.coming-soon-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.coming-soon-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

/* ============ CART SIDEBAR ============ */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: white;
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px;
  border-bottom: 1px solid #eee;
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0;
}

.cart-close {
  width: 40px;
  height: 40px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.cart-close:hover {
  background: #f5f5f5;
  color: var(--ink);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  text-align: center;
  padding: 50px 20px;
}

.cart-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.3;
}

.cart-empty p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 4px;
}

.cart-empty-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #bbb;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
}

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

.cart-item-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--teal);
  font-size: 0.95rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 2px solid #eee;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.cart-item-qty {
  font-family: var(--font-display);
  font-size: 0.9rem;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: auto;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #e74c3c;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.cart-shipping-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-checkout:hover:not(:disabled) {
  background: #25a99d;
}

.btn-checkout:disabled {
  background: #ddd;
  cursor: not-allowed;
}

/* ============ CART NAV BUTTON ============ */
#cartToggle {
  position: relative;
  display: flex;
  align-items: center;
}

#cartToggle svg {
  width: 22px;
  height: 22px;
}

#cartCount {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--pink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cartCount:empty,
#cartCount[data-count="0"] {
  display: none;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: white;
  padding: 50px 5% 30px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  /* Mobile filters - horizontal scroll */
  .filters-row {
    flex-direction: column;
    gap: 12px;
    padding: 0 10px;
  }
  
  .filter-group {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
  }
  
  .filter-group::-webkit-scrollbar {
    display: none;
  }
  
  .filter-buttons {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  
  .filter-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  /* Mobile section centering */
  .shop-section {
    padding: 15px 10px 40px;
  }
  
  .section-header {
    text-align: center;
    padding: 0 10px;
  }
  
  /* Mobile products grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 5px;
  }
  
  .product-card {
    padding: 10px;
  }
  
  .product-title {
    font-size: 0.85rem;
  }
  
  .product-price {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .shop-hero {
    padding: 20px 15px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
}
