/**
 * Doha Curtains - Storefront Application Styles
 * Premium Interior Design Theme
 * Project Root: e:\oman web
 */

/* ==========================================================================
   1. Header / Navigation
   ========================================================================== */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

/* Header Top Bar */
.header__top {
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  line-height: 1.4;
}

.header__top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header__contact-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header__top-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--transition-fast);
}

.header__top-link:hover {
  color: var(--color-accent-light);
}

.header__top-link svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.header__top-badge {
  color: var(--color-accent-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Header Main Row */
.header__main {
  padding: 1rem 0;
  position: relative;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.header__logo-accent {
  color: var(--color-accent);
  font-weight: 600;
  font-style: italic;
  margin-left: 0.2rem;
}

.header__search {
  flex: 1;
  max-width: 28rem;
  position: relative;
}

.header__search-form {
  position: relative;
  width: 100%;
}

.header__search-input {
  width: 100%;
  padding: 0.625rem 2.75rem 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  background-color: var(--color-bg-warm);
  transition: all var(--transition-fast);
  outline: none;
}

.header__search-input:focus {
  background-color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 88, 163, 0.15);
}

.header__search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color var(--transition-fast);
}

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

.header__search-btn svg {
  width: 18px;
  height: 18px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

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

.header__action svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.header__cart-count {
  position: absolute;
  top: -4px;
  right: 0px;
  background-color: var(--color-accent);
  color: #ffffff;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

/* Navigation Bar */
.header__nav {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  position: relative;
}

.nav__list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__item {
  position: static;
}

.nav__item > a {
  display: block;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}

.nav__item:hover > a,
.nav__item--active > a {
  color: var(--color-accent);
}

/* ==========================================================================
   2. Mega Menu
   ========================================================================== */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-accent);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem 0;
  display: none;
  z-index: var(--z-dropdown);
  animation: fadeIn 200ms ease;
}

.nav__item:hover .mega-menu {
  display: block;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.mega-menu__column {
  display: flex;
  flex-direction: column;
}

.mega-menu__title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.875rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.mega-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu__link {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.mega-menu__link:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* ==========================================================================
   3. Mobile Navigation
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--color-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(2px);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background-color: #ffffff;
  z-index: var(--z-modal);
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__close {
  background: none;
  border: none;
  padding: 0.25rem;
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-nav__search {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-warm);
}

.mobile-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.mobile-nav__link {
  display: block;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  background-color: var(--color-bg-warm);
  color: var(--color-accent);
}

.mobile-nav__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-warm);
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--color-bg-warm);
  min-height: 520px;
  height: 65vh;
  max-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 248, 245, 0.96) 0%, rgba(250, 248, 245, 0.85) 45%, rgba(250, 248, 245, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem 0;
}

.hero__tagline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. Category Grid
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all var(--transition-slow);
  cursor: pointer;
  border: 1px solid var(--color-border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-accent);
  background-color: #ffffff;
}

