:root {
  --primary: #852723;
  --dark: #1d1d1f;
  --light: #f7f5f3;
  --muted: #6d6d6d;
  --border: #e6e2de;
  --radius-pill: 999px;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--dark);
  background-color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
    flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.container {
  width: min(1400px, 90%);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.announcement-bar {
  background-color: var(--primary);
  color: #fff;
  overflow: hidden;
  font-size: 0.95rem;
  position: relative;
}

.announcement-track {
  display: flex;
  width: max-content;
  padding: 0.75rem 0;
  animation: announcement-scroll 25s linear infinite;
  gap: 0;
  will-change: transform;
}

.announcement-content {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  padding: 0;
}

.announcement-track p {
  white-space: nowrap;
  margin: 0;
  padding: 0 1.5rem;
}

@keyframes announcement-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover (optional) */
.announcement-bar:hover .announcement-track {
  animation-play-state: paused;
}

/* Add separator between items */
.announcement-track p::before {
  content: "•";
  margin-right: 1.5rem;
  opacity: 0.6;
}

.announcement-content:first-child p:first-child::before {
  content: none;
}

@media (max-width: 576px) {
  .announcement-bar {
    font-size: 0.85rem;
  }

  .announcement-track {
    animation-duration: 20s;
  }

  .announcement-track p {
    padding: 0 1rem;
  }

  .announcement-track p::before {
    margin-right: 1rem;
  }
}

.top-contact {
  background-color: #fff8f6;
  border-bottom: 1px solid var(--border);
}

/* ==================== TOP CONTACT BAR ==================== */
.contact-location {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-location a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

.contact-location a:hover {
  color: var(--primary);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  font-size: 0.9rem;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
}

.contact-info a,
.contact-location a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
}

.contact-info i,
.contact-location i {
  color: var(--primary);
}

/* Custom checkbox color */
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--primary);
}

/* ==================== NAVBAR STYLES ==================== */
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
}

.primary-nav {
  display: flex;
  gap: 2rem;
  text-transform: capitalize;
  font-weight: 500;
  font-size: 16px;
  align-items: center;
}

.primary-nav:first-of-type {
  justify-content: flex-start;
}

.primary-nav:last-of-type {
  justify-content: flex-end;
}

.primary-nav a {
  color: var(--dark);
  position: relative;
}

.primary-nav a.active {
  color: var(--primary);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== DESKTOP DROPDOWN ==================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dropdown-trigger i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger .ri-arrow-down-s-line {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 1rem;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--dark);
  font-size: 0.95rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background-color: #f8f8f8;
  color: var(--primary);
}

.nav-dropdown-menu a:first-child {
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

/* ==================== LOGO ==================== */
.logo-wrapper img {
  width: 250px;
  margin-inline: auto;
}

/* ==================== NAV ICONS ==================== */
.nav-icons {
  justify-self: end;
  display: flex;
  gap: 0.75rem;
}

.nav-icons button, .nav-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
    color: var(--dark);
}

.nav-icons button:hover, .nav-icons a:hover {
  border-color: var(--primary);
  background-color: #fff8f6;
  color: var(--primary);
  text-decoration: none;
}

/* Fix: Reset dropdown link styles inside nav-icons */
.nav-icons .nav-dropdown-menu a {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    display: block;
    place-items: start;
    text-align: left;
}
.nav-icons .nav-dropdown-menu a:hover {
    background-color: #f8f8f8;
    border-color: transparent;
}

.nav-icons a::after {
  content: none;
  display: none;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-count.active {
    opacity: 1;
}

/* ==================== CART DRAWER ==================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: min(400px, 90%);
    height: 100%;
    background-color: #fff;
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-cart {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-cart:hover {
    background-color: #f5f5f5;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-details h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.variant-text {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    color: #ff4d4f;
    font-size: 1.1rem;
    padding: 5px;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background-color: #f9f9f9;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: #6a1f1b;
}

.qty-control.small {
    height: 32px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.qty-control.small button {
    width: 32px;
    height: 100%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.qty-control.small button:hover {
    background-color: #e0e0e0;
}

.qty-control.small input {
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    appearance: textfield; /* Remove spinner */
    background: #fff;
    color: var(--dark);
    margin: 0;
    padding: 0;
}

.qty-control.small input::-webkit-outer-spin-button,
.qty-control.small input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem 0;
    color: var(--muted);
}

