/* ============================================================
   ROOT VARIABLES
============================================================ */
:root {
  --primary:    #1c1c1c;
  --accent:     #e63946;
  --accent-hover: #c1121f;
  --light-bg:   #f7f7f7;
  --border:     #e8e8e8;
  --text-muted: #888;
  --white:      #ffffff;
  --badge-sale: #e63946;
  --badge-new:  #2a9d8f;
  --transition: 0.3s ease;
}

/* ============================================================
   BASE
============================================================ */
* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--primary);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============================================================
   ANNOUNCEMENT BAR
============================================================ */
.announcement-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 8px 0;
  text-align: center;
}

.announcement-bar a {
  color: #ffd166;
  font-weight: 600;
  margin-left: 6px;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand span { color: var(--accent); }

.navbar-brand img {
  height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 575.98px) {
  .navbar-brand img { height: 36px; }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary) !important;
  padding: 6px 14px !important;
  position: relative;
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 28px); }

.nav-link:hover { color: var(--accent) !important; }

/* Search */
.search-form {
  position: relative;
}

.search-form input {
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 7px 40px 7px 16px;
  font-size: 0.85rem;
  width: 220px;
  outline: none;
  transition: border-color var(--transition), width var(--transition);
  background: var(--light-bg);
}

.search-form input:focus {
  border-color: var(--accent);
  width: 260px;
  background: var(--white);
}

/* Full-width search inside collapsed mobile nav */
.search-form.mobile-search { width: 100%; }
.search-form.mobile-search input,
.search-form.mobile-search input:focus { width: 100%; }

.search-form button {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
}

/* Icon buttons */
.nav-icon-btn {
  background: none;
  border: none;
  position: relative;
  font-size: 1.2rem;
  color: var(--primary);
  cursor: pointer;
  padding: 6px 8px;
  transition: color var(--transition);
}

.nav-icon-btn:hover { color: var(--accent); }

.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ============================================================
   HERO CAROUSEL
============================================================ */
.hero-carousel .carousel-item {
  height: 540px;
  position: relative;
  overflow: hidden;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel .carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  align-items: center;
}

.hero-carousel .carousel-content {
  padding-left: 8%;
  max-width: 520px;
  color: white;
}

.hero-carousel .slide-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.hero-carousel h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-carousel p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-hero {
  background: var(--accent);
  color: white;
  border: none;
  padding: 13px 34px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}

.btn-hero:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 11px 34px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 4px;
  margin-left: 12px;
  transition: all var(--transition);
  display: inline-block;
}

.btn-hero-outline:hover {
  background: white;
  color: var(--primary);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px; height: 50px;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  opacity: 0;
  transition: opacity var(--transition);
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next { opacity: 1; }

.carousel-indicators [data-bs-target] {
  width: 30px; height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.6);
}

.carousel-indicators .active {
  background: white;
  width: 42px;
}

/* ============================================================
   SECTION TITLES
============================================================ */
.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}

.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ============================================================
   CATEGORY CARDS
============================================================ */
.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img { transform: scale(1.07); }

.category-card .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background var(--transition);
}

.category-card:hover .cat-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}

.category-card .cat-name {
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card .cat-count {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
}

.category-card .cat-arrow {
  margin-left: auto;
  color: white;
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.category-card:hover .cat-arrow { transform: translateX(4px); }

/* ============================================================
   UPCOMING CARDS
============================================================ */
.upcoming-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-bg);
}

.upcoming-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.upcoming-card:hover img { transform: scale(1.04); }

/* ============================================================
   PRODUCT CARDS
============================================================ */
.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.product-card-link:hover { color: inherit; text-decoration: none; }

.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  height: 100%;
  cursor: pointer;
}

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

.product-card .product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
}

.product-card .product-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Badges */
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  z-index: 1;
}

.badge-sale  { background: var(--badge-sale); color: white; }
.badge-new   { background: var(--badge-new);  color: white; }
.badge-hot   { background: #f4a261; color: white; }

/* Hover action icons */
.product-cart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px; height: 34px;
  background: white;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2;
}

.product-card:hover .product-cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-cart-btn:hover { color: var(--accent); }

/* Quick-add overlay */
.quick-add-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(28,28,28,0.88);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transform: translateY(100%);
  transition: transform var(--transition);
  cursor: pointer;
}

.product-card:hover .quick-add-overlay { transform: translateY(0); }

