/* Sakura Elegance – Modern Luxury Beauty Template
   Soft pinks, cherry blossoms, gold accents */

:root {
  --blush: #f7c6d0;
  --blush-dark: #e8a8b5;
  --blush-light: #fce4e8;
  --blush-bg: #fdf2f4;
  --white: #ffffff;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --text-dark: #4a3f3f;
  --text-muted: #8b7d7d;
  --shadow: 0 4px 20px rgba(247, 198, 208, 0.25);
  --shadow-gold: 0 4px 16px rgba(201, 162, 39, 0.2);
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--blush-bg);
  background-image: url('../images/bg-blush-1.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Touch-friendly tap targets on mobile (min 44px) */
@media (max-width: 767px) {
  .sakura-nav-modern .nav-link { min-height: 44px; padding: 0.6rem 0.75rem !important; display: inline-flex; align-items: center; }
  .sakura-nav-modern .navbar-toggler { min-height: 44px; min-width: 44px; padding: 0.5rem; }
  .product-card .btn, .product-card-modern .btn-shop { min-height: 44px; }
  .product-card-modern .btn-wishlist { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
}

.text-blush { color: var(--blush-dark) !important; }
.bg-blush { background-color: var(--blush) !important; }
.bg-gold { background-color: var(--gold) !important; }
.text-gold { color: var(--gold) !important; }
.font-script { font-family: var(--font-script) !important; }

/* ========== Modern Navbar ========== */
.sakura-nav-modern {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(247, 198, 208, 0.2);
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .sakura-nav-modern { padding: 0.75rem 0; }
}

/* Single nav: Bootstrap default layout */
@media (min-width: 992px) {
  .sakura-nav-modern .navbar-collapse {
    justify-content: space-between;
  }
}

.sakura-nav-modern .sakura-nav-brand,
.sakura-nav-modern .brand-center {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-dark) !important;
}

.sakura-nav-modern .brand-icon {
  font-size: 1.5rem;
}

.sakura-nav-modern .brand-text {
  font-family: var(--font-script);
  font-size: 1.4rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .sakura-nav-modern .brand-text { font-size: 1.75rem; }
}

.sakura-nav-modern .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
}

.sakura-nav-modern .nav-link:hover {
  background: var(--blush-light);
  color: var(--blush-dark) !important;
}

.sakura-nav-modern .nav-icon {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sakura-nav-modern .nav-icon i {
  font-size: 1.1rem;
}

/* Mobile: center main nav links and icon row */
@media (max-width: 991.98px) {
  .sakura-nav-modern .navbar-collapse {
    align-items: center;
    text-align: center;
  }
  .sakura-nav-modern .navbar-collapse .navbar-nav.me-auto {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
  }
  .sakura-nav-modern .navbar-collapse .nav-icons-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0.75rem;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid rgba(247, 198, 208, 0.5);
    width: 100%;
  }
  .sakura-nav-modern .nav-icons-row .nav-item {
    margin: 0;
  }
  .sakura-nav-modern .nav-icons-row .nav-link {
    padding: 0.5rem 0.75rem !important;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .sakura-nav-modern .nav-icons-row .nav-link span { display: none !important; }
}

.cart-badge, .wishlist-badge {
  font-size: 0.65rem;
  top: -4px;
  right: -6px;
}

.sakura-modal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow);
}

/* ========== Hero Section ========== */
/* Hero fills first view - categories stay below the fold */
.hero-modern {
  background: url('../images/bg-sakura-banner.png') no-repeat center center;
  background-size: cover;
  padding: 2rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.hero-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253, 242, 244, 0.85) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(247, 198, 208, 0.4) 100%);
  pointer-events: none;
}

.hero-modern .container { position: relative; z-index: 1; }

@media (min-width: 768px) {
  .hero-modern { padding: 3rem 0 4rem; min-height: calc(100vh - 70px); }
}

@media (min-width: 992px) {
  .hero-modern { padding: 4rem 0 5rem; min-height: calc(100vh - 70px); }
}


.hero-modern .hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-modern .hero-title-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-modern .hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-modern .hero-visual {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-modern .hero-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(247, 198, 208, 0.3);
}

@media (min-width: 576px) {
  .hero-modern .hero-visual { min-height: 220px; margin-top: 2rem; }
  .hero-modern .hero-img { max-width: 450px; }
}

