/* css/style.css ? Dual mode theme (light/dark) */

/* --- Variables for light and dark --- */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #111827;
  --ghost: rgba(17, 24, 39, 0.06);
  --btn-bg: #111827;
  --btn-ghost-bg: transparent;
  --link: #111827;
  --dot-color: #aaa;
  --dot-active-color: #fff;
  --shadow: rgba(0, 0, 0, 0.08);
}



[data-theme="dark"] {
  --bg: #0b0f14;
  --card: #0f1720;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #e6edf3;
  --ghost: rgba(255, 255, 255, 0.03);
  --btn-bg: #e6edf3;
  --btn-ghost-bg: transparent;
  --link: #e6edf3;
  --dot-color: #888;
  --dot-active-color: #000;
  --shadow: rgba(255, 255, 255, 0.08);
}

/* --- Base --- */
* {
  box-sizing: border-box
}

html {
  height: auto;
  min-height: 100%;
}

body {
  height: auto;
  min-height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* --- Global Focus & Transitions --- */
/* Smooth transition for all interactive elements */
a,
button,
input,
select,
textarea,
.btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Uniform Focus Ring */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ghost);
}

/* --- Layout --- */
.container {
  max-width: 100%;
  margin: 28px auto;
  padding: 0 20px;
  padding-left: 5%;
  padding-right: 5%;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  padding-left: 5%;
  padding-right: 5%;
  background: var(--card);
  margin-top: 0 !important;
  padding-top: 20px;
  padding-bottom: 10px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px var(--shadow);
}

#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  /* space between SVG and text */
  text-decoration: none;
}

.header-logo {
  width: 50px;
  height: 50px;
}

.header-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
}


.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px
}


.nav {
  display: flex;
  align-items: center;
  gap: 8px
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: 0.3s ease;
  margin-left: 12px;
}

.nav a:hover {
  color: var(--link);
}


/* theme toggle button */
.theme-toggle {
  margin-left: 8px;
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted)
}

/* hero launch */
.hero-launch {
  background-image: url('../assets/overall/hero.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 3%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 3 / 1;
  position: relative;
  overflow: hidden;
}

.hero-content {
  color: var(--text);
  max-width: 50%;
  padding-left: 2%;
}

[data-theme="dark"] .hero-content {
  color: #111;
}

.hero-launch h1 {
  font-size: clamp(1rem, 4vw, 3rem);
  margin-bottom: 2%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#countdown-timer {
  display: flex;
  gap: 2vw;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 1vw;
  border-radius: 8px;
  min-width: 12%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.time-unit span {
  font-size: clamp(0.8rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #111;
}

.time-unit label {
  font-size: clamp(0.4rem, 1vw, 0.8rem);
  margin-top: 5px;
  color: #555;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-launch {
    background-position: center right;
    align-items: center;
  }
}

/* Shop Hero (Fixes overflow and alignment) */
.shop-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: var(--card);
  /* Fallback */
}

.shop-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* grid and cards */
.section-title {
  margin-top: 20px;
  margin-bottom: 6px
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 12px;
}

.small {
  font-size: 13px
}

.muted {
  color: var(--muted)
}

/* product layout */
.product-flex {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap
}

.product-media {
  flex: 1;
  min-width: 260px
}

.product-info {
  flex: 1
}

/* cart footer */
.cart-footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding: 12px;
  border-top: 2px solid var(--muted);
}

/* buttons */
.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--card);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0.95;
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--ghost);
  color: var(--text);
}

/* inputs */
.input {
  width: 100%;
  padding: 12px 16px;
  /* Larger padding */
  border-radius: 8px;
  /* More rounded */
  border: 1px solid #e5e7eb;
  background: var(--card);
  /* Explicit background */
  color: var(--text);
  box-sizing: border-box;
  font-size: 1rem;
  /* Readable font size */
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 600
}



/* responsive */
@media(max-width:700px) {
  .grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:600px) {
  .grid {
    grid-template-columns: 1fr
  }

  .hero {
    flex-direction: column;
    align-items: flex-start
  }

  .hero-img {
    width: 100%
  }
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
}

.logo {
  text-decoration: none;
  /* removes underline */
  color: var(--text);
  /* keeps your theme color */
}

.slider-container {
  width: 100%;
  aspect-ratio: 3.5 / 1;
  /* Responsive ratio (e.g. 1200x480) */
  overflow: hidden;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--dot-color);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background-color: var(--dot-active-color);
  transform: scale(1.3);
}