.category-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--color-accent);
  opacity: 0.85;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.category-card:hover .category-card__icon {
  transform: scale(1.1);
  opacity: 1;
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.category-card__count {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* ==========================================================================
   6. Product Grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ==========================================================================
   7. Product Detail Page
   ========================================================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 6rem;
}

.product-gallery__main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  position: relative;
  cursor: zoom-in;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-gallery__main svg {
  width: 72px;
  height: 72px;
  color: var(--color-text-light);
  opacity: 0.4;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.product-gallery__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.product-gallery__thumb:hover {
  border-color: var(--color-accent-light);
}

.product-gallery__thumb--active {
  border-color: var(--color-accent);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumb svg {
  width: 32px;
  height: 32px;
  color: var(--color-text-light);
  opacity: 0.5;
}

.product-info {
  padding-top: 0.5rem;
}

.product-info__category {
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-info__name {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0.5rem 0 1rem;
  color: var(--color-primary);
  line-height: 1.25;
}

.product-info__price-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.product-info__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-info__sku {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.product-info__desc {
  line-height: 1.7;
  color: var(--color-text);
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

/* ==========================================================================
   8. Flooring Calculator Widget
   ========================================================================== */
.calc-widget {
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border-warm);
  margin: 1.75rem 0;
}

.calc-widget__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-widget__row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.calc-widget__input {
  width: 130px;
}

.calc-widget__waste-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.calc-widget__waste-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-widget__waste-btn.is-selected {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.calc-widget__result {
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 1.25rem;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-widget__result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.calc-widget__result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding-top: 0.625rem;
  margin-top: 0.25rem;
}

.calc-widget__waste {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* ==========================================================================
   9. Variations (Color & Size)
   ========================================================================== */
.variation-group {
  margin-bottom: 1.5rem;
}

.variation-group__label {
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
}

.variation-group__label-val {
  font-weight: 600;
  color: var(--color-primary);
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.variation-option {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  background-color: #ffffff;
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.variation-option:hover {
  border-color: var(--color-accent);
}

.variation-option--active {
  border-color: var(--color-accent);
  background-color: rgba(196, 163, 90, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

.variation-color {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  padding: 0;
}

.variation-color:hover {
  transform: scale(1.1);
}

.variation-color--active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--color-accent);
}

/* ==========================================================================
   10. Cart Page
   ========================================================================== */
.cart-page {
  max-width: 1040px;
  margin: 0 auto;
}

.cart-table {
  width: 100%;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-warm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__image svg {
  width: 32px;
  height: 32px;
  color: var(--color-text-light);
  opacity: 0.4;
}

.cart-item__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  display: block;
}

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

.cart-item__meta {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.cart-item__quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #ffffff;
}

.cart-item__qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-warm);
  border: none;
  cursor: pointer;
  color: var(--color-text);
  transition: background-color var(--transition-fast);
}

.cart-item__qty-btn:hover {
  background-color: #eee8de;
}

.cart-item__qty-input {
  width: 3.25rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  height: 2.25rem;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-item__price {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-primary);
  min-width: 90px;
  text-align: right;
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}

.cart-item__remove:hover {
  color: var(--color-error);
}

.cart-summary {
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
  border: 1px solid var(--color-border-warm);
}

.cart-summary__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.cart-summary__total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  border-top: 2px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 0.75rem;
}

/* Mini Cart Dropdown */
.mini-cart {
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  z-index: var(--z-dropdown);
  display: none;
}

.mini-cart.is-open {
  display: block;
  animation: fadeIn 200ms ease;
}

.mini-cart__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

/* ==========================================================================
   11. Checkout Page
   ========================================================================== */
.checkout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.checkout__section {
  margin-bottom: 2.5rem;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
}

.checkout__section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout__order-summary {
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 6rem;
  border: 1px solid var(--color-border-warm);
}

.checkout__order-item {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  align-items: center;
}

.checkout__order-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.checkout__order-item-info {
  flex: 1;
  min-width: 0;
}

.checkout__order-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* GPS Button & Map */
.gps-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  background-color: #eff6ff;
  color: var(--color-info);
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.gps-button:hover {
  background-color: #dbeafe;
  border-color: #93c5fd;
}

.gps-button svg {
  width: 20px;
  height: 20px;
}

.gps-map {
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-warm);
}

.gps-status {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   12. Customer Account
   ========================================================================== */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.account-sidebar {
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border-warm);
  height: fit-content;
}

.account-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.account-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.account-sidebar__link:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--color-primary);
}

.account-sidebar__link--active {
  background-color: #ffffff;
  color: var(--color-accent);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.account-sidebar__link svg {
  width: 18px;
  height: 18px;
}

.account-content {
  min-width: 0;
}

.order-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background-color: #ffffff;
  transition: box-shadow var(--transition-fast);
}

.order-card:hover {
  box-shadow: var(--shadow-sm);
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   13. Auth Pages (Login / Register)
   ========================================================================== */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background-color: var(--color-bg-warm);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-card__title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 1.625rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.auth-card__subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.auth-card__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   14. Search Results Page
   ========================================================================== */
.search-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.search-header__count {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.footer {
  background-color: var(--color-primary);
  color: #ffffff;
  padding-top: 4.5rem;
  margin-top: auto;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer__about {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

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

.footer__link {
  display: block;
  padding: 0.375rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.footer__link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer__social a {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.footer__social a:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating WhatsApp Button */
.footer__whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  z-index: 50;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.footer__whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.footer__whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 49;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* ==========================================================================
   16. Page & Section Headers
   ========================================================================== */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.page-header__subtitle {
  color: var(--color-text-light);
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0;
  color: var(--color-primary);
}

.section__subtitle {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.section__link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.section__link:hover {
  gap: 0.625rem;
  color: var(--color-accent-dark);
}

.section__link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   17. Homepage Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--color-accent);
}

.feature-item__title {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.feature-item__text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ==========================================================================
   18. Filters Sidebar
   ========================================================================== */
.filters {
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border-warm);
}

.filter-group {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group__title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.875rem;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.price-range__input {
  width: 100%;
}

.price-range__sep {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ==========================================================================
   19. Category Page Layout
   ========================================================================== */
.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.25rem;
  align-items: start;
}

.filter-toggle {
  display: none;
}

/* ==========================================================================
   20. Responsive Overrides & Viewport Media Queries
   ========================================================================== */

/* Tablet & Smaller (< 1024px) */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .checkout {
    grid-template-columns: 1fr 340px;
    gap: 1.75rem;
  }
}

/* Mobile & Tablet (< 768px) */
@media (max-width: 768px) {
  .header__top {
    font-size: 0.75rem;
  }

  .header__contact-links {
    gap: 0.75rem;
  }

  .header__top-badge {
    display: none;
  }

  .header__search {
    display: none; /* Accessible via mobile nav search */
  }

  .header__nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 420px;
    height: auto;
    padding: 3rem 0;
    text-align: center;
  }

  .hero::before {
    background: rgba(250, 248, 245, 0.92);
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    padding: 1.75rem 1rem;
  }

  .category-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    position: static;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    position: relative;
    padding: 1.25rem 0;
  }

  .cart-item__actions-mobile {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
  }

  .checkout {
    grid-template-columns: 1fr;
  }

  .checkout__order-summary {
    position: static;
    margin-top: 1rem;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-layout {
    grid-template-columns: 1fr;
  }

  .filter-toggle {
    display: inline-flex;
    margin-bottom: 1.25rem;
  }

  .filters.is-collapsible {
    display: none;
  }

  .filters.is-collapsible.is-open {
    display: block;
    margin-bottom: 1.5rem;
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .calc-widget__row {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-widget__input {
    width: 100%;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .header__actions {
    gap: 0.75rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
  }

  .footer__whatsapp {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }

  .footer__whatsapp svg {
    width: 28px;
    height: 28px;
  }

  .back-to-top {
    bottom: 4.75rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   20. IKEA Scandinavian Professional Design System & Enhancements
   ========================================================================== */
.font-ikea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* IKEA Product Card */
.ikea-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.ikea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* IKEA Button System */
.btn-ikea-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #111111;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-ikea-black:hover {
  background-color: #333333;
  color: #ffffff;
}

.btn-ikea-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0058a3;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-ikea-blue:hover {
  background-color: #004f93;
  color: #ffffff;
}

.btn-ikea-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffdb00;
  color: #111111;
  border-radius: 9999px;
  font-weight: 800;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-ikea-yellow:hover {
  background-color: #f5d200;
  color: #111111;
}

.btn-ikea-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #111111;
  border-radius: 9999px;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid #111111;
}

.btn-ikea-outline:hover {
  background-color: #f5f5f5;
  color: #111111;
}

/* Custom Horizontal Scrollbar for Department Bubbles */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