@media (min-width: 768px) {
  .hero-modern .hero-visual { min-height: 260px; margin-top: 0; }
  .hero-modern .hero-img { max-width: 500px; }
}

@media (min-width: 992px) {
  .hero-modern .hero-visual { min-height: 280px; }
  .hero-modern .hero-img { max-width: 100%; }
}

/* ========== Buttons ========== */
.btn-sakura {
  background: linear-gradient(135deg, var(--blush) 0%, var(--blush-dark) 100%);
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-sakura:hover {
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 198, 208, 0.4);
}

.btn-outline-sakura {
  background: transparent;
  border-radius: 50px;
  border: 1px solid rgba(247, 198, 208, 0.8);
  color: var(--text-dark);
  padding: 0.65rem 1.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-outline-sakura:hover {
  background: var(--blush-light);
  border-color: var(--blush);
  color: var(--text-dark);
  box-shadow: 0 6px 18px rgba(247, 198, 208, 0.3);
  transform: translateY(-1px);
}

.btn-outline-blush {
  background: transparent;
  border-radius: 50px;
  border: 1px solid var(--blush);
  color: var(--blush-dark);
  padding: 0.65rem 1.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-outline-blush:hover,
.btn-outline-blush.active {
  background: var(--blush-light);
  border-color: var(--blush-dark);
  color: var(--blush-dark);
  box-shadow: 0 6px 18px rgba(247, 198, 208, 0.3);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25d366 !important;
  color: var(--white) !important;
  border: none;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.btn-whatsapp:hover {
  color: var(--white) !important;
  transform: translateY(-2px);
}

@media (max-width: 575px) {
  .btn-whatsapp { width: 100%; justify-content: center; min-height: 52px; }
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8921f 100%);
  color: var(--white) !important;
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover { color: var(--white) !important; opacity: 0.95; transform: translateY(-1px); }

/* ========== Section Titles ========== */
.section-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.section-title-modern {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-title-modern + .section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ========== Product Cards (Blossom Framed) ========== */
.product-card-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(247, 198, 208, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(247, 198, 208, 0.5);
  height: 100%;
  position: relative;
}

.product-card-modern::before {
  content: '🌸';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.9rem;
  opacity: 0.6;
  z-index: 1;
}

.product-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(247, 198, 208, 0.35);
}

.product-card-modern .card-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--white) 100%);
}

.product-card-modern .card-img-top {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product-card-modern .card-body { padding: 1rem; }

@media (min-width: 576px) {
  .product-card-modern .card-body { padding: 1.25rem; }
}
.product-card-modern .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-modern .price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.15rem;
}

.product-card-modern .btn-shop {
  background: linear-gradient(135deg, var(--blush) 0%, var(--blush-dark) 100%);
  color: var(--white) !important;
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
}

@media (min-width: 576px) {
  .product-card-modern .btn-shop { padding: 0.4rem 1rem; font-size: 0.85rem; }
}

.product-card-modern .btn-shop:hover { color: var(--white) !important; opacity: 0.95; }

.product-card-modern .btn-wishlist {
  color: var(--blush-dark);
  border: 1px solid var(--blush);
  background: transparent;
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-modern .btn-wishlist:hover,
.product-card-modern .btn-wishlist.active {
  background: var(--blush);
  color: var(--white);
  border-color: var(--blush);
}

/* Legacy product card (keep for compatibility) */
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(247, 198, 208, 0.3);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(247, 198, 208, 0.35);
}

.product-card .card-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--blush-bg);
}

.product-card .card-img-top { object-fit: cover; width: 100%; height: 100%; }
.product-card .card-body { padding: 1.25rem; }
.product-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .price { font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.product-card .btn-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.product-card .btn-actions .btn { flex: 1; padding: 0.4rem 0.6rem; font-size: 0.9rem; border-radius: 10px; }
.product-card .btn-wishlist { color: var(--blush-dark); border: 1px solid var(--blush); background: transparent; }
.product-card .btn-wishlist:hover, .product-card .btn-wishlist.active { background: var(--blush); color: var(--white); border-color: var(--blush); }

/* ========== Categories Slider ========== */
.category-slider-btns {
  position: relative;
  z-index: 2;
}

.category-slider-btns .btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0.5rem !important;
}

.category-slider-wrapper {
  overflow: hidden;
}

.category-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  /* Clip scrollbar by pulling it below wrapper */
  margin-bottom: -18px;
  padding-bottom: 18px;
}