.product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Product info */
.product-info {
  padding: 14px 14px 16px;
}

.product-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-description {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.product-rating .stars { color: #ffd166; font-size: 0.78rem; }
.product-rating .count { font-size: 0.75rem; color: var(--text-muted); }

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--badge-new);
  background: #e9f7f5;
  padding: 1px 6px;
  border-radius: 3px;
}

/* ============================================================
   PROMO BANNER
============================================================ */
.promo-banner {
  background: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 50%, #1c1c1c 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.promo-banner .promo-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.promo-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.promo-banner p {
  opacity: 0.75;
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 420px;
}

.promo-banner .countdown {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.countdown-item {
  text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 60px;
}

.countdown-item .num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.countdown-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.8px;
  opacity: 0.6;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}

.btn-promo {
  background: var(--accent);
  color: white;
  border: none;
  padding: 13px 34px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}

.btn-promo:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

.promo-banner-image {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.promo-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.promo-banner-image:hover img { transform: scale(1.03); }

.promo-carousel { padding-bottom: 30px; }
.promo-carousel .carousel-item { transition: transform 0.6s ease-in-out; }
.promo-indicators {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  margin: 0;
  justify-content: center;
}
.promo-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.35);
  margin: 0 4px;
  opacity: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}
.promo-indicators [data-bs-target].active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ============================================================
   TRUST BADGES
============================================================ */
.trust-section {
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
}

.trust-icon {
  width: 52px; height: 52px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.trust-text h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* divider between items */
.trust-item-wrap:not(:last-child) {
  border-right: 1px solid var(--border);
}

/* ============================================================
   PROMO IMAGE BANNER
============================================================ */
.promo-image-banner {
  padding: 40px 0;
}

.promo-image-banner a {
  display: block;
  max-width: 560px;
  margin: 0 auto;
}

.promo-image-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.promo-image-banner a:hover img { transform: scale(1.02); }

/* ============================================================
   NEWSLETTER
============================================================ */
.newsletter-section {
  background: #fff5f5;
  border-top: 3px solid var(--accent);
  padding: 60px 0;
  text-align: center;
}

.newsletter-section h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-section p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(230,57,70,0.15);
}

.newsletter-form input {
  flex: 1;
  border: 2px solid var(--border);
  border-right: none;
  padding: 13px 18px;
  font-size: 0.9rem;
  outline: none;
  border-radius: 6px 0 0 6px;
}

.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 13px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0 6px 6px 0;
}

.newsletter-form button:hover { background: var(--accent-hover); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #111;
  color: #ccc;
  padding: 60px 0 0;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 64px;
  width: auto;
  max-width: 200px;
  display: block;
}

.footer-brand span { color: var(--accent); }

.footer p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #999;
  max-width: 260px;
}

.footer h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

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

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

.footer ul li a {
  color: #999;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer ul li a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #999;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #ccc;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  margin-top: 48px;
  font-size: 0.8rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.footer-legal-links a {
  color: #666;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--accent);
}

.footer-developer {
  padding: 16px 0 24px;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: #8a8a8a;
}

.footer-developer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.footer-developer__credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-developer__name {
  color: #fff;
  font-weight: 600;
}

.footer-developer__dot {
  display: none;
  color: #666;
}

.footer-developer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.footer-developer__link:hover {
  color: #fff;
}

.footer-developer__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================
   MOBILE BOTTOM NAV
============================================================ */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}

.mobile-bottom-nav__shell {
  margin: 0 12px 12px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  overflow: hidden;
  pointer-events: auto;
}

