/* ============================================================
   ORDERS LANKA — Custom CSS (replaces Tailwind)
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  --color-bg: hsl(40, 20%, 98%);
  --color-fg: hsl(220, 20%, 10%);
  --color-card: hsl(0, 0%, 100%);
  --color-primary: hsl(220, 20%, 12%);
  --color-primary-fg: hsl(40, 20%, 98%);
  --color-secondary: hsl(35, 60%, 52%);
  --color-accent: hsl(35, 80%, 55%);
  --color-accent-fg: hsl(0, 0%, 100%);
  --color-muted: hsl(40, 15%, 94%);
  --color-muted-fg: hsl(220, 10%, 46%);
  --color-border: hsl(40, 15%, 90%);
  --color-destructive: hsl(0, 72%, 51%);
  --radius: 0.75rem;
  --shadow-card: 0 4px 24px -4px hsla(220, 20%, 10%, 0.08);
  --shadow-card-hover: 0 12px 32px -8px hsla(220, 20%, 10%, 0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --hero-gradient: linear-gradient(135deg, hsla(35, 80%, 55%, 0.1), hsl(40, 20%, 98%));
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font-family: var(--font-body);
}

button {
  cursor: pointer;
}

svg {
  display: inline-block;
  vertical-align: middle;
}


.ko1 {
  font-family: var(--font-default);
  color: red;
  font-size: 12px;
}
.ko0{
  font-family: var(--font-default);
  color: red;
  font-size: 15px;
  text-align: center;
  margin: 10px 0;
}

.ok1 {
  font-family: var(--font-default);
  color: green;
  font-size: 15px;
  text-align: center;
  margin: 10px 0;
}

.e1{
  text-align: center;
  color: green;
}
/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

/* === TOPBAR === */
.topbar {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
  font-size: 0.75rem;
}

.topbar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-socials a {
  color: var(--color-primary-fg);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.topbar-socials a:hover {
  color: var(--color-accent);
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .navbar-logo {
    font-size: 2rem;
  }
}

.navbar-desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.navbar-desktop-srch {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-muted);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  width: 16rem;
}

.navbar-desktop-auth {
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .navbar-desktop-nav {
    display: flex;
  }

  .navbar-desktop-srch {
    display: flex;
  }

  .navbar-desktop-auth {
    display: flex;
  }
}

.navbar-desktop-nav a {
  transition: color 0.2s;
  color: var(--color-muted-fg);
}

.navbar-desktop-nav a.nav-active,
.navbar-desktop-nav a:hover {
  color: var(--color-accent);
}

.navbar-desktop-nav a.nav-home {
  color: var(--color-fg);
}

.navbar-desktop-srch input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
  color: var(--color-fg);
}

.navbar-desktop-srch input::placeholder {
  color: var(--color-muted-fg);
}

.navbar-desktop-auth a {
  color: var(--color-muted-fg);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}

.navbar-desktop-auth a:hover {
  color: var(--color-fg);
}

/* Mobile toggle */
.navbar-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--color-fg);
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

/* Mobile menu */
.navbar-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 1rem 1.5rem 1.5rem;
}

.navbar-mobile.open {
  display: block;
}

.navbar-mobile-srch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-muted);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.navbar-mobile-srch input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
  color: var(--color-fg);
}

.navbar-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.navbar-mobile nav a {
  color: var(--color-muted-fg);
  transition: color 0.2s;
}

.navbar-mobile nav a:first-child {
  color: var(--color-fg);
}

.navbar-mobile-auth {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.875rem;
}

.navbar-mobile-auth a {
  color: var(--color-muted-fg);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

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

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.btn-primary-sm:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  background: transparent;
  transition: background-color 0.2s;
  cursor: pointer;
}

.btn-outline-sm:hover {
  background: var(--color-muted);
}

/* === FEATURES BAR === */
.features-bar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-card);
}

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

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  flex-shrink: 0;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: hsla(35, 80%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
}

.feature-desc {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

/* === HERO === */
.hero {
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    padding-block: 6rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-fg);
  line-height: 1;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 7rem;
  }
}