/* --- Footer --- */
.footer {
  background: var(--card);
  padding: 40px 20px 20px;
  margin-top: 50px;
  border-top: 1px solid var(--ghost);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* 3 columns: left, middle, right */
  gap: 30px;
  margin: 0 20px;
}

/* Left Section: Logo + Brand + Subscribe */
/* Footer-left: grid layout */
.footer-left {
  display: grid;
  grid-template-rows: auto auto;
  /* 2 rows: top + subscribe */
  gap: 15px;
  padding-left: 30%;
}

/* Row 1: Logo + Brand side by side */

.footer-left-top {
  display: grid;
  grid-template-columns: auto 1fr;
  /* logo | brand */
  align-items: center;
  gap: 12px;
  padding-top: 30px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 90px;
  height: 90px;
}

.footer-brand h2 {
  margin: 0;
  font-size: 28px;
}

.footer-brand {
  text-align: left;
  padding: 5px 0px 0px 0px;
  transform: translateX(5%);
}

.footer-brand h2 a {
  text-decoration: none;
  color: var(--text);
}

.footer-brand p.slogan {
  margin: 2px 0 0 0;
  font-size: 14px;
  opacity: 0.8;
  font-size: 18px;
}

/* Row 2: Subscribe heading + box */
.footer-left-subscribe h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  text-align: left;
}

.subscribe-box {
  display: flex;
  gap: 8px;
}

.subscribe-box input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--ghost);
}

.subscribe-box button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: var(--btn-bg);
  color: var(--bg);
  cursor: pointer;

}

.subscribe-box button:hover {
  transform: scale(1.05);
  /* slightly bigger */
  background: var(--accent);
  transition: transform 0.2s ease, background 0.3s ease;
}


/* Middle & Right Sections */
.footer-middle,
.footer-right {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-middle {
  transform: translateX(22%);

}

.footer-middle h3,
.footer-right h3 {
  margin-bottom: 0px;
}


.footer-middle ul,
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

.footer-middle li,
.footer-right li {
  margin: 6px 0;
}

.footer-middle a,
.footer-right a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
}

.footer-middle a:hover,
.footer-right a:hover {
  opacity: 1;
}

/* Social Icons: span all columns */
.socials {
  grid-column: 1 / -1;
  /* full width row */
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.social-svg {
  font-size: 20px;
  color: var(--muted);
  transition: color 0.3s ease;
}

.social-link:hover .social-svg {
  color: var(--accent);
}

/* Footer Bottom: span all columns */
.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0px;
  opacity: 0.7;
  font-size: 14px;
  /* removed transform to avoid overlap causing pointer jitter */
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 700px) {
  .footer-container {
    grid-template-columns: 1fr;
    /* single column */
    gap: 20px;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    align-items: flex-start;
  }
}






/* Category Sections */

.category-section {

  margin-bottom: 60px;

}



.category-section .section-title {

  font-size: 24px;

  margin-bottom: 20px;

  border-bottom: 2px solid var(--ghost);

  padding-bottom: 10px;

  display: inline-block;

}

/* Shop Toolbar */

.shop-toolbar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 30px;

  background: var(--card);

  padding: 16px;

  border-radius: 12px;

  box-shadow: 0 4px 12px var(--ghost);

  flex-wrap: wrap;

  gap: 16px;

}



.filter-group,

.sort-group {

  display: flex;

  align-items: center;

  gap: 10px;

}



.filter-group label,

.sort-group label {

  margin: 0;

  font-weight: 600;

  color: var(--muted);

}



.btn-sm {

  padding: 6px 12px;

  font-size: 14px;

}



.filter-btn.active {

  background: var(--accent);

  color: #fff;

  /* Ensure contrast */

}



[data-theme="dark"] .filter-btn.active {

  color: #000;

}



.input-sm {

  padding: 6px;

  font-size: 14px;

  width: auto;

}

/* Sidebar Styles */

.sidebar-overlay {

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  z-index: 998;

  opacity: 0;

  visibility: hidden;

  transition: all 0.3s ease;

  backdrop-filter: blur(2px);

}



.sidebar-overlay.active {

  opacity: 1;

  visibility: visible;

}



.shop-sidebar {

  position: fixed;

  top: 0;

  right: -320px;

  /* Hidden by default */

  width: 300px;

  height: 100%;

  background: var(--card);

  z-index: 999;

  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);

  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;

  flex-direction: column;

}



