:root {
  /* Cores Principais */
  --color-bg: #FDF8EF;
  --color-brand: #B91C1C;
  --color-brand-dark: #991B1B;
  --color-accent: #FACC15;
  --color-accent-hover: #EAB308;
  --color-text: #4B5563;
  --color-text-dark: #1F2937;
  --color-footer-bg: #020617;
  --color-card-bg: #FFFFFF;
  --color-border: #E5E7EB;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-logo: 'Inter', system-ui, sans-serif;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  --max-w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ========== HEADER ========== */
header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  color: var(--color-text-dark);
}
.menu-btn:hover { background-color: var(--color-bg); }

/* Logo - bigger */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 48px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}
.logo-brand {
  font-family: var(--font-family);
  color: var(--color-brand);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.logo-sub {
  color: var(--color-accent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: var(--font-family);
}

@media (min-width: 768px) {
  .logo img { height: 56px; }
  .logo-brand { font-size: 1.35rem; }
  .logo-sub { font-size: 0.7rem; }
}

.header-center {
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
  display: none;
}
@media (min-width: 768px) {
  .header-center { display: block; }
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  transition: all 0.2s ease;
}
.search-bar:focus-within {
  border-color: var(--color-accent-hover);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2);
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-dark);
}
.search-icon { color: #9ca3af; }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  color: var(--color-text);
  position: relative;
}
.icon-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Profile dropdown */
.profile-wrapper {
  position: relative;
}
.profile-btn { color: var(--color-text-dark); }
.profile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 60;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.profile-dropdown.active { display: block; }
.profile-dropdown a,
.profile-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-dark);
  font-weight: 500;
  text-align: left;
  transition: background 0.2s;
}
.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--color-bg);
  color: var(--color-brand);
}

/* Bag badge */
.bag-btn {
  color: var(--color-brand);
}
.bag-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-brand);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 600;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

/* Search Bar Mobile */
.search-bar-mobile {
  padding: 0.5rem 1rem 1rem;
  display: block;
}
@media (min-width: 768px) {
  .search-bar-mobile { display: none; }
}
.search-bar-mobile .search-bar {
  background-color: #f3f4f6;
}

/* ========== HERO FULL WIDTH - CAROUSEL ========== */
.hero-fullwidth {
  width: 100%;
  overflow: hidden;
}
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-slides {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease-in-out;
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
}
.hero-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
}
.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}
.hero-arrow-left {
  left: 12px;
}
.hero-arrow-right {
  right: 12px;
}
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dot.active {
  background: #fff;
}

/* ========== SECONDARY BANNER - CAROUSEL (fullwidth, short) ========== */
.secondary-banner {
  margin: 2rem 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
}
.secondary-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.secondary-slides {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease-in-out;
}
.secondary-slide {
  flex: 0 0 100%;
  width: 100%;
}
.secondary-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.secondary-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

/* ========== USP SECTION (above footer) ========== */
.usp-section-wrapper {
  margin-top: 3rem;
  padding: 2rem 0;
  background-color: var(--color-white);
}
.usp-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .usp-section { grid-template-columns: repeat(3, 1fr); }
}

.usp-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.usp-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: #fef3c7;
  color: #ca8a04;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.usp-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}
.usp-content p {
  font-size: 0.875rem;
  color: var(--color-text);
}

/* ========== CATEGORIES NAV ========== */
.categories-nav {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 4.5rem;
  background: var(--color-bg);
  z-index: 40;
  padding-top: 1rem;
}
.categories-nav::-webkit-scrollbar { display: none; }

.category-tab {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}
.category-tab:hover, .category-tab.active {
  border-color: var(--color-accent);
  color: var(--color-brand);
}

/* ========== PRODUCTS ========== */
.products-section { margin-bottom: 3rem; }
.loading-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 2rem;
  color: #9ca3af;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-dark);
}
.see-more {
  font-size: 0.875rem;
  color: var(--color-brand);
  font-weight: 500;
}
.see-more:hover { text-decoration: underline; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 0.75rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 1rem;
}
.add-to-cart-btn {
  width: 100%;
  background-color: var(--color-brand);
  color: var(--color-white);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.add-to-cart-btn:hover { background-color: var(--color-brand-dark); }

/* ========== FOOTER ========== */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  padding: 3rem 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-logo {
  max-width: 100px;
  margin-bottom: 1rem;
}
.footer-text {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: #1e293b;
  color: var(--color-white);
  transition: background-color 0.2s ease;
}
.social-links a:hover {
  background: linear-gradient(to right, #EC4899, #9333EA);
}

.footer-title {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-white);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-info-list li {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-links-list a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links-list a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-bottom p {
  color: #64748b;
  font-size: 0.8rem;
}
.footer-dev strong {
  color: #94a3b8;
}

/* ========== SIDEBAR ========== */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px;
  background: var(--color-white); z-index: 101;
  transform: translateX(-100%); transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.sidebar.active { transform: translateX(0); }

.sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border);
}
.sidebar-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-text-dark); }

.sidebar-menu {
  list-style: none; padding: 0.5rem 0; overflow-y: auto; flex: 1;
}
.sidebar-menu > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; color: var(--color-text-dark);
  font-weight: 500; font-size: 0.95rem; transition: background 0.2s;
}
.sidebar-menu > li > a:hover { background: var(--color-bg); color: var(--color-brand); }

/* Sidebar submenu */
.sidebar-submenu {
  display: none;
  padding-left: 1rem;
}
.sidebar-cat-item.has-sub.open .sidebar-submenu {
  display: block;
}
.sidebar-submenu li a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--color-text);
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.sidebar-submenu li a:hover {
  background: var(--color-bg);
  color: var(--color-brand);
}
.chevron-icon {
  transition: transform 0.2s;
}
.sidebar-cat-item.has-sub.open .chevron-icon {
  transform: rotate(180deg);
}