.hero-desc {
  color: var(--color-muted-fg);
  font-size: 1.125rem;
  max-width: 28rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 28rem;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-left {
  opacity: 0;
  transform: translateX(-1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right {
  opacity: 0;
  transform: translateX(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: none;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.05s;
}

.delay-2 {
  transition-delay: 0.1s;
}

.delay-3 {
  transition-delay: 0.15s;
}

.delay-4 {
  transition-delay: 0.2s;
}

.delay-5 {
  transition-delay: 0.25s;
}

.delay-6 {
  transition-delay: 0.3s;
}

.delay-7 {
  transition-delay: 0.35s;
}

.delay-8 {
  transition-delay: 0.4s;
}

/* === BUSINESS CARDS === */
.business-cards {
  background: var(--color-primary);
  padding-block: 4rem;
}

.biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .biz-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.biz-card {
  position: relative;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s;
}

.biz-card:hover {
  transform: translateY(-4px);
}

.biz-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: hsla(220, 20%, 12%, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.biz-card:hover::after {
  opacity: 1;
}

.biz-card-1 {
  background: linear-gradient(135deg, hsl(220, 20%, 12%), hsl(220, 20%, 22%));
}

.biz-card-2 {
  background: linear-gradient(135deg, hsl(35, 60%, 52%), hsl(35, 80%, 55%));
}

.biz-card-3 {
  background: linear-gradient(135deg, hsl(35, 80%, 55%), hsl(35, 60%, 52%));
}

.biz-card-icon {
  color: var(--color-primary-fg);
  position: relative;
  z-index: 1;
}

.biz-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-fg);
  position: relative;
  z-index: 1;
}

.biz-card-link {
  color: hsla(40, 20%, 98%, 0.7);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

/* === SECTION HEADINGS === */
.section-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.5rem;
  }
}

.section-desc {
  color: var(--color-muted-fg);
  margin-top: 0.75rem;
}

.text-center {
  text-align: center;
}

/* === BEST SELLING === */
.best-selling {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .best-selling {
    padding-block: 6rem;
  }
}

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

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

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

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

.mb-12 {
  margin-bottom: 3rem;
}

/* === PRODUCT CARD === */
.product-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--color-muted);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.badge-new {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-accent-fg);
}

.product-card-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

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

.product-card-info {
  padding: 1rem;
}

.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.product-old-price {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  text-decoration: line-through;
}

/* === CATEGORIES SECTION === */
.categories-section {
  padding-block: 4rem;
  background: hsla(40, 15%, 94%, 0.5);
}

@media (min-width: 768px) {
  .categories-section {
    padding-block: 6rem;
  }
}

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

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-fg);
  transition: box-shadow 0.3s, transform 0.3s;
}

.category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.category-icon {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: hsla(35, 80%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: background 0.2s;
  flex-shrink: 0;
}

.category-card:hover .category-icon {
  background: hsla(35, 80%, 55%, 0.2);
}

.category-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.3;
  transition: color 0.2s;
}

.category-card:hover .category-name {
  color: var(--color-accent);
}