.shop-sidebar.open {

  right: 0;

}



.sidebar-header {

  padding: 20px;

  border-bottom: 1px solid var(--ghost);

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.sidebar-header h3 {

  margin: 0;

  font-size: 20px;

}



.sidebar-content {

  padding: 20px;

  overflow-y: auto;

  flex: 1;

}



.sidebar-section {

  margin-bottom: 30px;

}



.sidebar-section h4 {

  margin: 0 0 16px 0;

  font-size: 16px;

  color: var(--muted);

  text-transform: uppercase;

  letter-spacing: 0.5px;

}



.filter-options {

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.radio-label {

  display: flex;

  align-items: center;

  gap: 10px;

  cursor: pointer;

  font-size: 15px;

  padding: 8px;

  border-radius: 8px;

  transition: background 0.2s;

}



.radio-label:hover {

  background: var(--ghost);

}



.radio-label input[type="radio"] {

  accent-color: var(--accent);

  width: 18px;

  height: 18px;

}



.filter-toggle-container {

  margin-bottom: 30px;

  display: flex;

  justify-content: flex-end;

}



/* Hide old toolbar styles if present */

.shop-toolbar {

  display: none;

}

/* Sidebar Parallel Layout */

.shop-sidebar {

  width: 400px;

  /* Wider to accommodate two columns */

  right: -420px;

}



.shop-sidebar.open {

  right: 0;

}



.parallel-layout {

  display: flex;

  gap: 20px;

}



.sidebar-column {

  flex: 1;

  min-width: 0;

  /* Prevent overflow */

}



/* Price Slider */

.price-slider-container {

  padding: 10px 0;

}



input[type=range] {

  width: 100%;

  margin: 10px 0;

  accent-color: var(--accent);

}



.price-value {

  font-size: 14px;

  font-weight: 600;

  color: var(--text);

}

.cart-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.cart-item:hover {
  transform: none;
  box-shadow: none;
}



/* Responsive Sidebar */

@media (max-width: 500px) {

  .shop-sidebar {

    width: 100%;

    right: -100%;

  }



  .parallel-layout {

    flex-direction: column;

  }

}


/* ---------------- CART PAGE DESIGN ---------------- */

.cart-item {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px var(--ghost);
}

.cart-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-info {
  display: flex;
  flex-direction: column;
}

.cart-title {
  font-size: 16px;
}

.cart-qty {
  font-size: 13px;
  color: var(--muted);
}

.cart-price {
  font-size: 17px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.qty-btn {
  width: 25px;
  height: 25px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--card);
  cursor: pointer;
  font-weight: 400;
}

.qty-input {
  width: 36px;
  height: 25px;
  text-align: center;
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 2px;
  background: var(--card);
  color: var(--text);
}

.cart-total-container {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-total-amount {
  font-size: 1.6rem;
  color: #15be4d;
  /* standout red */
}




.shop-sidebar.open {

  right: 0;

}



.parallel-layout {

  display: flex;

  gap: 20px;

}



.sidebar-column {

  flex: 1;

  min-width: 0;

  /* Prevent overflow */

}



/* Price Slider */

.price-slider-container {

  padding: 10px 0;

}



input[type=range] {

  width: 100%;

  margin: 10px 0;

  accent-color: var(--accent);

}



.price-value {

  font-size: 14px;

  font-weight: 600;

  color: var(--text);

}

.cart-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.cart-item:hover {
  transform: none;
  box-shadow: none;
}



/* Responsive Sidebar */

@media (max-width: 500px) {

  .shop-sidebar {

    width: 100%;

    right: -100%;

  }



  .parallel-layout {

    flex-direction: column;

  }

}


/* ---------------- CART PAGE DESIGN ---------------- */

.cart-item {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px var(--ghost);
}

.cart-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-info {
  display: flex;
  flex-direction: column;
}

.cart-title {
  font-size: 16px;
}

.cart-qty {
  font-size: 13px;
  color: var(--muted);
}

.cart-price {
  font-size: 17px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.qty-btn {
  width: 25px;
  height: 25px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--card);
  cursor: pointer;
  font-weight: 400;
}

.qty-input {
  width: 36px;
  height: 25px;
  text-align: center;
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 2px;
  background: var(--card);
  color: var(--text);
}

.cart-total-container {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-total-amount {
  font-size: 1.6rem;
  color: #15be4d;
  /* standout red */
}

.cart-buttons {
  display: flex;
  gap: 12px;
}

/* Card Image Container */
.card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
  border-radius: 8px;
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  /* Slight grey shade */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.card-overlay i {
  font-size: 32px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

/* Hover Effects */
.card:hover .card-overlay {
  opacity: 1;
  visibility: visible;
}

.card:hover img {
  transform: scale(1.05);
}

/* Card Base Styles */
.card {
  display: block;
  /* Make anchor tag block */
  text-decoration: none;
  /* Remove underline */
  color: var(--text);
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--ghost);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
  overflow: hidden;
}



/* Responsive Sidebar */

@media (max-width: 600px) {

  .shop-sidebar {
    width: 100%;
    right: 0;
    top: auto;
    bottom: -100%;
    /* Start hidden below screen */
    height: auto;
    max-height: 85vh;
    /* Don't cover entire screen */
    border-radius: 20px 20px 0 0;
    /* Rounded top corners */
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .shop-sidebar.open {
    right: 0;
    bottom: 0;
    /* Slide up */
  }

  .parallel-layout {
    flex-direction: row;
  }

}


/* ---------------- CART PAGE DESIGN ---------------- */

.cart-item {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px var(--ghost);
}

.cart-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-info {
  display: flex;
  flex-direction: column;
}

.cart-title {
  font-size: 16px;
}

.cart-qty {
  font-size: 13px;
  color: var(--muted);
}

.cart-price {
  font-size: 17px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.qty-btn {
  width: 25px;
  height: 25px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--card);
  cursor: pointer;
  font-weight: 400;
}

.qty-input {
  width: 36px;
  height: 25px;
  text-align: center;
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 2px;
  background: var(--card);
  color: var(--text);
}

.cart-total-container {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-total-amount {
  font-size: 1.6rem;
  color: #15be4d;
  /* standout red */
}

.cart-buttons {
  display: flex;
  gap: 12px;
}

/* Card Image Container */
.card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
  border-radius: 8px;
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  /* Slight grey shade */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.card-overlay i {
  font-size: 32px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

/* Hover Effects */
.card:hover .card-overlay {
  opacity: 1;
  visibility: visible;
}

.card:hover img {
  transform: scale(1.05);
}

/* Card Base Styles */
.card {
  display: block;
  /* Make anchor tag block */
  text-decoration: none;
  /* Remove underline */
  color: var(--text);
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--ghost);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
  overflow: hidden;
  height: auto;
  /* Restored fixed height */
  padding-bottom: 10px;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin: 12px 0 4px 0;
  font-size: 16px;
  color: var(--text);
}

.card .price {
  font-weight: 600;
  color: var(--muted);
}

/* Icon navigation styles */
.nav a {
  font-size: 25px !important;
  font-weight: 700 !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  -webkit-text-stroke: 0.5px currentColor;
}

.nav a::after {
  display: none !important;
}

.nav a:hover {
  transform: translateY(-2px);
}

/* Sale Badge */
.sale-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--bg);
  /* Red accent */
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cart badge */
.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1;
}

/* Responsive Nav: Icons on Mobile, Text on Desktop (>500px) */
.nav-text {
  display: none;
}

.nav-icon {
  display: inline-block;
  font-weight: 400;
  font-size: 24px;
}

@media (min-width: 501px) {
  .nav .nav-text {
    display: inline-block;
    font-size: 17px;
    font-weight: 500;

    color: var(--muted);
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s ease;
  }

  .nav .nav-text::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--link);
    transition: width 0.3s ease;
  }

  .nav .nav-text:hover {
    color: var(--link);
    /* darker on hover */
  }

  .nav .nav-text:hover::after {
    width: 100%;
  }

  .nav .nav-icon {
    display: none;
  }
}

/* Product Card - Compared Price */
.compare-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.9em;
  margin-left: 8px;
  font-weight: 400;
}



/* --- Mobile App View Styles --- */
/* Default: Hidden on Desktop */
.mobile-search-bar,
.bottom-nav {
  display: none;
}

@media (max-width: 500px) {

  /* Show Mobile Elements */
  .mobile-search-bar {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    /* Light gray background like reference */
    padding: 10px 16px;
    margin: 10px 20px 20px;
    /* Spacing */
    border-radius: 12px;
    gap: 10px;
  }

  [data-theme='dark'] .mobile-search-bar {
    background: var(--card);
    border: 1px solid var(--ghost);
  }

  .mobile-search-bar input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    color: var(--text);
    outline: none;
  }

  .search-icon {
    color: var(--muted);
    font-size: 18px;
  }

  .filter-icon {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
  }

  /* Bottom Navigation */
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card);
    /* White/Dark Card bg */
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    z-index: 1000;
    border-top-left-radius: 20px;
    /* Rounded top corners matching reference */
    border-top-right-radius: 20px;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--muted);
    font-size: 10px;
    gap: 4px;
  }

  .nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
  }

  /* Active State (Red/Primary Color) */
  .nav-item.active,
  .nav-item:hover {
    color: #ef4444;
    /* Red color from reference/theme */
  }

  .icon-wrapper {
    position: relative;
  }

  /* Mobile Cart Badge */
  .mobile-cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 10px;
    line-height: 1;
  }

  /* Adjust body padding so content isn't hidden behind bottom nav */
  body {
    padding-bottom: 80px;
  }
}



