/* =============================================
   AORI K-BEAUTY — SHOP PAGE STYLES
   Matches aori-shop.html mockup 100%
   ============================================= */

/* ===== SHOP HERO ===== */
.shop-hero {
  background: var(--gradient-main);
  padding: 48px 40px;
  text-align: center;
  color: white;
}

.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 8px;
}

.shop-hero p {
  font-size: 15px;
  opacity: 0.9;
}

/* ===== CATEGORY/BRAND TABS ===== */
.category-tabs {
  padding: 16px 40px;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow-x: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #eee;
  background: white;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.cat-tab:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.cat-tab.active {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

/* ===== CONCERN CHIPS ===== */
.concern-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px 16px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.concern-chips::-webkit-scrollbar {
  display: none;
}

.concern-chips-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light, #888);
  white-space: nowrap;
  flex-shrink: 0;
}

.concern-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1.5px solid #e8e0e0;
  border-radius: 24px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal, #2D2D2D);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
  flex-shrink: 0;
}

.concern-chip:hover {
  border-color: var(--pink, #FE76A8);
  color: var(--pink, #FE76A8);
  background: #FFF5F8;
}

.concern-chip.active {
  background: var(--pink, #FE76A8);
  color: #fff;
  border-color: var(--pink, #FE76A8);
}

.concern-chip-icon {
  font-size: 14px;
  line-height: 1;
}

/* ===== QUIZ CTA BANNER ===== */
.shop-quiz-cta {
  padding: 0 40px 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.shop-quiz-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #FFF5F8 0%, #F5EDFF 100%);
  border: 1.5px solid #f0ddf5;
  border-radius: 16px;
  padding: 16px 24px;
}
.shop-quiz-cta-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dark);
  flex-wrap: wrap;
}
.shop-quiz-cta-icon {
  font-size: 20px;
}
.shop-quiz-cta-text strong {
  font-weight: 700;
}
.shop-quiz-cta-text span:last-child {
  color: #888;
}
.quiz-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.quiz-trigger-btn:hover {
  background: #d1177d;
  transform: translateY(-1px);
}

/* ===== SHOP LAYOUT ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 80vh;
}

/* ===== SIDEBAR ===== */
.shop-sidebar {
  padding: 28px 24px;
  border-right: 1px solid rgba(0,0,0,0.06);
  background: var(--light-bg);
  position: sticky;
  top: 72px;
  height: fit-content;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.shop-sidebar::-webkit-scrollbar {
  width: 4px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
  background: rgba(254,118,168,0.3);
  border-radius: 4px;
}

.sidebar-section {
  margin-bottom: 28px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink);
}

.sidebar-search {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
  margin-bottom: 4px;
  background: white;
}

.sidebar-search:focus {
  border-color: var(--pink);
}

/* Brand List */
.brand-list {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand-list::-webkit-scrollbar {
  width: 4px;
}

.brand-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 13px;
}

.brand-item:hover {
  color: var(--pink);
}

.brand-item input[type="checkbox"] {
  accent-color: var(--pink);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-item .brand-name {
  flex: 1;
  min-width: 0;
}

.brand-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-light);
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Price Range */
.price-range {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.price-input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  font-family: var(--font-body);
  outline: none;
  background: white;
}

.price-input:focus {
  border-color: var(--pink);
}

.price-sep {
  color: var(--text-light);
  font-size: 12px;
}

/* Filter Buttons */
.filter-btn {
  width: 100%;
  padding: 12px;
  background: var(--gradient-main);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
  margin-top: 12px;
  font-family: var(--font-body);
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(254,118,168,0.3);
}

.clear-btn {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  color: var(--text-light);
  transition: all 0.3s;
  font-family: var(--font-body);
}

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

/* Sidebar Sort */
.sidebar-sort {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  background: white;
  color: var(--text-dark);
}

.sidebar-sort:focus {
  border-color: var(--pink);
}

/* Sidebar Close (mobile) */
.sidebar-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
  z-index: 5;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.sidebar-close:hover {
  background: rgba(0,0,0,0.05);
}

/* ===== PRODUCTS AREA ===== */
.products-area {
  padding: 24px 28px;
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  color: var(--text-light);
}

.results-count strong {
  color: var(--text-dark);
}

.toolbar-sort {
  padding: 8px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  background: white;
  color: var(--text-dark);
}

.toolbar-sort:focus {
  border-color: var(--pink);
}

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

/* Product Card */
.shop-product-card {
  text-align: center;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
  display: block;
}

.shop-product-card:hover {
  box-shadow: 0 8px 30px rgba(254,118,168,0.12);
  transform: translateY(-3px);
}

.shop-product-card .product-img-wrap {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}

.shop-product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.shop-product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.shop-product-card .product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  transition: transform 0.5s;
}

.shop-product-card:hover .product-img-placeholder {
  transform: scale(1.05);
}

.shop-product-card .product-add-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--white);
  color: var(--pink);
  border: 2px solid var(--pink);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
}