/* === FOOTER === */
.footer {
  background: var(--color-primary);
  color: var(--color-primary-fg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: hsla(40, 20%, 98%, 0.7);
  line-height: 1.7;
}

.footer-col h4 {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsla(40, 20%, 98%, 0.7);
  transition: color 0.2s;
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-list p {
  font-size: 0.875rem;
  color: hsla(40, 20%, 98%, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social-btn {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: hsla(40, 20%, 98%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-fg);
  text-decoration: none;
  transition: background 0.2s;
}

.footer-social-btn:hover {
  background: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid hsla(40, 20%, 98%, 0.1);
}

.footer-bottom p {
  padding-block: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsla(40, 20%, 98%, 0.5);
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  padding-block: 1rem;
  flex-wrap: wrap;
}

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

.breadcrumb .crumb-current {
  color: var(--color-fg);
  font-weight: 500;
}

.breadcrumb .crumb-active {
  color: var(--color-accent);
  font-weight: 500;
}

/* === SHOP PAGE === */
.shop-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .shop-layout {
    flex-direction: row;
  }
}

.shop-sidebar {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .shop-sidebar {
    width: 16rem;
  }
}

.shop-main {
  flex: 1;
}

.shop-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.shop-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .shop-title {
    font-size: 2rem;
  }
}

.shop-count {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-top: 0.25rem;
}

.shop-empty {
  text-align: center;
  padding-block: 5rem;
  color: var(--color-muted-fg);
  font-size: 1.125rem;
}

/* === CATEGORY SIDEBAR === */
.cat-sidebar {
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.cat-sidebar-hd {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--color-primary);
  padding: 1rem 1.25rem;
  border: none;
  cursor: default;
  text-align: left;
  font: inherit;
  color: inherit;
}

.cat-sidebar-hd h3 {
  margin: 0;
  color: var(--color-primary-fg);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-sidebar-hd-chevron {
  flex-shrink: 0;
  color: var(--color-primary-fg);
  opacity: 0.85;
  transition: transform 0.2s;
}

@media (min-width: 1024px) {
  .cat-sidebar-hd-chevron {
    display: none;
  }
}

@media (max-width: 1023px) {
  .cat-sidebar-hd {
    cursor: pointer;
  }

  .cat-sidebar > nav {
    display: none;
  }

  .shop-sidebar.is-open .cat-sidebar > nav {
    display: block;
  }

  .cat-sidebar-hd[aria-expanded="true"] .cat-sidebar-hd-chevron {
    transform: rotate(180deg);
  }

  .shop-sidebar .cat-subs.open {
    display: none;
  }

  .shop-sidebar .cat-subs.open.is-expanded {
    display: block;
  }
}

.cat-item {
  border-top: 1px solid var(--color-border);
}

.cat-item:first-child {
  border-top: none;
}

.cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-fg);
  transition: background 0.2s, color 0.2s;
  text-align: left;
}

.cat-btn:hover {
  background: hsla(40, 15%, 94%, 0.5);
}

.cat-btn.active {
  background: hsla(35, 80%, 55%, 0.1);
  color: var(--color-accent);
}

.cat-btn-lft {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cat-btn-lft svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.cat-chevron {
  transition: transform 0.2s;
  color: var(--color-muted-fg);
  flex-shrink: 0;
}

.cat-chevron.open {
  transform: rotate(180deg);
}

.cat-subs {
  display: none;
  padding: 0.5rem 1.25rem 0.75rem;
  border-top: 1px solid var(--color-border);
  background: hsla(40, 15%, 94%, 0.3);
}

.cat-subs.open {
  display: block;
}

.cat-sub-btn {
  width: 100%;
  text-align: left;
  padding: 0.375rem 0 0.375rem 1.75rem;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  font-family: inherit;
}

.cat-sub-btn-all {
  font-weight: 500;
  color: var(--color-fg);
}

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

.cat-sub-btn.active {
  color: var(--color-accent);
  font-weight: 600;
}

.cat-sub-count {
  color: var(--color-muted-fg);
  opacity: 0.6;
}

#shop-products.shop-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* === CONTACT PAGE === */
.contact-hero {
  padding-block: 3rem;
  background: var(--hero-gradient);
}

@media (min-width: 768px) {
  .contact-hero {
    padding-block: 4rem;
  }
}

.contact-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }
}

.contact-hero p {
  color: var(--color-muted-fg);
  max-width: 32rem;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 56rem;
  margin-inline: auto;
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
    padding-block: 4rem;
  }
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 1.25rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-fg);
  text-decoration: none;
}

.contact-info-icon {
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: hsla(35, 80%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: background 0.2s;
}

.contact-info-link:hover .contact-info-icon {
  background: hsla(35, 80%, 55%, 0.2);
}

.contact-info-label {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

.contact-info-val {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
}

.contact-socials-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-fg);
  margin-bottom: 0.75rem;
}

.contact-social-row {
  display: flex;
  gap: 0.75rem;
}

.contact-social-btn {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-fg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.contact-social-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Contact Form */
.contact-form-card {
  background: var(--color-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 2rem;
  }
}

.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted-fg);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 0.25rem);
  background: transparent;
  font-size: 0.875rem;
  color: var(--color-fg);
  outline: none;
  transition: border-color 0.2s;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted-fg);
}

.form-textarea {
  resize: none;
}

.btn-submit {
  width: 100%;
  border-radius: 9999px;
}

/* === TOAST === */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-card-hover);
  pointer-events: all;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 20rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  border-left: 3px solid #22c55e;
}

.toast.error {
  border-left: 3px solid var(--color-destructive);
}

/* === PLACE ORDER PAGE === */
.page-layout-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 1.5rem 4rem;
}

@media (min-width: 1024px) {
  .page-layout-2col {
    grid-template-columns: 2fr 1fr;
  }
}