/* --- Mobile Overrides (Best View) --- */
@media(max-width:600px) {

  /* 2-Column Grid */
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Optimized Container */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Typography */
  .card h3 {
    font-size: 14px;
    margin: 8px 0 4px;
    line-height: 1.3;
  }

  .card .price {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    align-items: center;
    gap: 4px;
    /* Small gap between prices */
  }

  .compare-price {
    margin-left: 0 !important;
    /* Reset margin in favor of gap */
    font-size: 0.9em;
  }

  .hero h1 {
    font-size: 24px;
  }

  /* Sticky Actions Placeholder (handled in product-detail.css, but ensure space) */
  body {
    padding-bottom: 0px;
  }
}




/* --- UNIFIED HEADER & NAV SYSTEM --- */
/* --- UNIFIED HEADER & NAV SYSTEM (Grid Layout for Rigid Symmetry) --- */

/* 1. Default (Mobile < 601px): Icons Visible, Text Hidden, Split Layout */
/* --- UNIFIED HEADER & NAV SYSTEM (Grid Layout for Rigid Symmetry) --- */

/* 1. Default (Mobile < 601px): Icons Visible, Text Hidden, Split Layout */
.nav-icon {
  display: inline-block !important;
  /* Force visibility */
  font-size: 24px !important;
  color: var(--text);
  vertical-align: middle;
}

