/**
 * Shop page styles - standalone CSS for reliable specificity
 * These styles don't use @layer to avoid Tailwind v4 cascade issues
 */

/* ═══════════════════════════════════════════════════════════════════
   SHOP CARDS
   ═══════════════════════════════════════════════════════════════════ */

.shop-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(92, 61, 30, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

.shop-card-wrap {
  /* Wrapper for filtering - no extra styles needed */
}

.shop-related-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(92, 61, 30, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* ═══════════════════════════════════════════════════════════════════
   CATEGORY FILTER BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.category-filter {
  background: #f0e6c8;
  color: #5c3d1e;
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(92, 61, 30, 0.2);
  cursor: pointer;
  transition: all 0.15s;
}

.category-filter:hover:not(.active) {
  background: #a85e15;
  color: #fff;
}

.category-filter.active {
  background: #c4701e;
  color: #fff;
  border-color: #c4701e;
}

.subcategory-filter {
  background: #fff;
  color: #5c3d1e;
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(92, 61, 30, 0.3);
  cursor: pointer;
  transition: all 0.15s;
}

.subcategory-filter:hover:not(.active) {
  background: #c4701e;
  color: #fff;
}

.subcategory-filter.active {
  background: #c4701e;
  color: #fff;
  border-color: #c4701e;
}

/* ═══════════════════════════════════════════════════════════════════
   SEARCH INPUT
   ═══════════════════════════════════════════════════════════════════ */

.shop-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 1rem 0.72rem 2.6rem;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: #3d1c0e;
  background: #fff;
  border: 1.5px solid rgba(92, 61, 30, 0.2);
  border-radius: 9999px;
  outline: none;
  transition: border-color 0.2s;
}

.shop-search-input:focus {
  border-color: #c4701e;
}

.shop-search-input::placeholder {
  color: #8c7a65;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.shop-btn-add {
  background: #c4701e;
  color: #fff;
  font-family: 'Lora', serif;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.shop-btn-add:hover:not([data-added="true"]) {
  background: #a85e15;
}

.shop-btn-add[data-added="true"] {
  background: #2e7d32;
}

.shop-btn-add-lg {
  width: 100%;
  background: #c4701e;
  color: #f0e6c8;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s;
}

.shop-btn-add-lg:hover {
  background: #d4a830;
}

.shop-btn-outline {
  display: flex;
  align-items: center;
  color: #c4701e;
  font-family: 'Lora', serif;
  border-radius: 9999px;
  border: 1.5px solid #c4701e;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}

.shop-btn-outline:hover {
  background: #c4701e;
  color: #fff;
}

.shop-btn-neutral {
  background: none;
  border: 1px solid rgba(92, 61, 30, 0.2);
  border-radius: 4px;
  font-family: 'Lora', serif;
  color: #5c3d1e;
  cursor: pointer;
  transition: background 0.2s;
}

.shop-btn-neutral:hover {
  background: #f0e6c8;
}

.shop-qty-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #5c3d1e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.shop-qty-btn:hover {
  background: #f0e6c8;
}

/* ═══════════════════════════════════════════════════════════════════
   QUANTITY INPUT
   ═══════════════════════════════════════════════════════════════════ */

.shop-qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid rgba(92, 61, 30, 0.2);
  border-radius: 4px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  padding: 0.25rem;
  -moz-appearance: textfield;
}

.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════════════════════════ */

.shop-link {
  font-family: 'Lora', serif;
  color: #c4701e;
  text-decoration: none;
  transition: color 0.2s;
}

.shop-link:hover {
  color: #a85e15;
}

.cta-link-warm {
  color: #d4a830;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cta-link-warm:hover {
  color: #f0c040;
}

.cta-btn-warm {
  display: inline-block;
  background: #c4701e;
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-btn-warm:hover {
  background: #a85e15;
}

.text-link-action {
  background: none;
  border: none;
  color: #c4701e;
  text-decoration: underline;
  cursor: pointer;
  font-family: 'Lora', serif;
  padding: 0;
}

.text-link-action:hover {
  color: #a85e15;
}

/* ═══════════════════════════════════════════════════════════════════
   DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════ */

.shop-detail-hero {
  background: linear-gradient(135deg, #3d1c0e 0%, #6b3a1f 50%, #c4701e 100%);
  padding: 3rem 1.5rem;
  text-align: center;
}

.shop-detail-category-badge {
  display: inline-block;
  background: rgba(240, 208, 168, 0.18);
  border: 1px solid rgba(240, 208, 168, 0.35);
  border-radius: 9999px;
  padding: 0.25rem 0.9rem;
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0d0a8;
  margin-bottom: 1rem;
}

.shop-detail-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .shop-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.shop-detail-image {
  width: 100%;
  max-height: 450px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.shop-detail-placeholder {
  width: 100%;
  aspect-ratio: 1;
  max-height: 400px;
  background: linear-gradient(135deg, #f0e6c8, #e8d4a8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.7;
}

.shop-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shop-detail-price-block {
  margin-bottom: 1rem;
}

.shop-detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #c4701e;
  margin-bottom: 0.5rem;
}

.shop-detail-category {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: #8c7a65;
}

.shop-detail-category strong {
  color: #5c3d1e;
}

.shop-detail-desc {
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #5c3d1e;
  max-width: 100%;
}

.shop-detail-desc p {
  margin-bottom: 1rem;
}

.shop-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #3d1c0e;
  margin-bottom: 0.5rem;
}

.shop-detail-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3d1c0e;
  margin-bottom: 0.5rem;
}

.shop-detail-section-subtitle {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: #8c7a65;
  margin-bottom: 1.5rem;
}

.shop-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(92, 61, 30, 0.12);
}

.shop-detail-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
}