/* ==================== MOBILE MENU ==================== */
.nav-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.mobile-logo img {
  width: 185px;
}

.mobile-menu-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--dark);
  margin: 3px 0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 80%);
  height: 100%;
  background-color: #fff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.mobile-nav-links a.active {
  color: var(--primary);
}

/* ==================== MOBILE DROPDOWN ==================== */
.mobile-nav-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
}

.mobile-dropdown-trigger.active {
  color: var(--primary);
}

.mobile-dropdown-trigger i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.mobile-dropdown-trigger.open i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0 0 1rem;
  margin-top: 0.75rem;
  border-left: 2px solid var(--border);
}

.mobile-dropdown-menu.open {
  display: flex;
}

.mobile-dropdown-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.mobile-dropdown-menu a:hover {
  color: var(--primary);
}

.mobile-dropdown-menu a:first-child {
  font-weight: 600;
  color: var(--dark);
}

.mobile-nav-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-nav-meta a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.mobile-nav-meta a:hover {
  color: var(--primary);
}

.mobile-nav-meta a i {
  font-size: 1.1rem;
  color: var(--primary);
}

.mobile-nav-meta a:hover .ri-instagram-line {
  color: #e4405f; /* Instagram brand color on hover */
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .nav-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .primary-nav,
  .nav-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-contact {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: flex;
  }
}

