/* =========================================================
* FILE NAME     : frontend.css
* FILE PATH     : /public/css/frontend.css
* PART          : 1 of 3
* DATE CREATED  : 2025-10-04
* LAST EDITED   : 2025-10-05
* AUTHOR        : Oluwasegun Dayo Ogunsola
* VERSION       : 1.4.0
* DESCRIPTION   : Core frontend stylesheet for Mamaßs Community Shop
* MODULES COVERED:
* - Branding tokens and color variables
* - Base reset and typography
* - Header layout and navigation
* - Icon styling and interaction
* - Language switcher and announcement bar
* ========================================================= */


/* ---------------- BRAND & THEME VARIABLES ---------------- */
:root{
  --brand-primary: #0B6E60;
  --brand-accent: #F29E4C;
  --surface: #ffffff;
  --bg: #FAFBFB;
  --text: #2E2E2E;
  --muted: #6C757D;
  --footer-bg: #081018;
  --footer-text: #BFC9D2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --gap: 1rem;
  --container-width: 1200px;
  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --shadow-soft: 0 8px 20px rgba(11,110,96,0.06);
  --easing: cubic-bezier(.2,.9,.3,1);
  --icon-size: 20px;
  --icon-bg: rgba(255,255,255,0.06);
  --icon-fg: #fff;
}

/* ---------------- BASE RESET & TYPOGRAPHY ---------------- */
* { box-sizing: border-box; }
html,body { 
	height:100%; 
}
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensures full viewport height */
}
.site-main {
  flex: 1; /* allows main content to grow and push footer down */
}

body{
  margin:0;
  font-family:var(--font-family);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  font-size:16px;
  -webkit-tap-highlight-color: transparent;
}

.container{ width: min(var(--container-width),95%); margin:0 auto; }

/* Headings */
h1,h2,h3,h4,h5{ margin:0 0 .5rem 0; color:var(--brand-primary); }
h1{ font-size:2rem; font-weight:700; }
h2{ font-size:1.6rem; font-weight:700; }
h3{ font-size:1.125rem; font-weight:700; }
h4{ font-size:1.08rem; font-weight:700; }

/* Paragraphs and links */
p{ margin:0 0 .75rem 0; color:var(--text); }
a{ color:var(--brand-primary); text-decoration:none; }
a:hover,a:focus{ text-decoration:underline; outline:none; }

/* Accessibility helper */
.sr-only{
  position:absolute!important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap;
}


/* =========================================================
* FILE NAME     : icon-links.css
* FILE PATH     : /public/css/icon-links.css
* PART          : Dedicated styling for wishlist and cart icons
* DATE CREATED  : 2025-10-06
* AUTHOR        : Oluwasegun Dayo Ogunsola
* VERSION       : 1.0.1
* DESCRIPTION   : Styles for top-right icon links (wishlist, cart)
* MODULES COVERED:
* - Icon layout and spacing
* - Hover effects and tooltips
* - Responsive alignment
* - SVG fill enforcement
* ========================================================= */

/* ---------------- ICON LINK WRAPPER ---------------- */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  margin-left: 0.75rem;
  border-radius: 8px;
  background: transparent;
  transition: background 0.2s ease;
  position: relative;
  text-decoration: none;
}

/* ---------------- ICON IMAGE ---------------- */
.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  fill: currentColor;
  color: #f2a65a !important;
}

/* ---------------- HOVER EFFECT ---------------- */
.icon-link:hover {
  background: rgba(242, 166, 90, 0.15);
}

.icon-link:hover .icon {
  color: #f89c3f !important;
}

/* ---------------- TOOLTIP ---------------- */
.icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #081018;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-link:hover::after {
  opacity: 1;
}

/* =========================================================
  MODULE       : Category Menu (Left Sidebar)
  FILE         : sidebar-categories.css
  PROJECT      : Mama Community Shop
  PURPOSE      : Beautify category menu; icons visible, hover state improved
  AUTHOR       : Oluwasegun Dayo Ogunsola
  VERSION      : 1.1.0
  CREATED      : 2025-10-XX
  ========================================================= */

/* -- Design Tokens -- */
:root {
  --brand-primary: #0B6E60;
  --brand-accent:  #E85A4F;
  --text:          #081018;
  --muted:         #5A5A5A;
  --surface:       #FFFFFF;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;

  --radius-sm: 4px;
}

/* -- Sidebar Wrapper -- */
.sidebar-left {
  background: var(--surface);
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid rgba(16,24,32,0.08);
  box-sizing: border-box;
}