.store-header-card {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.store-avatar {
  margin-inline: auto;
  height: 5rem;
  width: 5rem;
  border-radius: 9999px;
  background: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.store-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
}

.store-loc {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.card-base {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.product-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  color: var(--color-fg);
}

.product-row:hover {
  background: hsla(40, 15%, 94%, 0.5);
}

.product-row-img {
  height: 4rem;
  width: 4rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--color-muted);
  flex-shrink: 0;
}

.product-row-info {
  flex: 1;
  min-width: 0;
}

.product-row-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-row-id {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

.product-row-price {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-row-badge {
  background: var(--color-accent);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  flex-shrink: 0;
}

.product-row-chevron {
  color: var(--color-muted-fg);
  flex-shrink: 0;
}

.product-expand {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}

.product-expand.open {
  display: block;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.qty-label {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: pointer;
  color: var(--color-fg);
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--color-muted);
}

.qty-val {
  font-size: 0.875rem;
  font-weight: 600;
  width: 2rem;
  text-align: center;
  color: var(--color-fg);
}

.qty-avail {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

.notes-label {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.375rem;
}

/* === ORDER SUMMARY SIDEBAR === */
.order-summary-card {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  position: sticky;
  top: 5.5rem;
}

.order-summary-card h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.order-count {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 1rem;
}

.coupon-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.coupon-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-fg);
  background: transparent;
  outline: none;
}

.coupon-row input:focus {
  border-color: var(--color-accent);
}

.separator {
  height: 1px;
  background: var(--color-border);
  margin-block: 0.75rem;
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  color: var(--color-muted-fg);
}

.total-row.final {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-fg);
}

.order-place-btn {
  width: 100%;
  margin-top: 1rem;
  border-radius: 9999px;
}

/* === DELIVERY DETAILS PAGE === */
.delivery-form-card {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.delivery-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-fg);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Delivery method radio labels */
.delivery-method-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.75rem;
}

.delivery-method-option:last-child {
  margin-bottom: 0;
}

.delivery-method-option.selected {
  border-color: var(--color-accent);
  background: hsla(35, 80%, 55%, 0.05);
}

.delivery-method-option input[type="radio"] {
  accent-color: var(--color-accent);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.delivery-method-info {
  flex: 1;
}

.delivery-method-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
}

.delivery-method-desc {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

.delivery-method-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
  flex-shrink: 0;
}

/* Order summary item */
.summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.summary-item-img {
  height: 3rem;
  width: 3rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--color-muted);
  flex-shrink: 0;
}