/* ==================== CATEGORY SLIDER STYLES ==================== */
.category-slider-section {
  padding: 4rem 0 2rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading p {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.category-card {
  text-align: center;
  /* padding: 0.65rem; */
  /* max-width: 200px; */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

/* Square image container */
.category-image {
  /* width: 160px;
    height: 160px; */
  border-radius: 12px;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.3s ease;
}

.category-card:hover h3 {
  color: var(--primary);
}

.category-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.category-controls button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.category-controls button:hover {
  border-color: var(--primary);
  color: #fff;
  background-color: var(--primary);
}

.category-swiper {
  overflow: hidden;
  padding: 0 0 1.25rem;
  width: 100%;
}

.category-swiper .swiper-wrapper {
  align-items: stretch;
  display: flex;
}

.category-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  height: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .category-slider-section {
    padding: 2rem 0 1rem;
  }

  .section-heading {
    margin-bottom: 1.5rem;
  }

  /* .category-card {
        max-width: 160px;
    }

    .category-image {
        width: 130px;
        height: 130px;
    } */

  .category-card h3 {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  /* .category-card {
        max-width: 140px;
       padding: 0.5rem;
    } */

  /* .category-image {
        width: 110px;
        height: 110px;
    } */

  .category-card h3 {
    font-size: 0.85rem;
  }
}

.hero-slider-section {
  padding: 3rem 0 4.5rem;
  background-color: #fff;
}

.hero-swiper-wrapper {
  width: 100%;
}

.hero-swiper-frame {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.hero-swiper {
  position: relative;
  background-color: #f2f1ee;
}

.hero-slide {
  position: relative;
  width: 100%;
  display: block;
}

.hero-slide-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  max-width: 480px;
  padding: clamp(2rem, 5vw, 4rem);
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.swiper-slide-active .hero-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-content p {
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  color: var(--primary);
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.hero-content h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  color: #fff;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 4px;
  padding: 0.65rem 1.4rem;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta::after {
  content: "\2192";
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-cta:hover {
  color: #fff;
  background-color: #852723;
  border-color: #852723;
}

.hero-cta:hover::after {
  transform: translateX(6px);
}

.hero-controls {
  margin: 1.75rem auto 0;
  padding-inline: clamp(1rem, 5vw, 5rem);
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.hero-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.hero-button:hover i {
  color: #fff;
}

.hero-pagination {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.25);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet:hover {
  transform: scale(1.2);
}

.hero-pagination .swiper-pagination-bullet-active {
  background-color: var(--primary);
  transform: scale(1.15);
}

.hero-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
  width: auto;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .hero-slider-section {
    padding: 2rem 0 3rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .hero-content p {
    font-size: 0.75rem;
    letter-spacing: 0.25rem;
  }

  .hero-content h2 {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
  }

  .hero-button {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .hero-slider-section {
    padding: 1.5rem 0 2.5rem;
  }

  .hero-content {
    padding: 1.5rem 1.25rem;
  }

  .hero-content p {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
  }

  .hero-content h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    margin-bottom: 1rem;
  }

  .hero-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-button {
    width: 36px;
    height: 36px;
  }

  .hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 2.5rem;
}

.why-foram-section {
  padding: 4rem 0 3rem;
  background-color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.why-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  /* border: 1px solid var(--border); */
  border-radius: 18px;
  background-color: #fff;
  min-height: 130px;
  align-items: center;
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: #f0eeeb;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--primary);
}

.why-text h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.why-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.featured-section {
  padding: 4rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  justify-items: center;
}

@media (min-width: 1280px) {
  .featured-grid {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
  }
}

.product-card {
  width: 100%;
  max-width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  cursor: pointer;
}

.product-media {
  position: relative;
  height: 300px;
  padding: 1rem;
  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.quick-add {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 20px);
  padding: 0.55rem 1.6rem;
  border-radius: 4px;
  border: none;
  background-color: #852723;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: translate(-50%, -20px);
  pointer-events: auto;
}

.product-name {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #1f1f1f;
}

.product-name:hover {
  color: var(--primary);
}

.featured-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.shop-more-button {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.logo-marquee-section {
  padding: 2.5rem 0;
  overflow: hidden;
  background-color: #f8f7f4;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-marquee-wrapper {
  width: 100%;
  overflow: hidden;
}

.logo-marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Pause animation on hover (optional) */
.logo-marquee-track:hover {
  animation-play-state: paused;
}

.logo-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.logo-pill-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.logo-pill:hover .logo-pill-icon {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.logo-pill-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  transition: stroke 0.3s ease;
}

.logo-pill:hover .logo-pill-icon svg {
  stroke: #fff;
}

.logo-pill span {
  font-weight: 600;
  color: #2c2c2c;
  white-space: nowrap;
  font-size: 1.05rem;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-marquee-track {
    gap: 2rem;
    animation-duration: 25s;
  }

  .logo-pill {
    padding: 0.85rem 1.5rem;
    gap: 0.85rem;
  }

  .logo-pill-icon {
    width: 48px;
    height: 48px;
  }

  .logo-pill-icon svg {
    width: 24px;
    height: 24px;
  }

  .logo-pill span {
    font-size: 0.95rem;
  }

  .why-grid {
    gap: 0;
  }

  .hero-slider-section {
    padding: 0;
  }

  .dashboard-section {
    margin-top: 2rem;
  }
  .product-name {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .logo-marquee-track {
    gap: 1.5rem;
    animation-duration: 20s;
  }

  .logo-pill {
    padding: 0.75rem 1.25rem;
  }

  .logo-pill-icon {
    width: 44px;
    height: 44px;
  }

  .logo-pill-icon svg {
    width: 22px;
    height: 22px;
  }

  .logo-pill span {
    font-size: 0.9rem;
  }
}

.brand-story-section {
  padding: 4rem 0;
  text-align: center;
}

.brand-story {
  max-width: 720px;
  margin: 0 auto;
}

.brand-story h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.brand-story p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.brand-story-cta {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.calculator-container-wrapper {
  position: relative;
  min-height: 600px;
}

.dashboard-section {
  padding: 4rem 0;
  background-color: #fafafa;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.dashboard-section.hidden {
  display: none;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin: 0.5rem 0 2.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.dashboard-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

/* .brands-section {
    padding: 4rem 0;
    background-color: #fff;
}

.brands-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    width: 100%;
} */

/* .brand-item {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: none;
    border-right: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.brand-item:last-child {
    border-right: none;
}

.brand-item:hover {
    background-color: #eeeeee;
}

.brand-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
} */

.brands-section {
  padding: 4rem 0;
  background-color: #fff;
  overflow: hidden;
}

.brands-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 1000px; /* Increased from 800px */
  margin: 0 auto;
}

.brand-item {
  width: 100%;
  aspect-ratio: 1;
  background-color: #f5f5f5;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.brand-item:nth-child(4n) {
  border-right: none;
}

.brand-item:hover {
  background-color: #eeeeee;
}

.brand-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition:
    transform 0.4s ease,
    filter 0.3s ease;
  filter: grayscale(20%);
}

.brand-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Hide duplicate brands on desktop */
.brand-item-duplicate {
  display: none;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .brands-gallery {
    max-width: 900px;
  }

  .brand-item {
    padding: 1.75rem;
  }
}

/* Tablet to Mobile transition */
@media (max-width: 900px) {
  .brands-gallery {
    max-width: 700px;
  }

  .brand-item {
    padding: 1.5rem;
  }
}

/* Mobile Infinite Scroll Styles */
@media (max-width: 768px) {
  .brands-section {
    padding: 2rem 0;
  }

  /* Show duplicate brands on mobile for infinite scroll */
  .brand-item-duplicate {
    display: flex;
  }

  .brands-gallery {
    display: flex;
    gap: 0;
    width: max-content;
    max-width: none;
    margin: 0;
    animation: scroll 20s linear infinite;
  }

  .brands-gallery.paused {
    animation-play-state: paused;
  }

  .brand-item {
    min-width: 180px;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 1.5rem;
  }

  .brand-item:nth-child(4n) {
    border-right: 1px solid var(--border);
  }

  .brand-item img {
    filter: grayscale(0%);
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }
}

@media (max-width: 576px) {
  .brands-section {
    padding: 1.5rem 0;
  }

  .brand-item {
    min-width: 150px;
    width: 150px;
    height: 150px;
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .brand-item {
    min-width: 130px;
    width: 130px;
    height: 130px;
    padding: 1rem;
  }
}

@media (max-width: 360px) {
  .brand-item {
    min-width: 110px;
    width: 110px;
    height: 110px;
    padding: 0.85rem;
  }
}

.review-section {
  padding: 4rem 0;
}

.review-swiper {
  position: relative;
  padding-bottom: 5rem;
  overflow: hidden;
  contain: layout;
}

.review-swiper .swiper-wrapper {
  align-items: stretch;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.review-swiper .swiper-container {
  overflow: hidden;
}

.review-card {
  background-color: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  /* Optimization */
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-stars i {
  font-size: 1.1rem;
  color: #ddd;
}

.review-stars i.active {
  color: #1a1a1a;
}

.review-headline {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  min-height: 2.2rem;
}

.review-text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-author {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.review-controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background-color: #fff;
  transition: all 0.3s ease;
}

.review-button:hover {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #fff;
}

.review-pagination {
  display: flex;
  gap: 0.5rem;
  width: auto !important;
}

.review-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.review-pagination .swiper-pagination-bullet-active {
  background-color: var(--primary);
}

.instagram-section {
  padding: 4rem 0;
  background-color: #fafafa;
}

.instagram-description {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.instagram-description p {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.instagram-description a {
  color: var(--primary);
  /* text-decoration: underline; */
}

.instagram-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
}

.instagram-item {
  width: 100%;
  /* aspect-ratio: 1; */
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(133, 39, 35, 0.6); */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-overlay i {
  color: #fff;
  font-size: 2.5rem;
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .instagram-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .instagram-section {
    padding: 2rem 0;
  }

  .instagram-overlay i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .instagram-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .instagram-gallery {
    grid-template-columns: 1fr;
  }
}

/* Instagram Loading Skeleton */
/* .instagram-loading {
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.instagram-skeleton {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
} */

.back-to-top {
  position: fixed;
  bottom: 5.75rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 1.25rem;
}

.site-footer {
  /* margin-top: 2rem; */
  background-color: #f8f6f3;
  border-top: 1px solid var(--border);
}

.footer-content {
  padding: 2.5rem 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: capitalize;
}

.footer-column a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-newsletter-text {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-newsletter-heading {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.newsletter-form button:hover {
  background-color: #111;
  transform: translateY(-2px);
}

.newsletter-form button:active {
  transform: translateY(0);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.footer-social a:hover {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #fff;
}

.footer-divider {
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  align-items: center;
}
.footer-year {
    font-weight: 600;
}
.footer-bottom-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.payment-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-weight: 600;
}

/* @media (max-width: 992px) {
    .nav-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .primary-nav,
    .nav-icons {
        justify-content: center;
    }
} */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .swiper-slide,
  .logo-marquee-track,
  .announcement-track {
    animation: none !important;
    transition: none !important;
  }

  .hero-content {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .top-contact {
    display: none;
  }

  /* .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: flex;
    } */

  .footer-bottom-right {
    width: 100%;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .hero-content {
    transition-duration: 0.5s;
  }

  .swiper-slide-active .hero-content {
    transition-delay: 0.2s;
  }

  .announcement-track {
    animation-duration: 12s;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .newsletter-form input {
    min-width: 0;
    flex: 1 1 100%;
  }

  .newsletter-form button {
    width: 100%;
    text-align: center;
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .dashboard-card {
    padding: 1.5rem 1rem;
  }

  .dashboard-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .review-card {
    min-height: 260px;
    padding: 1.5rem;
  }

  .review-controls {
    bottom: -0.5rem;
  }

  .review-swiper {
    padding-bottom: 3rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* .brands-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .brands-section{
        padding: 1rem 0;
    } */

  .brand-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  /* .brand-item:nth-child(3n) {
        border-right: none;
    } */

  .brand-item:last-child {
    border-right: none;
  }

  .logo-marquee-section {
    padding: 1rem 0;
  }

  .featured-section {
    padding: 1rem 0 2.5rem;
  }

  .product-media {
    height: 200px;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .review-card {
    min-height: 240px;
    padding: 1.25rem;
  }

  .review-headline {
    font-size: 1rem;
    min-height: 2rem;
  }

  .review-text {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .review-swiper {
    padding-bottom: 2.5rem;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .review-controls {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1rem;
    justify-content: center;
  }

  /* .brands-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    } */

  .brand-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  /* .brand-item:nth-child(2n) {
        border-right: none;
    } */

  .brand-item:last-child {
    border-right: none;
  }
}

@media (max-width: 360px) {
  /* .brands-gallery {
        grid-template-columns: 1fr;
    } */
}

/* Contact Page Styles */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  /* background-color: var(--light); */
}

.page-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--dark);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--muted);
}

.contact-section {
  padding: 4rem 0 5rem;
  background-color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form-wrapper {
  max-width: 540px;
}

.contact-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--dark);
}

.contact-subheading {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.submit-button {
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  align-self: flex-start;
}

.submit-button:hover {
  background-color: #111;
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

.contact-info-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info-link {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info-link:hover {
  color: var(--primary);
}

.contact-link {
  color: var(--dark);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary);
}

.contact-info-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem; /* small spacing around separator */
}

.contact-separator {
  color: var(--muted);
  user-select: none;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--dark);
  transition: all 0.3s ease;
}

.social-icon:hover {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #fff;
}

.social-icon i {
  font-size: 1.1rem;
}

/* Contact Page Responsive Styles */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-section {
    padding: 3rem 0 4rem;
  }

  .contact-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 2rem 0 1.5rem;
  }

  .contact-heading {
    font-size: 1.5rem;
  }

  .contact-subheading {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .submit-button {
    width: 100%;
    text-align: center;
  }

  .contact-info-wrapper {
    gap: 2rem;
  }
}

/* ============================================
   CALCULATOR MODAL STYLES
   ============================================ */

.calculator-modal-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 4rem 0;
  background-color: #f8f6f3;
  scroll-margin-top: 100px;
  display: none;
  min-height: 600px;
}

.calculator-modal-content {
  max-width: 1200px;
  margin: 0 auto;
}

.calculator-modal-header {
  margin-bottom: 2rem;
}

.close-calculator-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  background-color: #111;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* .close-calculator-btn:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
} */

.close-calculator-btn i {
  font-size: 1rem;
}

.calculator-modal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.calculator-modal-main {
  background-color: #fff;
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.calculator-modal-title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
}

.calculator-modal-body {
  min-height: 300px;
}

/* Calculator Form Styles */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}

.calc-input,
.calc-select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.calc-input:focus,
.calc-select:focus {
  outline: none;
  border-color: var(--primary);
}

.calc-input::placeholder {
  color: #999;
}

.calc-button {
  padding: 0.65rem 1.4rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-button:hover {
  background-color: #111;
  transform: translateY(-2px);
}

.calc-button:active {
  transform: translateY(0);
}

.calc-result {
  padding: 0.65rem 1.4rem;
  background-color: #f8f6f3;
  border-radius: 4px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--dark);
}

.calc-result p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.calc-result-large {
  font-size: 1.5rem !important;
  font-weight: 700;
  color: var(--primary);
}

.calc-error {
  color: #ef4444;
  font-weight: 600;
}

.calc-info-box {
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.calc-warning {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
}

.calc-info-box h4 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ef4444;
}

.calc-info-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.calc-info-heading {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.calc-info-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.calc-info-list {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
  list-style: disc;
}

.calc-info-list li {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.calc-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Calculator Sidebar (History) */
.calculator-modal-sidebar {
  background-color: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-height: 600px;
  overflow-y: auto;
}

.calculator-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calculator-history-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.clear-history-btn {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-history-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

.calculator-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  padding: 1rem;
  background-color: #f8f6f3;
  border-radius: 4px;
}

.history-calc-name {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.history-inputs {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.history-result {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dark);
}

.history-result p {
  margin: 0.25rem 0;
}

.history-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* Dashboard Card Hover Effect */
.dashboard-card.calculator-trigger {
  cursor: pointer;
}

.dashboard-card.calculator-trigger:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .calculator-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .calculator-modal-main {
    padding: 2rem;
  }

  .calculator-modal-sidebar {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .calculator-modal-section {
    padding: 2rem 0 3rem;
  }

  .calculator-modal-main {
    padding: 1.5rem;
  }

  .calculator-modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .calc-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .calculator-modal-sidebar {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .calculator-modal-section {
    padding: 1.5rem 0 2rem;
  }

  .calculator-container-wrapper {
    margin-top: 2rem;
  }

  .calculator-modal-main,
  .calculator-modal-sidebar {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .calculator-modal-title {
    font-size: 1.25rem;
  }

  .calc-input,
  .calc-select {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }

  .calc-button {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .close-calculator-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
  }

  .calculator-history-header h3 {
    font-size: 1.1rem;
  }

  .clear-history-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .review-section {
    padding: 2rem 0;
  }
}

/* Smooth transitions for calculator appearance */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-modal-section.active {
  display: block;
  animation: slideDown 0.4s ease forwards;
}

/* ============================================
   STORE LOCATOR PAGE STYLES - FIXED VERSION
   ============================================ */

.stores-section {
  padding: 4rem 0 5rem;
  background-color: #fff;
}

.stores-description {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 3rem;
  max-width: 800px;
}

.stores-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-accordion-item {
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--border);
}

.store-accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: left;
}

.store-accordion-header:hover {
  background-color: #6d1f1c;
}

.store-accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.store-accordion-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.store-accordion-content {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* REMOVED max-height limitation - this was causing the issue */
/* .store-accordion-item.active .store-accordion-content {
    max-height: 2000px;
} */

.store-cities-view {
  padding: 1.5rem;
}

.store-cities-label {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.store-cities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-city-item {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: #f8f6f3;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 1rem;
  color: var(--dark);
}

.store-city-item:hover {
  background-color: #f0eeeb;
  border-color: var(--primary);
  transform: translateX(4px);
}

.store-city-item i {
  font-size: 1.2rem;
  color: var(--primary);
}

.store-stores-view {
  padding: 1.5rem;
}

.store-stores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-stores-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

.store-city-name {
  color: var(--primary);
}

.store-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.store-back-button:hover {
  transform: translateX(-2px);
}

.store-back-button i {
  font-size: 1rem;
}

.store-stores-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Add max-height with scroll for stores list if needed */
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom scrollbar for stores list */
.store-stores-list::-webkit-scrollbar {
  width: 6px;
}

.store-stores-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.store-stores-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.store-stores-list::-webkit-scrollbar-thumb:hover {
  background: #6d1f1c;
}

.store-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.store-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.store-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-owner,
.store-phone,
.store-address {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark);
}

.store-owner strong,
.store-phone strong,
.store-address strong {
  color: var(--dark);
  font-weight: 600;
}

.store-phone a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.store-phone a:hover {
  color: #6d1f1c;
  text-decoration: underline;
}

/* Store Locator Responsive Styles */
@media (max-width: 768px) {
  .stores-section {
    padding: 3rem 0 4rem;
  }

  .stores-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .store-accordion-header {
    padding: 1rem 1.25rem;
  }

  .store-accordion-title {
    font-size: 1rem;
  }

  .store-cities-view,
  .store-stores-view {
    padding: 1.25rem;
    transition: opacity 0.3s ease;
  }

  .store-stores-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-back-button {
    width: 100%;
    justify-content: center;
  }

  .store-card {
    padding: 1.25rem;
  }

  .store-stores-list {
    max-height: 500px;
  }
}

@media (max-width: 576px) {
  .stores-section {
    padding: 2rem 0 3rem;
  }

  .stores-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .store-accordion-header {
    padding: 0.9rem 1rem;
  }

  .store-accordion-title {
    font-size: 0.95rem;
  }

  .store-cities-view,
  .store-stores-view {
    padding: 1rem;
  }

  .store-city-item {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .store-stores-title {
    font-size: 1rem;
  }

  .store-back-button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .store-card {
    padding: 1rem;
  }

  .store-owner,
  .store-phone,
  .store-address {
    font-size: 0.9rem;
  }

  .store-stores-list {
    max-height: 400px;
  }
}
/* ==================== COLLECTION BANNER SECTION ==================== */
.collection-banner-section {
  padding: 3rem 0 0;
  /* background-color: #f8f8f8; */
}

.collection-banner-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
}

.collection-banner-part {
  position: relative;
  height: 0;
  padding-bottom: 100%; /* Creates a square (1:1 aspect ratio) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Fallback background color if images don't load */
.collection-banner-part:nth-child(1) {
  background-color: #8b4513;
}

.collection-banner-part:nth-child(2) {
  background-color: #a0522d;
}

.collection-banner-part:nth-child(3) {
  background-color: #cd853f;
}

/* Dark Overlay */
.collection-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

/* Content Positioning */
.collection-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 2rem;
  z-index: 2;
  text-align: left;
}

.collection-banner-title {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.collection-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid #ffffff;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: transparent;
  cursor: pointer;
}

.collection-banner-link:hover {
  background-color: var(--primary, #852723);
  border-color: var(--primary, #852723);
  transform: translateX(5px);
}

.collection-banner-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.collection-banner-link:hover i {
  transform: translateX(5px);
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet View */
@media (max-width: 1024px) {
  .collection-banner-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .collection-banner-part {
    padding-bottom: 100%;
    height: 0;
  }

  .collection-banner-content {
    padding: 2rem 1.5rem;
  }

  .collection-banner-title {
    font-size: 1.5rem;
  }
}

/* Mobile View - Stacked Layout */
@media (max-width: 768px) {
  .collection-banner-section {
    padding: 2rem 0;
  }

  .collection-banner-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .collection-banner-part {
    padding-bottom: 100%;
    height: 0;
    border-radius: 12px;
  }

  .collection-banner-content {
    padding: 1.75rem 1.5rem;
  }

  .collection-banner-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .collection-banner-link {
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .collection-banner-part {
    padding-bottom: 100%;
    height: 0;
  }

  .collection-banner-content {
    padding: 1.5rem 1.25rem;
  }

  .collection-banner-title {
    font-size: 1.35rem;
  }

  .collection-banner-link {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

/* ==================== CART DRAWER ==================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: min(400px, 90%);
    height: 100%;
    background-color: #fff;
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-cart {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.close-cart:hover {
    background-color: #f5f5f5;
}



/* Disabled Attribute Options */
.attribute-option-display.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f5f5f5;
    color: #ccc;
    border-color: #e0e0e0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #6a1f1c;
    border-color: #6a1f1c;
}


/* ==================== FORMS & AUTH ==================== */

/* Auth Pages (Login/Register) */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.auth-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-error {
    color: #ef4444;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* General Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkout Specifics */
.checkout-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.checkout-summary {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.summary-title {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    font-size: 1.25rem;
}

.summary-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
}

.summary-item-price {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

.empty-checkout {
    text-align: center;
    padding: 3rem 0;
}

.empty-checkout i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .checkout-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
        align-items: stretch;
    }
    
    .checkout-form-section, 
    .checkout-summary {
        width: 100%;
        max-width: 100%;
    }

    .auth-container {
        margin: 2rem auto;
        width: 90%;
        padding: 1.5rem;
    }
    .checkout-summary{
      padding: 1rem;
    }
}

/* ============================================
   POLICY PAGES (Refund, Terms, Privacy, etc.)
   ============================================ */
.policy-page {
    padding: 60px 0;
    background-color: #f9fafb;
}

.policy-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    max-width: 900px;
    margin: 0 auto;
}

.policy-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    text-align: center;
}

.policy-last-updated {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
    display: block;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.policy-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 20px 0 10px;
}

.policy-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.policy-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.policy-section ul li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 8px;
    list-style-type: disc;
}

.policy-section a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-section a:hover {
    color: var(--dark);
}

@media (max-width: 768px) {
    .policy-content {
        padding: 25px;
    }
    
    .policy-content h1 {
        font-size: 1.8rem;
    }
}