/* -- Section Title -- */
.category-menu-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0 0 var(--space-md) 0;
}

/* -- Category List -- */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* -- Category Item -- */
.category-item {
  margin-bottom: var(--space-md);
}

/* -- Toggle Button -- */
.category-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-sm) 0;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

/* -- Toggle Button Hover & Active -- */
.category-toggle:hover,
.category-item.active > .category-toggle {
  color: var(--surface);
  background: var(--brand-primary);
}

/* -- Icon Container -- */
.category-toggle .icon,
.subcategory-list .sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: var(--space-sm);
}

/* -- Icon Coloring -- */
.category-toggle .icon img,
.subcategory-list .sub-icon img,
.category-toggle .toggle-icon img {
  display: block;
  width: 100%;
  height: 100%;
  /* forced brand tint for monochrome SVGs */
  filter: invert(30%) sepia(81%) saturate(451%) hue-rotate(154deg) brightness(95%) contrast(90%);
}

/* -- Category Label -- */
.category-label {
  flex: 1;
  text-align: left;
}

/* -- Chevron Toggle Icon -- */
.toggle-icon {
  margin-left: auto;
  transition: transform 200ms ease;
}
.category-item.active .toggle-icon {
  transform: rotate(90deg);
}

/* -- Subcategory List -- */
.subcategory-list {
  list-style: none;
  margin: var(--space-xs) 0 0 var(--space-lg);
  padding: 0;
}

/* -- Subcategory Items -- */
.subcategory-list li {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xs);
  padding: var(--space-xs) 0;
  color: var(--muted);
  font-weight: 500;
  transition: color 150ms ease, background 150ms ease;
  cursor: pointer;
}

/* -- Subcategory Hover -- */
.subcategory-list li:hover {
  background: var(--brand-primary);
  color: var(--surface);
  border-radius: var(--radius-sm);
  padding-left: var(--space-sm);
}

/* -- Hide hidden submenus -- */
.subcategory-list[hidden] {
  display: none !important;
}


/* ---------------- CENTER: PRODUCT GRID ---------------- 
Use a nested grid to adjust to available width; fallback 3 cols 
------------------------------------------------------- */ 
/* =========================================================
  MODULE       : Product Listing Module – Wide Screen CSS
  FILE         : product-module.css
  PROJECT      : Mama Community Shop
  PURPOSE      : Styles for widescreen product grid with enhanced UX
  AUTHOR       : Oluwasegun Dayo Ogunsola
  VERSION      : 1.0.0
  CREATED      : 2025-10-XX
  ========================================================= */

/* ---------------- VARIABLES & BASE SETUP ---------------- */
:root {
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --radius-sm: 4px;
  --radius-md: 8px;

  --brand-primary: #0B6E60;
  --brand-secondary: #F29E4C;
  --brand-accent: #E85A4F;

  --surface: #FFFFFF;
  --text: #081018;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text);
}

/* ---------------- MODULE WRAPPER ---------------- */
.product-module {
  width: 100%;
  padding: var(--space-xl) var(--space-lg);
  background: var(--surface);
  box-sizing: border-box;
}

/* Module Header */
.product-module-header {
  margin-bottom: var(--space-lg);
}
.module-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0;
}

/* ---------------- CENTER: PRODUCT GRID ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 cards per row */
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ---------------- PRODUCT CARD ---------------- */
.product-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ---------------- PRODUCT FLAGS ---------------- */
.product-flag {
  position: absolute;
  top: var(--space-sm);
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}
.product-flag.new {
  left: var(--space-sm);
  background: var(--brand-secondary);
}
.product-flag.sale {
  right: var(--space-sm);
  background: var(--brand-accent);
}

/* ---------------- WISHLIST & WATCHLIST ---------------- */
.product-badges {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
}
.wish-toggle,
.watch-toggle {
  background: var(--surface);
  border: 1px solid var(--brand-primary);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.wish-toggle:hover,
.watch-toggle:hover {
  background: var(--brand-primary);
  color: var(--surface);
}

/* ---------------- MEDIA CAROUSEL ---------------- */
.product-media {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect */
  overflow: hidden;
}
.media-carousel {
  display: flex;
  height: 100%;
  transition: transform 300ms ease;
}
.media-carousel img {
  flex-shrink: 0;
  width: 100%;
  object-fit: cover;
}
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.carousel-prev,
.carousel-next {
  pointer-events: auto;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.2rem;
  cursor: pointer;
}
.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255,255,255,1);
}