.mobile-bottom-nav__items {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mobile-bottom-nav__item {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:active {
  color: var(--primary);
  background: rgba(0,0,0,0.03);
}

.mobile-bottom-nav__item.is-active {
  color: var(--primary);
}

.mobile-bottom-nav__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.mobile-bottom-nav__icon i {
  font-size: 1.2rem;
}

.mobile-bottom-nav__icon--cart .cart-badge {
  top: -5px;
  right: -9px;
}

.mobile-bottom-nav__label {
  width: 100%;
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MOBILE SEARCH SHEET
============================================================ */
.mobile-search-sheet {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-search-sheet.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-search-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-search-sheet__panel {
  position: relative;
  width: min(100%, 560px);
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  padding: 18px;
  transform: translateY(18px);
  transition: transform var(--transition);
  margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.mobile-search-sheet.open .mobile-search-sheet__panel {
  transform: translateY(0);
}

.mobile-search-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-search-sheet__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.mobile-search-sheet__header h6 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.mobile-search-sheet__close {
  border: none;
  background: var(--light-bg);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.mobile-search-sheet__form {
  display: flex;
  gap: 10px;
}

.mobile-search-sheet__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
}

.mobile-search-sheet__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.mobile-search-sheet__submit {
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 16px;
}

.mobile-search-sheet__hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  color: white;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ============================================================
   CART SIDEBAR
============================================================ */
.cart-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.cart-sidebar-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 380px;
  height: 100%;
  background: white;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: -6px 0 30px rgba(0,0,0,0.15);
}

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

.cart-sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-sidebar-header h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.cart-close {
  background: none; border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.cart-close:hover { color: var(--accent); }

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 3rem;
  margin-bottom: 14px;
  display: block;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 70px; height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--light-bg);
}

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

.cart-item-info .name {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-info .size {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-info .price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.cart-item-remove {
  background: none; border: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  transition: color var(--transition);
  align-self: flex-start;
}

.cart-item-remove:hover { color: var(--accent); }

.cart-sidebar-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.btn-checkout {
  display: block;
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-checkout:hover { background: var(--accent-hover); }

.btn-view-cart {
  display: block;
  width: 100%;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background var(--transition), color var(--transition);
  text-align: center;
}

.btn-view-cart:hover {
  background: var(--primary);
  color: white;
}

/* ============================================================
   FILTER TABS
============================================================ */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 25px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================================
   TOAST NOTIFICATION
============================================================ */
.toast-container {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 9998;
}

.custom-toast {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  margin-bottom: 8px;
}

.custom-toast.show { transform: translateX(0); }
.custom-toast i { color: #51cf66; font-size: 1rem; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991px) {
  .hero-carousel .carousel-item { height: 420px; }
  .trust-item-wrap { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item-wrap:last-child { border-bottom: none; }
  .search-form input { width: 180px; }
  .search-form input:focus { width: 200px; }
}

@media (max-width: 767px) {
  .hero-carousel .carousel-item { height: 340px; }
  .hero-carousel h1 { font-size: 1.5rem; }
  .hero-carousel p { display: none; }
  .btn-hero-outline { display: none; }
  .announcement-bar { font-size: 0.75rem; }
  .cart-sidebar { width: 100%; right: -100%; }
  .category-card img { height: auto; aspect-ratio: 3 / 4; }
  .product-card .product-img-wrap img { height: auto; aspect-ratio: 3 / 4; }
  .promo-banner .countdown { flex-wrap: wrap; }
  .promo-banner { padding: 48px 0; }
  .footer p { max-width: 100%; }
  .footer-legal-links { margin-left: 0; justify-content: center; width: 100%; }
  .whatsapp-float { bottom: 92px; }
  .toast-container { bottom: 152px; }
}

@media (max-width: 575px) {
  .hero-carousel .carousel-item { height: 260px; }
  .hero-carousel .carousel-content { padding-left: 5%; }
  .hero-carousel h1 { font-size: 1.2rem; }
  .newsletter-form { flex-direction: column; border-radius: 6px; }
  .newsletter-form input { border-right: 2px solid var(--border); border-radius: 6px; }
  .newsletter-form button { border-radius: 6px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { margin-left: 0; justify-content: center; width: 100%; }
  .footer-developer__inner { gap: 10px; }
  .footer-developer__credit { flex-direction: column; gap: 4px; }
  .footer-developer__dot { display: none; }
  .promo-banner { padding: 40px 0; }
  .whatsapp-float {
    width: 46px; height: 46px;
    bottom: 92px; right: 18px;
    font-size: 1.25rem;
  }
  .toast-container { right: 18px; bottom: 152px; }
}

@media (min-width: 576px) {
  .footer-developer__inner {
    flex-direction: row;
    gap: 12px;
  }

  .footer-developer__dot {
    display: inline;
  }
}

@media (max-width: 420px) {
  .mobile-search-sheet__form {
    flex-direction: column;
  }

  .mobile-search-sheet__submit {
    width: 100%;
  }
}

/* Touch devices — no hover, so make hover-only affordances visible */
@media (hover: none) {
  .quick-add-overlay { transform: translateY(0); }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { opacity: 0.85; }
  .product-card .product-cart-btn { opacity: 1; transform: translateY(0); }
}
