/* Storefront — Beta premium theme (builds on theme.css) */

body {
  background-color: var(--brand-bg);
}

/* ---- Service cards ---- */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-icon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.service-icon-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.service-gallery .carousel-inner {
  border-radius: var(--radius-sm, 8px);
}
.service-gallery .carousel-item img,
.service-gallery .carousel-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #000;
}
/* Undo the fixed 200px/cover sizing once the video goes fullscreen —
   otherwise the browser's native fullscreen button crops/shrinks the video
   instead of showing it properly full-screen. */
.service-gallery .carousel-item video:fullscreen,
.service-gallery .carousel-item video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
/* Small circular buttons instead of Bootstrap's default full-height 15%-wide
   click zones — those were still reaching down into the video's own
   play/pause control bar and stealing clicks meant for it. */
.service-gallery .carousel-control-prev,
.service-gallery .carousel-control-next {
  width: 32px;
  height: 32px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 1;
  box-shadow: var(--shadow-soft);
}
.service-gallery .carousel-control-prev { left: 8px; }
.service-gallery .carousel-control-next { right: 8px; }
.service-gallery .carousel-control-prev-icon,
.service-gallery .carousel-control-next-icon {
  width: 16px;
  height: 16px;
  filter: invert(0.2);
}
.service-gallery-indicators {
  position: static;
  margin-top: 8px;
  margin-bottom: 0;
}
.service-gallery-indicators [data-bs-target] {
  background-color: var(--brand-border);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 1;
}
.service-gallery-indicators .active {
  background-color: var(--brand-primary);
}

section + section,
.home-section {
  margin-bottom: var(--space-6);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.section-heading h3 {
  margin: 0;
  font-size: 1.5rem;
}
.section-heading a {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--brand-primary);
}
.section-heading a:hover { color: var(--brand-primary-hover); }

/* ---- Header ----
   position: fixed (not sticky-top) — `overflow-x: hidden` on html/body
   (needed to prevent horizontal scroll) breaks position: sticky in Chrome/
   Firefox, so the nav would scroll away instead of staying docked. Fixed
   positioning isn't affected by ancestor overflow. main.js sets body
   padding-top to the header's real height so content doesn't slide under it. */
.beta-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  border-bottom: 1px solid var(--brand-border);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  background-color: #fff;
}
.beta-header .navbar-brand img { max-height: 40px; }
.beta-header .nav-link {
  color: var(--brand-text);
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.beta-header .nav-link:hover {
  color: var(--brand-primary);
  background-color: #FCEEDD;
}

.beta-search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 560px;
  position: relative;
}
.beta-search-icon {
  position: absolute;
  left: 16px;
  color: var(--brand-muted);
  pointer-events: none;
}
.beta-search input.form-control {
  height: var(--input-height);
  border-radius: 999px 0 0 999px;
  border-right: none;
  padding-left: 42px;
  background-color: var(--brand-bg);
}
.beta-search input.form-control:focus {
  background-color: #fff;
  box-shadow: none;
}
.beta-search .btn {
  height: var(--input-height);
  border-radius: 0 999px 999px 0;
  padding-left: 22px;
  padding-right: 22px;
}

/* ---- Hero ---- */
.hero-carousel {
  position: relative;
  padding-bottom: var(--space-4);
}
.hero-slide {
  display: block;
  height: 560px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FCEEDD 0%, #F3F6F7 100%);
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: #fff;
  color: var(--brand-text);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 1;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hero-arrow.carousel-control-prev { left: 16px; }
.hero-arrow.carousel-control-next { right: 16px; }
.hero-arrow:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.hero-indicators {
  position: static;
  margin-top: var(--space-3);
  margin-bottom: 0;
}
.hero-indicators [data-bs-target] {
  background-color: var(--brand-border);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero-indicators .active {
  background-color: var(--brand-primary);
  transform: scale(1.2);
}

@media (max-width: 991.98px) {
  .hero-slide { height: 420px; }
}

@media (max-width: 767.98px) {
  .hero-slide { height: 280px; border-radius: 14px; }
  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    left: 10px;
    right: 10px;
  }
  .hero-arrow.carousel-control-prev { left: 10px; }
  .hero-arrow.carousel-control-next { right: 10px; }
}

/* ---- Shop by Categories ---- */
.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand-primary);
}
/* Full-bleed image: the card's own padding and the image's separate
   border-radius previously stacked into a visible double gap. The card
   clips corners via overflow:hidden, so the image needs neither. */