.nav-text {
  display: none !important;
}

/* Mobile Header Layout */
@media (max-width: 600px) {
  .header {
    position: relative;
    justify-content: center;
  }

  /* Center Logo */
  /* Center Logo - Bubble Style */
  /* Center Logo - Bubble Style */
  .header-logo-link {
    position: absolute;
    left: 50%;
    top: 90%;
    /* Pop out: Center on bottom edge */
    transform: translate(-50%, -65%);
    z-index: 20;

    /* Bubble Styling */
    width: 80px;
    /* Bigger target */
    height: 80px;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow);
    /* Deep shadow */
    padding: 10px;
    border: 2px 6px var(--shadow);
    /* Gap effect */
  }

  /* Hide Text Logo */
  .header-text {
    display: none;
  }

  /* Split Nav (Grid Layout) */
  .nav {
    width: 100%;
    display: grid;
    /* 5 Columns: 1fr (Home), 1fr (Shop), 80px Fixed (Logo), 1fr (Cart), 1fr (Theme) */
    /* Spreads items across full available width while keeping logo gap fixed */
    grid-template-columns: 1fr 1fr 80px 1fr 1fr;
    justify-content: normal;
    /* Allow grid to fill width */
    gap: 0px;
    /* Optional: Use gap or let 1fr handle spacing. 0 gives max control. */
    align-items: center;
    padding: 0 10px;
    /* Add small edge padding if needed, or keeping 0 is fine */
  }

  /* Force all nav items to fill their grid cell */
  .nav>* {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Force Cart (3rd item) to skip the 3rd column (Logo) and go to 4th */
  .nav> :nth-child(3) {
    grid-column: 4;
  }
}

/* 2. Desktop (>= 601px): Text Visible, Icons Hidden, Standard Layout */
@media (min-width: 601px) {
  .nav-icon {
    display: none !important;
  }

  .nav-text {
    display: inline-block !important;
    font-size: 16px;
    font-weight: 600;
  }

  /* Reset Header Layout to Standard */
  .header {
    position: static;
    justify-content: space-between;
  }

  .header-logo-link {
    position: static;
    transform: none;
  }

  .header-text {
    display: inline-block;
  }

  .nav {
    width: auto;
    display: flex;
    /* Reset Grid to Flex */
    justify-content: flex-end;
    gap: 8px;
    /* Reset Gap */
    padding: 0;
  }

  .nav>* {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    display: inline-block;
    /* Or flex child */
  }

  .nav> :nth-child(3) {
    grid-column: auto;
    /* Reset grid placement */
  }

  .nav a {
    margin-left: 12px;
    /* Restore desktop spacing */
  }
}