/* Sidebar footer */
.sidebar-footer {
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.sidebar-link:hover {
  background: var(--color-bg);
  color: var(--color-brand);
}
.sidebar-admin-link {
  color: var(--color-brand);
}

/* ========== AUTH MODAL ========== */
.login-modal {
  max-width: 420px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-dark);
}
.form-group input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-family);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.15);
}
.form-group input[readonly] {
  background: #f3f4f6;
  color: #9ca3af;
}
.payment-options {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-text-dark);
  cursor: pointer;
}
.auth-submit-btn {
  width: 100%;
  background-color: var(--color-brand);
  color: var(--color-white);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.auth-submit-btn:hover {
  background-color: var(--color-brand-dark);
}
.auth-toggle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text);
}
.auth-toggle a {
  color: var(--color-brand);
  font-weight: 600;
  cursor: pointer;
}
.auth-toggle a:hover {
  text-decoration: underline;
}

/* ========== CART MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100;
  opacity: 0; pointer-events: none; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s ease; padding: 1rem;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--color-white); width: 100%; max-width: 500px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: scale(0.95); opacity: 0; transition: all 0.3s ease;
  display: flex; flex-direction: column; max-height: 90vh;
}
.modal-overlay.active .modal { transform: scale(1); opacity: 1; }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem; border-bottom: 1px solid var(--color-border);
}
.modal-header h3 { font-weight: 600; color: var(--color-text-dark); }
.close-btn {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-weight: 700; color: var(--color-text);
  transition: background 0.2s;
}
.close-btn:hover { background: #f3f4f6; }
.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 1.5rem; border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 1rem;
}
.cart-total { font-size: 1.25rem; font-weight: 700; display: flex; justify-content: space-between; }
.checkout-btn {
  background: var(--color-brand); color: var(--color-white); padding: 0.75rem;
  border-radius: var(--radius-md); font-weight: 600; text-align: center; border: none; width: 100%;
}
.checkout-btn:hover { background: var(--color-brand-dark); }
.empty-cart { text-align: center; color: #9ca3af; padding: 2rem 0; }
.spacer-24 { width: 24px; }

/* ========== PRODUCT DETAIL MODAL ========== */
.product-modal-content {
  max-width: 900px;
  max-height: 95vh;
  overflow-y: auto;
  padding: 0;
  border-radius: 12px;
}
.product-modal-content .modal-header { display: none; }
.product-modal-content .modal-body { padding: 0; }

.product-detail-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
@media(min-width: 768px) {
  .product-detail-view { grid-template-columns: 1fr 1fr; }
}
.product-close-btn {
  position: absolute; right: 12px; top: 12px; z-index: 10;
  background: rgba(255,255,255,0.85); border: none; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; font-size: 1.1rem; color: #374151;
}
.product-close-btn:hover { background: #fff; }
.product-detail-img {
  aspect-ratio: 1; overflow: hidden; border-radius: 12px 12px 0 0;
}
@media(min-width: 768px) {
  .product-detail-img { border-radius: 12px 0 0 12px; aspect-ratio: auto; min-height: 400px; }
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info {
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
@media(min-width: 768px) {
  .product-detail-info { padding: 2rem; gap: 1.5rem; }
}
.product-detail-name { font-size: 1.25rem; font-weight: 300; color: #111827; line-height: 1.3; }
@media(min-width: 768px) { .product-detail-name { font-size: 1.75rem; } }
.product-detail-category { font-size: 0.875rem; color: #6B7280; text-transform: capitalize; }
.product-detail-price { font-size: 1.5rem; font-weight: 300; color: #facb65; }
@media(min-width: 768px) { .product-detail-price { font-size: 1.875rem; } }
.product-detail-desc-title { font-weight: 500; color: #111827; font-size: 0.95rem; }
.product-detail-desc { font-size: 0.875rem; color: #6B7280; line-height: 1.7; }
.product-detail-actions { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.5rem; }
.btn-add-cart-outline {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #fde68a; background: transparent;
  color: #a16207; border-radius: 8px; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s;
}
.btn-add-cart-outline:hover { background: #fefce8; color: #854d0e; }
.btn-add-cart-outline.added { background: #dcfce7; border-color: #86efac; color: #166534; }
.btn-order-now {
  width: 100%; padding: 0.75rem 1rem; background: #22c55e; color: #fff; border: none;
  border-radius: 8px; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background 0.2s;
}
.btn-order-now:hover { background: #16a34a; }

/* ========== CAROUSEL ========== */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
}
.carousel-track .product-card {
  width: calc((100% - 1rem) / 2);
  flex: 0 0 calc((100% - 1rem) / 2);
}
@media (min-width: 768px) {
  .carousel-track .product-card {
    width: calc((100% - 2rem) / 3);
    flex: 0 0 calc((100% - 2rem) / 3);
  }
}
@media (min-width: 1024px) {
  .carousel-track .product-card {
    width: calc((100% - 3rem) / 4);
    flex: 0 0 calc((100% - 3rem) / 4);
  }
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  z-index: 5;
  transition: background 0.2s, box-shadow 0.2s;
  border: 1px solid var(--color-border);
}
.carousel-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.carousel-btn.prev { left: 0.25rem; }
.carousel-btn.next { right: 0.25rem; }

/* ========== MODAL RELATED PRODUCTS ========== */
.modal-related-section {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .modal-related-section {
    padding: 1.5rem 2rem;
  }
}
.modal-related-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}
.modal-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .modal-related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