.shop-product-card:hover .product-add-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shop-product-card .product-add-btn:hover {
  background: var(--pink);
  color: white;
}

.shop-product-card .product-info {
  padding: 14px 16px 18px;
  text-align: left;
}

.shop-product-card .product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.shop-product-card .product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-product-card .product-size {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.shop-product-card .product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
}

.shop-product-card .product-price del {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 400;
  margin-right: 6px;
}

.shop-product-card .product-price ins {
  text-decoration: none;
}

/* ===== PAGINATION ===== */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  padding-bottom: 20px;
}

.shop-pagination .page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.shop-pagination .page-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.shop-pagination .page-btn.active {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

.shop-pagination .page-btn.nav-btn {
  width: auto;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 1px;
}

.shop-pagination .page-dots {
  color: #ccc;
  font-size: 14px;
  padding: 0 4px;
}

/* ===== LOADING STATE ===== */
.shop-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.shop-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(254,118,168,0.2);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-results h3 {
  font-family: var(--font-display);
  color: var(--pink);
  font-size: 24px;
  margin-bottom: 8px;
}

/* ===== MOBILE FILTER BUTTON ===== */
.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 36px;
  background: var(--gradient-main);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(254,118,168,0.4);
  font-family: var(--font-body);
  gap: 8px;
  align-items: center;
}

.mobile-filter-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}

.sidebar-overlay.active {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .shop-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

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

@media (max-width: 768px) {
  .shop-hero {
    padding: 32px 20px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    max-height: 100vh;
    border-right: none;
    padding: 60px 24px 24px;
    overflow-y: auto;
  }

  .shop-sidebar.open {
    display: block;
  }

  .sidebar-close {
    display: flex;
  }

  .mobile-filter-btn {
    display: flex;
  }

  .products-area {
    padding: 16px;
  }

  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-tabs {
    padding: 12px 16px;
  }

  .concern-chips {
    padding: 0 16px 12px;
    gap: 6px;
  }

  .concern-chips-label {
    display: none;
  }

  .concern-chip {
    padding: 5px 12px;
    font-size: 11px;
  }

  .shop-quiz-cta {
    padding: 0 16px 12px;
  }
  .shop-quiz-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
    gap: 12px;
  }
  .shop-quiz-cta-text {
    justify-content: center;
    font-size: 13px;
  }
  .quiz-trigger-btn {
    width: 100%;
    justify-content: center;
  }

  .shop-product-card .product-add-btn {
    font-size: 10px;
    padding: 8px 16px;
  }

  .shop-product-card .product-info {
    padding: 10px 12px 14px;
  }

  .shop-product-card .product-name {
    font-size: 12px;
  }

  .shop-product-card .product-price {
    font-size: 14px;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .shop-products-grid {
    gap: 8px;
  }

  .shop-product-card .product-info {
    padding: 8px 10px 12px;
  }

  .shop-product-card .product-brand {
    font-size: 10px;
  }

  .shop-product-card .product-name {
    font-size: 11px;
  }

  .shop-product-card .product-price {
    font-size: 13px;
  }

  .cat-tab {
    padding: 6px 14px;
    font-size: 12px;
  }
}