.category-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}
.category-card p {
  font-weight: 600;
  color: var(--brand-text);
  margin: 0;
  padding: var(--space-1) 6px;
}

/* ---- Product card ---- */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift) !important;
  border-color: #F3D9BC;
}

.product-card .product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #F5EDE4;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-media-link {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media .badge.bg-danger {
  box-shadow: 0 3px 8px rgba(234, 132, 36, 0.35);
  font-size: 0.72rem;
  padding: 0.4em 0.75em;
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-muted);
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.wishlist-btn:hover {
  color: #fff;
  background: var(--brand-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(234, 132, 36, 0.4);
}
.wishlist-btn.active {
  color: #fff;
  background: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(234, 132, 36, 0.4);
}
.wishlist-btn.active:hover {
  background: var(--brand-danger);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.product-card .card-body {
  padding: var(--space-2) var(--space-2) var(--space-3);
}
.product-card .brand-label {
  font-size: 0.72rem;
  color: var(--brand-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card .card-title {
  font-weight: 600;
  color: var(--brand-text);
  font-size: 0.92rem;
  line-height: 1.35;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .rating-stars {
  color: var(--brand-primary);
  font-size: 0.78rem;
}
.product-card .rating-stars .bi-star {
  color: var(--brand-border);
}
.product-card .review-count {
  color: var(--brand-muted);
  font-size: 0.75rem;
  margin-left: 2px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.product-card .price-now {
  font-weight: 700;
  color: var(--brand-text);
  font-size: 1.1rem;
}
.product-card .price-old {
  color: var(--brand-muted);
  text-decoration: line-through;
  font-size: 0.82rem;
}
.product-card .btn-primary {
  font-size: 0.85rem;
}

/* ---- Brand slider ---- */
.brand-slider {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.brand-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: brand-scroll 28s linear infinite;
}
.brand-slider:hover .brand-track {
  animation-play-state: paused;
}
.brand-track img {
  height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.brand-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Testimonials ---- */
.testimonial-card {
  height: 100%;
  padding: var(--space-3);
}
.testimonial-card .bi-quote {
  color: var(--brand-primary);
  font-size: 1.5rem;
}
.testimonial-card .rating-stars {
  color: var(--brand-primary);
  font-size: 0.85rem;
}
.testimonial-card p.comment {
  color: var(--brand-text);
  margin: var(--space-1) 0 var(--space-2);
}
.testimonial-card .customer-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-card .product-ref {
  color: var(--brand-muted);
  font-size: 0.8rem;
}

/* ---- Newsletter ---- */
.newsletter-card {
  background: linear-gradient(135deg, #FCEEDD 0%, #F8F9FA 100%);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: var(--space-5) var(--space-3);
  text-align: center;
}
.newsletter-card input.form-control {
  height: var(--input-height);
  min-width: 280px;
}

/* ---- Breadcrumb ---- */
.breadcrumb-item a {
  color: var(--brand-primary);
  text-decoration: none;
}
.breadcrumb-item.active {
  color: var(--brand-text);
  font-weight: 500;
}

/* ---- Footer ---- */
footer.bg-dark {
  padding-top: var(--space-5);
}
footer h5, footer h6 {
  color: #fff;
  font-weight: 700;
}
footer a.link-light:hover {
  color: var(--brand-primary) !important;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.thumb:hover {
  border-color: var(--brand-primary) !important;
}