/* ---------------- PRODUCT DETAILS & ACTIONS ---------------- */
.product-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}
.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0;
}
.product-meta {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin: 0;
}

/* ---------------- PRODUCT ACTION BUTTONS ---------------- */
.product-actions {
  margin-top: auto;
  display: flex;
  gap: var(--space-md);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.btn-add {
  background: var(--brand-accent);
  color: var(--surface);
}
.btn-add:hover {
  filter: brightness(0.9);
}
.btn-details {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}
.btn-details:hover {
  background: var(--brand-primary);
  color: var(--surface);
}


/* ---------------- RIGHT: PANELS (wishlist, specials, cart) ---------------- */
.panel{
  background:var(--surface);
  border-radius:var(--radius-md);
  padding:.9rem;
  margin-bottom:1rem;
  border:1px solid rgba(16,24,32,0.04);
  box-shadow: 0 4px 12px rgba(2,8,23,0.02);
  transition: transform 180ms var(--easing);
}
.panel:hover{ transform: translateY(-4px); }
.panel-head{ font-size:.95rem; margin:0 0 .6rem 0; color:var(--brand-primary); font-weight:700; }
.panel-body .muted{ color:var(--muted); font-size:.95rem; }

.wishlist-list, .cart-list{ list-style:none; margin:0; padding:0; }
.wishlist-list li, .cart-list li{
  padding:.45rem 0; border-bottom:1px dashed rgba(16,24,32,0.04); font-size:.95rem;
}

/* Cart actions */
.cart-actions{ display:flex; gap:.5rem; margin-top:.75rem; }
.cart-actions .btn{ flex:1; }

/* ---------------- FOOTER (AMENDED: Social column added + icon alignment) ---------------- */
/* ============================================================================
File Name   : frontend.css
Section     : Footer Styles
Version     : 1.2.1
Author      : Oluwasegun Dayo Ogunsola
============================================================================ */

/* ---------------- FOOTER WRAPPER ---------------- */
.site-footer {
  background: linear-gradient(180deg, var(--footer-bg), #04060a);
  color: var(--footer-text);
  margin-top: auto;
  padding: 2rem 0;
  font-size: 0.95rem;
}

/* ---------------- FOOTER INNER GRID ---------------- */
.footer-inner {
  width: min(var(--container-width), 95%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1fr;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------------- FOOTER COLUMN BASE ---------------- */
.footer-col {
  min-width: 200px;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-col p {
  color: var(--footer-text);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* ---------------- FOOTER LINKS ---------------- */
.footer-links {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

/* ---------------- NEWSLETTER FORM ---------------- */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.newsletter-form input[type="email"] {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--footer-text);
  font-size: 0.95rem;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  background: var(--brand-accent);
  color: #081018;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-form .btn:hover {
  background: #e88b2f;
}

/* ---------------- SOCIAL MEDIA LIST ---------------- */
.footer-social-list {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding-left: 0;
}

.footer-social-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.footer-social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-list a:hover {
  color: var(--brand-accent);
  transform: translateX(2px);
}

.social-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

/* ---------------- FOOTER BOTTOM BAR ---------------- */
.footer-footer {
  background: rgba(0,0,0,0.25);
  padding: 0.75rem 0;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #d3dbe2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-footer p {
  margin: 0;
}

.footer-footer .copyright {
  text-align: left;
  flex: 1;
}

.footer-footer .tech-credit {
  text-align: right;
  flex: 1;
  color: #d3dbe2;
}

@media (max-width: 600px) {
  .footer-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-footer .copyright,
  .footer-footer .tech-credit {
    text-align: center;
    margin-top: 0.5rem;
  }
}
/* ============================================================================
File Name   : frontend.css
Part        : 3 of 3
Purpose     : Utilities, responsive helpers, accessibility, small animations,
              print rules, and developer maintenance notes.
============================================================================ */

/* ---------------- FORMS & INPUTS ---------------- */
input, textarea, select, button{ font-family:var(--font-family); font-size:1rem; }
input[type="text"], input[type="email"], textarea{
  width:100%; padding:.6rem; border-radius:8px; border:1px solid rgba(16,24,32,0.06); background:#fff; color:var(--text);
}

/* ---------------- UTILITIES ---------------- */
.text-center{ text-align:center; }
.muted{ color:var(--muted); }
.mt{ margin-top:.5rem; }
.small{ font-size:.9rem; color:var(--muted); }
.u-hidden{ display:none!important; }
.u-visually-hidden{ position:absolute!important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* ---------------- RESPONSIVE HELPERS ---------------- */
@media (max-width:1100px){
  .site-main{ width: calc(100% - 40px); grid-template-columns: repeat(12,1fr); }
  .col-left { grid-column: 1 / span 12; order:1; }
  .col-center{ grid-column: 1 / span 12; order:2; }
  .col-right{ grid-column: 1 / span 12; order:3; }
  .product-grid{ grid-template-columns: repeat(2,1fr); }
  .header-inner, .footer-inner{ width: calc(100% - 40px); }
}
@media (max-width:700px){
  .product-grid{ grid-template-columns: 1fr; }
  .icon-btn{ width:36px; height:36px; }
  .footer-col{ min-width:100%; max-width:100%; }
  .brand-title{ display:none; }
}

/* ---------------- ACCESSIBILITY & FOCUS RINGS ---------------- */
:focus{
  outline: 3px solid rgba(11,110,96,0.14);
  outline-offset:2px; border-radius:6px;
}
button:focus, a:focus, input:focus{
  box-shadow: 0 0 0 4px rgba(11,110,96,0.08);
}

/* High contrast adjustments */
@media (prefers-contrast: more){
  :root{
    --brand-primary:#09493f; --brand-accent:#e07a2b; --text:#111;
  }
  body{ background:#fff; color:var(--text); }
  .product-card{ border-color: rgba(0,0,0,0.08); }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}

/* ---------------- ANIMATIONS & TRANSITIONS ---------------- */
@keyframes float-in{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}
.product-card{ animation: float-in 360ms var(--easing) both; }

/* subtle hover lift for panels already defined in part 2 */

/* ---------------- PRINT ---------------- */
@media print{
  body{ background:#fff; color:#000; }
  .site-header, .site-footer, .panel{ box-shadow:none; }
  .product-media img{ max-width:100%; height:auto; }
  .icon-btn, .action-button, .btn{ display:none; }
}


/* =========================================================
* FILE NAME     : basket.css
* FILE PATH     : /public/css/basket.css
* PART          : 9 of 11
* DATE CREATED  : 2025-10-05
* AUTHOR        : Oluwasegun Dayo Ogunsola
* VERSION       : 1.0.0
* DESCRIPTION   : Styles for cart panel, item list, and checkout actions
* MODULES COVERED:
* - Cart layout and visibility
* - Item list styling
* - Subtotal and checkout button
* ========================================================= */

/* ---------------- CART PANEL ---------------- */
.cart-panel {
  background: #fff;
  border-left: 2px solid #f2a65a;
  padding: 1.5rem;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  max-width: 320px;
  width: 100%;
  position: relative;
  font-size: 0.95rem;
}

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

.cart-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #081018;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #999;
  cursor: pointer;
}

/* ---------------- ITEM LIST ---------------- */
.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.item-title {
  font-weight: 500;
  color: #333;
}

.item-price {
  font-weight: 600;
  color: #f2a65a;
}

.item-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #ff4d6d;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ---------------- ACTIONS ---------------- */
.cart-actions {
  margin-top: 1.5rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-checkout {
  background: #f2a65a;
  color: #081018;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.btn-checkout:hover {
  background: #f89c3f;
}

/* ---------------- EMPTY STATE ---------------- */
.cart-empty {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 1rem 0;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .cart-panel {
    max-width: 100%;
    border-left: none;
    border-top: 2px solid #f2a65a;
  }
}

/* ---------------- CATEGORY MENU WRAPPER ----------------
   Purpose: Inherits grid column space (e.g. 3-column layout)
   Layout: Full width of parent container, no hardcoded sizing
---------------------------------------------------------- */
.category-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--color-surface, #fff);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


/* ---------------- CATEGORY LIST STRUCTURE ----------------
   Purpose: Top-level list of categories
------------------------------------------------------------ */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* ---------------- CATEGORY ITEM ----------------
   Purpose: Individual category block
-------------------------------------------------- */
.category-item {
  display: flex;
  flex-direction: column;
}


/* ---------------- CATEGORY TOGGLE BUTTON ----------------
   Purpose: Clickable category header
   Layout: Icon + label + chevron, aligned left
---------------------------------------------------------- */
.category-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #081018;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-toggle:hover {
  background-color: #f2f2f2;
  color: #f2a65a;
}


/* ---------------- CATEGORY ICON ----------------
   Purpose: Left-side icon from /public/icons/
-------------------------------------------------- */
.category-toggle .icon img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* ---------------- CATEGORY LABEL ----------------
   Purpose: Text label aligned left
-------------------------------------------------- */
.category-toggle .label-text {
  flex-grow: 1;
  padding-left: 0.25rem;
}


/* ---------------- TOGGLE CHEVRON ----------------
   Purpose: Right-side arrow indicator
-------------------------------------------------- */
.toggle-icon img {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.category-toggle[aria-expanded="true"] .toggle-icon img {
  transform: rotate(90deg);
}


/* ---------------- SUBCATEGORY LIST ----------------
   Purpose: Revealed on toggle
-------------------------------------------------- */
.subcategory-list {
	<ul class="subcategory-list" hidden>

  list-style: none;
  padding-left: 2.5rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #333;
}
.subcategory-list[hidden] {
  display: none !important;
}


/* ---------------- SUBCATEGORY ITEM ----------------
   Purpose: Icon + label
-------------------------------------------------- */

.subcategory-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.subcategory-list img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* =========================================================
* FILE NAME     : vendors.css
* FILE PATH     : /public/css/vendors.css
* PART          : 11 of 11
* DATE CREATED  : 2025-10-05
* AUTHOR        : Oluwasegun Dayo Ogunsola
* VERSION       : 1.0.0
* DESCRIPTION   : Styles for vendor showcase grid and badges
* MODULES COVERED:
* - Vendor card layout
* - Badge styling
* - Responsive grid
* ========================================================= */

/* ---------------- SECTION TITLE ---------------- */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #081018;
  text-align: center;
}

/* ---------------- GRID ---------------- */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ---------------- CARD ---------------- */
.vendor-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vendor-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.vendor-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.vendor-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #081018;
}

.vendor-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.vendor-badge.local {
  background: #f2a65a;
  color: #081018;
}

.vendor-badge.top {
  background: #6c5ce7;
  color: #fff;
}

.vendor-badge.new {
  background: #ff4d6d;
  color: #fff;
}

.vendor-bio {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #333;
}

.vendor-products {
  list-style: disc;
  margin-left: 1.2rem;
  font-size: 0.85rem;
  color: #555;
}
/* ---------------- Legal Documents ---------------- */
.legal-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(242, 158, 76, 0.08);
  border-radius: var(--radius-md);
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
}

.legal-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

.legal-section h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--brand-accent);
}

.legal-section p,
.legal-section ul {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
}
/* ---------------- SellerVendor Page ---------------- */
.sellervendor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
}

.sellervendor h1,
.sellervendor h2 {
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.vendor-intro,
.vendor-benefits,
.vendor-join,
.vendor-showcase {
  margin-bottom: 3rem;
}

.vendor-criteria,
.vendor-benefits ul,
.vendor-join ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.vendor-criteria li,
.vendor-benefits li,
.vendor-join li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.vendor-showcase .vendor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.vendor-card {
  background-color: rgba(242, 158, 76, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.vendor-card:hover {
  transform: scale(1.03);
}

.vendor-card img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.limited-space {
  color: var(--brand-accent);
  font-weight: bold;
  margin-top: 1rem;
}
/* ---------------- Frontend Shop Product Sorting ---------------- */
.sorting-filter-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.sort-controls,
.filter-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sort-btn,
.filter-btn {
  background-color: var(--surface);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
  font-size: 1.25rem;
  line-height: 1;
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.sort-btn.active,
.filter-btn.active {
  background-color: var(--brand-primary);
  color: var(--surface);
}

.sort-btn:hover:not(.active),
.filter-btn:hover:not(.active) {
  background-color: var(--brand-secondary);
  color: var(--surface);
}

.filter-select {
  appearance: none;
  background-color: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: var(--brand-primary);
  outline: none;
}

@media (max-width: 600px) {
  .sorting-filter-section {
    flex-direction: column;
    align-items: stretch;
  }
  .sort-controls,
  .filter-controls {
    justify-content: space-between;
  }
}
/* ---------------- AUTH MODULE ---------------- */
.auth-group {
  display: flex;
  gap: 0.6rem;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.action-button.hollow {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.action-button.primary {
  background: var(--brand-accent, #f2a65a);
  color: #081018;
  border: none;
  box-shadow: 0 4px 10px rgba(242,158,76,0.10);
}

.action-button.primary:hover {
  background: #f89c3f;
}

/* ---------------- ANNOUNCE MODULE ---------------- */
.announce-module {
  background: var(--brand-accent, #f2a65a);
  color: #081018;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  overflow: hidden;
  position: relative;
}

.announcement-track {
  white-space: nowrap;
  animation: crawl-left 28s linear infinite;
}

.announcement-text {
  display: inline-block;
  padding-left: 100%;
}