.category-slider::-webkit-scrollbar,
.category-slider::-webkit-scrollbar-track,
.category-slider::-webkit-scrollbar-thumb {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.category-slide {
  flex: 0 0 auto;
  width: calc(50% - 0.5rem);
  display: flex;
}

@media (min-width: 576px) {
  .category-slide { width: calc(33.333% - 0.67rem); }
}

@media (min-width: 768px) {
  .category-slide { width: calc(25% - 0.75rem); }
}

@media (min-width: 992px) {
  .category-slide { width: calc(25% - 0.75rem); }
}

.category-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  text-decoration: none;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(247, 198, 208, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid rgba(247, 198, 208, 0.4);
}

.category-card:hover { transform: translateY(-6px); color: var(--text-dark); }
.category-card .cat-img {
  aspect-ratio: 1/1;
  width: 100%;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--white) 100%);
}

.category-card .cat-img-placeholder {
  aspect-ratio: 1/1;
  width: 100%;
  flex-shrink: 0;
  min-height: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card .cat-placeholder-text {
  color: var(--text-dark);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9);
  padding: 0.5rem;
  text-align: center;
}

.category-card .cat-name {
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  min-height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
}

/* ========== Trending Section ========== */
.trending-modern {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  box-shadow: 0 8px 40px rgba(247, 198, 208, 0.2);
  border: 1px solid rgba(247, 198, 208, 0.3);
}

.trending-modern .trending-offer {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

@media (min-width: 576px) {
  .trending-modern { padding: 2rem 1.5rem; border-radius: 20px; }
  .trending-modern .trending-offer { font-size: 2rem; }
}

@media (min-width: 768px) {
  .trending-modern { padding: 3rem 2rem; border-radius: 24px; }
  .trending-modern .trending-offer { font-size: 2.5rem; }
}

.trending-modern .trending-offer strong {
  color: var(--blush-dark);
}

/* ========== WhatsApp CTA Section ========== */
.whatsapp-cta-section {
  background: url('../images/bg-sakura-petals.png') no-repeat center center;
  background-size: cover;
  padding: 2.5rem 1rem;
  text-align: center;
  position: relative;
}

.whatsapp-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(253, 242, 244, 0.7);
  pointer-events: none;
}

.whatsapp-cta-section .container { position: relative; z-index: 1; }

.whatsapp-cta-section .cta-title {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.whatsapp-cta-section .cta-sub {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .whatsapp-cta-section { padding: 4rem 2rem; }
}

/* ========== Footer ========== */
.footer-modern {
  background: linear-gradient(180deg, var(--blush-dark) 0%, #d895a3 100%);
  color: var(--white);
  padding: 2.5rem 1rem 2rem;
}

@media (min-width: 768px) {
  .footer-modern { padding: 4rem 2rem 2rem; }
}

.footer-modern a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-modern a:hover {
  color: var(--white);
}

.footer-modern .footer-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-modern .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-modern .footer-links li {
  margin-bottom: 0.5rem;
}

.footer-modern .newsletter-input {
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Footer newsletter form stacks on mobile */
@media (max-width: 575px) {
  .footer-modern #newsletter-form { flex-direction: column; }
  .footer-modern #newsletter-form .form-control { width: 100%; }
  .footer-modern #newsletter-form .btn-subscribe { width: 100%; }
}

.footer-modern .newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.footer-modern .btn-subscribe {
  background: var(--white);
  color: var(--blush-dark) !important;
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
}

.footer-modern .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-right: 0.5rem;
  transition: background 0.2s;
}

.footer-modern .social-icons a:hover {
  background: rgba(255, 255, 255, 0.35);
}

.footer-modern .footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 0.9rem;
}

/* ========== WhatsApp Floating Button ========== */
.whatsapp-float {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: max(16px, env(safe-area-inset-right));
  width: 52px;
  height: 52px;
  background: #25d366;
  color: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .whatsapp-float { width: 56px; height: 56px; font-size: 1.75rem; bottom: 24px; right: 24px; }
}

.whatsapp-float:hover { color: var(--white) !important; transform: scale(1.08); }

/* Cart & Wishlist pages */
.table-sakura thead { background: var(--blush-light); }
.table-sakura th { font-weight: 600; color: var(--text-dark); border-color: var(--blush); }
.qty-input { width: 70px; text-align: center; border-radius: 8px; border: 1px solid var(--blush); }

/* Product page (legacy fallbacks) */
.product-gallery .main-img { border-radius: 16px; overflow: hidden; background: var(--blush-light); aspect-ratio: 1; }
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info .product-title { font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 600; }
.product-info .product-price { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700; color: var(--gold); }

/* ========== Product detail (modern) ========== */
.page-hero-sm { padding: 1.25rem 0 1.5rem; }
.page-hero-sm .breadcrumb { margin-bottom: 0; }

.product-detail-section { padding-top: 0; }

.product-detail-gallery.sakura-card {
  padding: 1.25rem;
  overflow: hidden;
}

.product-detail-main-img {
  border-radius: 16px;
  overflow: hidden;
  background: var(--blush-light);
  aspect-ratio: 1;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(247, 198, 208, 0.2);
}

.product-detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.product-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blush-light);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--blush);
  box-shadow: 0 4px 12px rgba(247, 198, 208, 0.35);
}