/* --- Footer Mobile Layout Fix (Grid System) --- */
@media (max-width: 900px) {

  /* Main Container: 2-Column Grid */
  .footer-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 20px;
    justify-items: center;
  }

  /* Left Section: Spans Full Width (Row 1) */
  .footer-left {
    grid-column: 1 / -1;
    width: 100%;
    padding-left: 0 !important;
    justify-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Center inner elements of Left Section, but keep Logo+Brand side-by-side */
  .footer-left-top {
    display: grid;
    grid-template-columns: auto 1fr;
    /* Logo | Text */
    gap: 12px;
    align-items: center;
    justify-content: center;
    /* Center the whole unit horizontally */
    text-align: left;
    /* Text inside should be left */
  }

  .footer-logo-wrapper {
    justify-content: flex-end;
    /* Push logo towards text */
    width: auto;
  }

  .footer-brand {
    transform: none !important;
    padding-top: 0;
    /* Remove top padding to align with logo */
    text-align: left;
  }

  .footer-left-subscribe h3 {
    text-align: center;
  }

  .subscribe-box {
    justify-content: center;
    width: 100%;
  }

  /* Middle (Categories) & Right (Help): Parallel Columns (Row 2) */
  .footer-middle,
  .footer-right {
    transform: none !important;
    width: 100%;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-middle ul,
  .footer-right ul {
    text-align: center;
    padding: 0;
  }

  .footer-middle h3,
  .footer-right h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
}

/* --- Standardized Mobile Icons (< 600px) --- */
@media (max-width: 600px) {

  /* Target all icons in nav including Cart and Theme Toggle */
  .nav i,
  .theme-toggle i {
    font-size: 24px !important;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: 400 !important;
    /* Ensure uniform weight */
    color: var(--muted) !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .theme-toggle {
    padding: 0;
    margin-left: 0;
  }
}




/* --- Shop Search & Filter Row --- */
.search-filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-container {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  /* Curved Pill */
  padding: 4px 6px 4px 16px;
  /* Padding for icon/button */
}

/* Shop Header Row Base */
/* Shop Header Row Base */
.shop-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ghost);
  padding-bottom: 20px;
  transition: all 0.3s ease, gap 0.3s ease;
  background: var(--bg);
}

/* Sticky Header Active State (Mobile) */
@media (max-width: 600px) {
  .shop-header-row.sticky-active {
    position: sticky;
    top: 70px;
    z-index: 95;
    margin: 0 -20px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom: none;
    border-radius: 0 0 12px 12px;
    gap: 0;
  }

  .shop-header-row .section-title {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px;
    opacity: 1;
    flex-shrink: 0;
    /* Prevent Initial Shrinking */
  }

  .shop-header-row.sticky-active .section-title {
    max-width: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
    /* Allow shrink on sticky */
  }

  .search-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    /* Allow search bar to shrink if needed */
  }

  .shop-header-row.sticky-active .search-container {
    border-radius: 12px;
    background: var(--card);
  }
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  height: auto;
  min-width: 0;
  /* Allow shrinking */
}

.search-icon {
  position: static;
  /* Flow naturally */
  transform: none;
  color: var(--muted);
  font-size: 18px;
  flex-shrink: 0;
  /* Prevent icon shrink */
}

.search-container .btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /* Circle button inside */
  border: none;
  background: var(--bg);
  /* Contrast background */
  font-size: 16px;
  margin-left: 4px;
  flex-shrink: 0;
  /* Prevent button shrink */
}

.btn-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--card);
  color: var(--text);
  padding: 0;
  cursor: pointer;
  font-size: 20px;
  transition: 0.2s;
}

.btn-icon:hover {
  background: var(--bg);
}

.filter-text {
  display: none;
  font-size: 14px;
  font-weight: 600;
}

/* Show Filter Text on Desktop */
@media (min-width: 600px) {
  .filter-text {
    display: inline-block;
  }

  .search-container .btn-icon {
    width: auto;
    padding: 0 16px;
    border-radius: 50px;
    background: var(--bg);
    gap: 8px;
  }
}