/* Related items */
.shop-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.shop-related-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f0e6c8, #e8d4a8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════════════ */

.shop-btn-pay {
  display: block;
  width: 100%;
  background: #3d8f3d;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.shop-btn-pay:hover:not(:disabled) {
  background: #2e6e2e;
}

.shop-btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-btn {
  display: block;
  width: 100%;
  background: #d4a830;
  color: #3d1c0e;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

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

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.shop-thankyou-card {
  transition: background 0.2s;
}

.shop-thankyou-card:hover {
  background: #fff8ee;
}

/* ═══════════════════════════════════════════════════════════════════
   CART QUANTITY BUTTONS (+/- in cart items)
   ═══════════════════════════════════════════════════════════════════ */

.cart-qty-btn {
  width: 32px;
  height: 32px;
  background: #f0e6c8;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #5c3d1e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.cart-qty-btn:hover {
  background: #c4701e;
  color: #fff;
}

.cart-qty-btn:active {
  background: #a85e15;
}

/* ═══════════════════════════════════════════════════════════════════
   CART REMOVE & CLEAR BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.cart-remove-btn {
  background: none;
  border: none;
  color: #8c7a65;
  font-family: 'Lora', serif;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cart-remove-btn:hover {
  color: #a0291e;
}

.clear-cart-link {
  background: none;
  border: none;
  color: #8c7a65;
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.clear-cart-link:hover {
  color: #a0291e;
}

/* ═══════════════════════════════════════════════════════════════════
   CART ITEM LINKS
   ═══════════════════════════════════════════════════════════════════ */

.cart-item-link {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d1c0e;
  text-decoration: none;
  margin-bottom: 0.2rem;
  transition: color 0.2s;
}

.cart-item-link:hover {
  color: #c4701e;
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMB LINKS
   ═══════════════════════════════════════════════════════════════════ */

.breadcrumb-link {
  color: rgba(240, 208, 168, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #f0e6c8;
}

.breadcrumb-link:visited {
  color: rgba(240, 208, 168, 0.8);
}

.breadcrumb-link-purple {
  color: rgba(220, 200, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link-purple:hover {
  color: #e0d0ff;
}

.breadcrumb-link-purple:visited {
  color: rgba(220, 200, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════
   DETAIL PAGE - QUANTITY WRAPPER
   ═══════════════════════════════════════════════════════════════════ */

.shop-qty-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(92, 61, 30, 0.25);
  border-radius: 9999px;
  overflow: hidden;
  background: #fff;
}

.shop-qty-wrapper .shop-qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
}

.shop-qty-wrapper .shop-qty-input {
  width: 60px;
  border: none;
  border-left: 1px solid rgba(92, 61, 30, 0.15);
  border-right: 1px solid rgba(92, 61, 30, 0.15);
  border-radius: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   FORM INPUTS (Cart checkout)
   ═══════════════════════════════════════════════════════════════════ */

.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.85rem;
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  color: #3d1c0e;
  background: #fff;
  border: 1px solid rgba(92, 61, 30, 0.2);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: #c4701e;
  box-shadow: 0 0 0 3px rgba(196, 112, 30, 0.1);
}

.form-input::placeholder {
  color: #a09080;
}