.product-detail-info.sakura-card {
  padding: 1.75rem;
}

.product-detail-category {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush-dark);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.product-detail-category:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.product-detail-title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.product-detail-meta .stock-badge { font-size: 0.8rem; padding: 0.35rem 0.65rem; }
.product-badge-bundle {
  background: linear-gradient(135deg, var(--blush-light), rgba(247, 198, 208, 0.6));
  color: var(--blush-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
}

.product-detail-price {
  font-size: clamp(1.4rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.product-detail-bundle {
  background: rgba(247, 198, 208, 0.12);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(247, 198, 208, 0.35);
}

.product-detail-bundle-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-detail-bundle-save {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0d6b2c;
}

.product-detail-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.product-qty-input {
  width: 80px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--blush);
  font-weight: 500;
}

.product-detail-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.product-detail-related {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(247, 198, 208, 0.35);
}

.product-detail-related .section-title-modern {
  text-align: center;
}

/* Product detail: buttons stack on mobile */
@media (max-width: 575px) {
  .product-detail-actions .d-flex.flex-wrap { flex-direction: column; }
  .product-detail-actions .d-flex.flex-wrap .btn { width: 100%; justify-content: center; }
}

.stock-badge.in-stock { background: #d4edda; color: #155724; }
.stock-badge.low { background: #fff3cd; color: #856404; }
.stock-badge.out { background: #f8d7da; color: #721c24; }

/* Footer spacing for float button & mobile */
main { padding-bottom: 1rem !important; }

@media (max-width: 767px) {
  main { padding-bottom: 5rem !important; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Cart table responsive */
@media (max-width: 575px) {
  .table-sakura th:nth-child(2), .table-sakura td:nth-child(2),
  .table-sakura th:nth-child(4), .table-sakura td:nth-child(4) { font-size: 0.9rem; }
}

/* Section padding mobile */
@media (max-width: 767px) {
  section.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

/* ========== Page Hero (About, Contact) ========== */
.page-hero {
  background: url('../images/bg-sakura-banner.png') no-repeat center center;
  background-size: cover;
  padding: 2rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253, 242, 244, 0.9) 0%, rgba(255, 255, 255, 0.85) 100%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .page-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.page-hero .page-sub {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.page-hero .breadcrumb-item a { color: var(--blush-dark); }
.page-hero .breadcrumb-item a:hover { color: var(--text-dark); }
.page-hero .breadcrumb-item.active { color: var(--text-muted); }

/* Page content section (matches home sections) */
.page-content-section {
  background: url('../images/bg-sakura-petals.png') no-repeat center top;
  background-size: cover;
  padding: 3rem 0 4rem;
  min-height: 50vh;
}

/* Sakura card (About, Contact) - matches trending-modern */
.sakura-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(247, 198, 208, 0.5);
  box-shadow: 0 8px 32px rgba(247, 198, 208, 0.2);
  transition: box-shadow 0.3s ease;
}

.sakura-card:hover {
  box-shadow: 0 12px 40px rgba(247, 198, 208, 0.3);
}

.sakura-card .form-control {
  border-radius: 12px;
  border: 1px solid rgba(247, 198, 208, 0.5);
  padding: 0.65rem 1rem;
}

.sakura-card .form-control:focus {
  border-color: var(--blush-dark);
  box-shadow: 0 0 0 0.2rem rgba(247, 198, 208, 0.25);
}

.sakura-card .btn-outline-secondary {
  border-color: rgba(247, 198, 208, 0.6);
  color: var(--text-dark);
}

.sakura-card .btn-outline-secondary:hover {
  background: var(--blush-light);
  border-color: var(--blush);
  color: var(--text-dark);
}

.sakura-card h3, .sakura-card h4 {
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--text-dark);
}

.sakura-card .border-top { border-color: rgba(247, 198, 208, 0.5) !important; }

.sakura-card a:not(.btn) { color: var(--blush-dark); }
.sakura-card a:not(.btn):hover { color: var(--text-dark); }

/* Shop page – Search & Filters */
.shop-search-wrap { width: 100%; max-width: 100%; }
.shop-search-wrap .shop-search-form,
.shop-search-wrap .input-group { width: 100%; }

.shop-search-form .input-group {
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(247, 198, 208, 0.2);
  border: 1px solid rgba(247, 198, 208, 0.5);
}

.shop-search-form .form-control {
  border: none;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
}

.shop-search-form .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}

.shop-search-form .btn {
  padding: 0.65rem 1.25rem;
  border-radius: 0 50px 50px 0;
}

.shop-toolbar {
  padding: 1rem 1.25rem;
}
.shop-toolbar.sakura-card {
  background: linear-gradient(135deg, rgba(253, 242, 244, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(247, 198, 208, 0.5);
  box-shadow: 0 8px 32px rgba(247, 198, 208, 0.15);
}

.shop-filters-form .shop-filter-select,
.shop-filters-form .shop-price-input {
  min-width: 140px;
  border-radius: 10px;
  border: 1px solid rgba(247, 198, 208, 0.6);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
}
.shop-filters-form .shop-filter-select { min-width: 140px; }
.shop-filters-form .shop-price-input { min-width: 90px; width: 90px; }
.shop-filters-form .shop-filter-select:focus,
.shop-filters-form .shop-price-input:focus {
  border-color: var(--blush-dark);
  box-shadow: 0 0 0 0.2rem rgba(247, 198, 208, 0.25);
  background: #fff;
}
.shop-filters-form label.text-muted { color: var(--text-muted); }
.shop-filters-form .form-check-input:checked {
  background-color: var(--blush-dark);
  border-color: var(--blush-dark);
}
.shop-filters-form .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(247, 198, 208, 0.25);
}
.shop-filters-form .btn-outline-secondary {
  border-color: rgba(247, 198, 208, 0.7);
  color: var(--text-dark);
}
.shop-filters-form .btn-outline-secondary:hover {
  background: var(--blush-light);
  border-color: var(--blush-dark);
  color: var(--text-dark);
}

@media (max-width: 767px) {
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-filters-form { flex-direction: column; }
}

.shop-filters {
  padding: 1.25rem 1.5rem;
  background: rgba(253, 242, 244, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(247, 198, 208, 0.5);
  box-shadow: 0 8px 32px rgba(247, 198, 208, 0.15);
}
.shop-filters.sakura-card {
  background: linear-gradient(135deg, rgba(253, 242, 244, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.shop-filter-header {
  margin-bottom: 1rem;
}

.shop-filter-label {
  font-family: var(--font-script);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}
.shop-result-count {
  color: var(--text-muted);
  font-weight: 500;
}

.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .shop-category-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (min-width: 768px) {
  .shop-category-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
}

@media (min-width: 992px) {
  .shop-category-grid { grid-template-columns: repeat(5, 1fr); }
}

.shop-cat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(247, 198, 208, 0.6);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 40px;
}

.shop-cat-pill:hover, .shop-cat-pill.active {
  background: linear-gradient(135deg, var(--blush-dark) 0%, #d895a3 100%);
  border-color: var(--blush-dark);
  color: #fff !important;
  font-weight: 600;
}

/* Ensure active pill text is readable (override .sakura-card a) */
.sakura-card .shop-cat-pill.active,
.sakura-card .shop-cat-pill:hover {
  color: #fff !important;
}

.shop-category-grid-sm { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

.shop-cat-pill-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.shop-subcategories {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 198, 208, 0.5);
}

.shop-sub-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Admin */
.admin-sidebar { background: var(--blush-bg); min-height: 100vh; }
.admin-sidebar .nav-link { color: var(--text-dark); border-radius: 8px; }
.admin-sidebar .nav-link:hover { background: var(--blush); color: var(--white); }
.admin-sidebar .nav-link.active { background: var(--blush); color: var(--white); }