.summary-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.summary-item-qty {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

.summary-item-price {
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.confirm-btn {
  width: 100%;
  margin-top: 1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.secure-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

/* === 404 PAGE === */
.not-found {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  background: var(--color-muted);
}

.not-found-inner {
  text-align: center;
}

.not-found h1 {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.25rem;
  color: var(--color-muted-fg);
  margin-bottom: 1rem;
}

.not-found a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.not-found a:hover {
  opacity: 0.75;
}

/* === PRODUCT ROWS (place-order spacing) === */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* === DASHBOARD LAYOUT (Customer & Seller) === */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 2.5rem 4rem;
}

@media (min-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 280px 1fr;
  }
}

.dashboard-sidebar {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  align-self: start;
}

.dashboard-sidebar-hd {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.dashboard-sidebar-hd h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.dashboard-nav a:hover {
  background: var(--color-muted);
}

.dashboard-nav a.active {
  background: hsla(35, 80%, 55%, 0.1);
  color: var(--color-accent);
  border-color: hsla(35, 80%, 55%, 0.2);
}

.dashboard-nav a svg {
  flex-shrink: 0;
  color: inherit;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Dashboard Seller Info Profile */
.dashboard-seller-info {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dashboard-seller-info img {
  height: 5rem;
  width: 5rem;
  border-radius: 9999px;
  object-fit: cover;
  background: var(--color-muted);
  margin-bottom: 0.75rem;
}

.dashboard-seller-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
}

.dashboard-seller-info p {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

/* Dashboard Cards (Stats, Forms, Tables) */
.dashboard-card {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.dashboard-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 1.5rem;
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dashboard-stat-card {
  background: hsla(35, 80%, 55%, 0.1);
  border: 1px solid hsla(35, 80%, 55%, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
}

.dashboard-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
}

.dashboard-stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-top: 0.5rem;
}

.dashboard-stat-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  margin-top: 0.25rem;
}

/* Dashboard Table */
.dashboard-table-wrapper {
  overflow-x: auto;
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
}

@media (min-width: 640px) {
  .dashboard-table-wrapper {
    margin-inline: 0;
    padding-inline: 0;
  }
}

.dashboard-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
  min-width: 600px;
}

.dashboard-table th {
  text-align: left;
  padding-bottom: 0.75rem;
  font-weight: 500;
  color: var(--color-muted-fg);
  border-bottom: 1px solid var(--color-border);
}

.dashboard-table th.text-right {
  text-align: right;
}

.dashboard-table td {
  padding-block: 1rem;
  border-bottom: 1px solid hsla(40, 15%, 90%, 0.5);
}

.dashboard-table tr:last-child td {
  border-bottom: none;
}

.dashboard-table td.text-right {
  text-align: right;
}

.dashboard-table .td-medium {
  font-weight: 500;
  color: var(--color-fg);
}

.dashboard-table .td-muted {
  color: var(--color-muted-fg);
}

.dashboard-table .td-semibold {
  font-weight: 600;
  color: var(--color-fg);
}

.dashboard-badge-success {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: hsla(142, 71%, 45%, 0.1);
  color: hsl(142, 71%, 29%);
}

.dashboard-badge-pending {
  color: var(--color-accent);
  font-weight: 500;
}

.dashboard-badge-success-text {
  color: #16a34a;
  font-weight: 500;
}

.dashboard-action-btns {
  display: inline-flex;
  gap: 0.5rem;
  color: var(--color-muted-fg);
}

.dashboard-action-btns button,
.dashboard-action-btns a {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

/* === AUTHENTICATION PAGES (Login / Signup) === */
.auth-layout {
  min-height: calc(100svh - 14rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 3rem;
}

.auth-card {
  width: 100%;
  max-width: 32rem;
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .auth-card {
    padding: 2.5rem;
  }
}

.auth-card.signup-card {
  max-width: 42rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-fg);
}

@media (min-width: 640px) {
  .auth-title {
    font-size: 2rem;
  }
}

.auth-desc {
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Role Toggle Buttons */
.role-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.role-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--color-muted);
  color: var(--color-muted-fg);
}

.role-toggle-btn:hover {
  background: hsla(40, 15%, 90%, 0.8);
}

.role-toggle-btn.active {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-form-links {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-form-links a {
  color: var(--color-accent);
  font-weight: 500;
  transition: text-decoration 0.2s;
}

.auth-form-links a:hover {
  text-decoration: underline;
}

.auth-form-links p {
  color: var(--color-muted-fg);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap .form-input {
  padding-right: 2.75rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-muted-fg);
  cursor: pointer;
  border-radius: calc(var(--radius) - 0.25rem);
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: var(--color-fg);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.password-toggle-btn .icon-eye-off {
  display: none;
}

.password-toggle-btn.is-showing .icon-eye {
  display: none;
}

.password-toggle-btn.is-showing .icon-eye-off {
  display: block;
}

/* === PRODUCT DETAILS PAGE === */
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .product-details-grid {
    grid-template-columns: 280px 1fr;
  }
}

.product-main-card {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-main-card {
    padding: 2rem;
    grid-template-columns: 1fr 1fr;
  }
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-img-main {
  aspect-ratio: 1/1;
  border-radius: 0.75rem;
  background: var(--color-muted);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-thumbnails {
  /* display: flex; */
  gap: 0.75rem;
}

.thumbnail-btn {
  height: 5rem;
  width: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--color-muted);
  padding: 0;
}

.thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-btn.active {
  border-color: var(--color-accent);
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-info-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .product-info-title {
    font-size: 1.875rem;
  }
}

.product-info-store {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.product-info-store a {
  color: var(--color-accent);
  font-weight: 600;
}

.product-info-store a:hover {
  text-decoration: underline;
}

.product-info-desc {
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  line-height: 1.7;
}

.product-info-qty {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.product-info-qty span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-fg);
}

.product-info-price-wrap {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.product-info-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Related Products */
.related-products-card {
  background: var(--color-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .related-products-card {
    padding: 2rem;
  }
}

.related-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 1.5rem;
}

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

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-item {
  text-decoration: none;
  display: block;
  group
}

.related-item-img {
  aspect-ratio: 1/1;
  border-radius: 0.75rem;
  background: var(--color-muted);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.related-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-item:hover .related-item-img img {
  transform: scale(1.05);
}

.related-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  /* white-space: nowrap; */
  margin-bottom: 0.25rem;
}

.related-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
}