/*
Theme Name: Didelou
Theme URI: https://didelou.gr
Author: Didelou
Author URI: https://didelou.gr
Description: A modern Greek beauty accessories & tools e-shop theme for Didelou.gr. Features a hero carousel, category grid, brands section, product catalog, cart and checkout — all with a deep-purple and warm off-white palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: didelou
Tags: e-commerce, custom-menu, translation-ready, one-column, two-columns, grid-layout
*/

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --background: 30 20% 97%;
  --foreground: 270 15% 15%;

  --card: 0 0% 100%;
  --card-foreground: 270 15% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 270 15% 15%;

  --primary: 270 40% 30%;
  --primary-foreground: 0 0% 100%;

  --secondary: 270 15% 92%;
  --secondary-foreground: 270 40% 25%;

  --muted: 30 10% 93%;
  --muted-foreground: 270 8% 45%;

  --accent: 38 70% 52%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 72% 50%;
  --destructive-foreground: 0 0% 100%;

  --border: 270 10% 88%;
  --input: 270 10% 88%;
  --ring: 270 40% 30%;

  --radius: 0.625rem;

  --nav-bg: 270 40% 22%;
  --nav-foreground: 0 0% 100%;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.min-h-screen {
  min-height: 100vh;
}

.flex-col-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.flex-1 {
  flex: 1;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* -- Top bar -- */
.header-topbar {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .header-topbar .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
  }
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .topbar-left {
    gap: 1.25rem;
  }
}

.topbar-left .phone-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .topbar-right {
    gap: 1rem;
  }
}

.topbar-right a {
  font-weight: 500;
}

.topbar-right a:hover {
  text-decoration: underline;
}

.topbar-separator {
  opacity: 0.4;
}

/* -- Main header row -- */
.header-main {
  background-color: hsl(var(--card));
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-bottom: 1px solid hsl(var(--border));
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .header-main .container {
    gap: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

.header-logo {
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .header-logo img {
    height: 3.5rem;
  }
}

@media (min-width: 768px) {
  .header-logo img {
    height: 4rem;
  }
}

@media (min-width: 1024px) {
  .header-logo img {
    height: 5rem;
  }
}

/* -- Search -- */
.header-search {
  position: relative;
  flex: 1;
  max-width: 42rem;
  display: none;
}

@media (min-width: 768px) {
  .header-search {
    display: block;
  }
}

.header-search input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 0.75rem 1.25rem;
  padding-right: 3.5rem;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s;
}

.header-search input:focus {
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
}

.header-search button {
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0.5rem;
  background-color: hsl(var(--primary));
  padding: 0.625rem;
  color: hsl(var(--primary-foreground));
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search button:active {
  transform: translateY(-50%) scale(0.95);
}

/* -- Header actions -- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 1.5rem;
  }
}

.header-action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.header-action-link:hover {
  color: hsl(var(--primary));
}

.header-action-link span {
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .header-action-link span {
    font-size: 0.875rem;
  }
}

.header-wishlist {
  display: none;
}

@media (min-width: 640px) {
  .header-wishlist {
    display: flex;
  }
}

.header-cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -0.375rem;
  right: -0.5rem;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: block;
  padding: 0.25rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* -- Navigation bar -- */
.header-nav {
  background-color: hsl(var(--nav-bg));
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.nav-list {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }
}

.nav-link {
  display: block;
  padding: 0.875rem 1rem;
  color: hsl(var(--nav-foreground) / 0.8);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.2s;
}

@media (min-width: 1024px) {
  .nav-link {
    padding: 0.875rem 1.25rem;
  }
}

.nav-link:hover {
  color: hsl(var(--nav-foreground));
  background-color: rgba(255,255,255,0.1);
}

.nav-link.current-menu-item > a,
.nav-list .current-menu-item .nav-link {
  color: hsl(var(--nav-foreground));
  background-color: rgba(255,255,255,0.15);
}

/* WordPress menu integration */
.header-nav .menu {
  display: none;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .header-nav .menu {
    display: flex;
  }
}

.header-nav .menu li a {
  display: block;
  padding: 0.875rem 1rem;
  color: hsl(var(--nav-foreground) / 0.8);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.2s;
}

@media (min-width: 1024px) {
  .header-nav .menu li a {
    padding: 0.875rem 1.25rem;
  }
}

.header-nav .menu li a:hover {
  color: hsl(var(--nav-foreground));
  background-color: rgba(255,255,255,0.1);
}

.header-nav .menu .current-menu-item a,
.header-nav .menu .current_page_item a {
  color: hsl(var(--nav-foreground));
  background-color: rgba(255,255,255,0.15);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
}

.mobile-nav.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }
}

.mobile-nav li a {
  display: block;
  padding: 0.75rem 1rem;
  color: hsl(var(--nav-foreground) / 0.8);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.mobile-nav li a:hover {
  color: hsl(var(--nav-foreground));
  background-color: rgba(255,255,255,0.1);
}

/* ==========================================================================
   5. Hero Carousel
   ========================================================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: hsl(var(--muted));
  height: 320px;
}

@media (min-width: 640px) {
  .hero-carousel { height: 420px; }
}
@media (min-width: 768px) {
  .hero-carousel { height: 500px; }
}
@media (min-width: 1024px) {
  .hero-carousel { height: 560px; }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  opacity: 0;
  transform: scale(1.03);
  z-index: 0;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(var(--foreground) / 0.5), hsl(var(--foreground) / 0.2), transparent);
}

.carousel-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.carousel-content .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .carousel-content .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .carousel-content .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.carousel-text {
  max-width: 32rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.carousel-slide.is-active .carousel-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 250ms;
}

.carousel-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: hsl(var(--primary-foreground));
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

@media (min-width: 640px) {
  .carousel-text h2 { font-size: 1.875rem; margin-bottom: 1rem; }
}
@media (min-width: 768px) {
  .carousel-text h2 { font-size: 3rem; }
}

.carousel-text p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: hsl(var(--primary-foreground) / 0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

@media (min-width: 640px) {
  .carousel-text p { font-size: 1.125rem; margin-bottom: 1.5rem; }
}
@media (min-width: 768px) {
  .carousel-text p { font-size: 1.5rem; }
}

.carousel-cta {
  display: inline-block;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.3s;
}

@media (min-width: 640px) {
  .carousel-cta {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
  }
}

.carousel-cta:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}

.carousel-cta:active {
  transform: scale(0.95);
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: hsl(var(--card) / 0.8);
  border-radius: 9999px;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .carousel-arrow {
    padding: 0.75rem;
  }
}

.carousel-arrow:hover {
  background-color: hsl(var(--card));
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow--prev {
  left: 0.5rem;
}

@media (min-width: 640px) {
  .carousel-arrow--prev { left: 1rem; }
}

.carousel-arrow--next {
  right: 0.5rem;
}

@media (min-width: 640px) {
  .carousel-arrow--next { right: 1rem; }
}

.carousel-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 640px) {
  .carousel-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.625rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: hsl(0 0% 100% / 0.7);
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.carousel-dot.is-active {
  background-color: hsl(270 40% 30%);
  transform: scale(1.3);
}

/* ==========================================================================
   6. Categories Section
   ========================================================================== */

.categories-section {
  padding: 4rem 0;
  background-color: hsl(var(--muted) / 0.5);
}

.categories-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .categories-section h2 {
    font-size: 2.25rem;
  }
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.7s ease-out;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.categories-grid.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  background-color: hsl(var(--card));
  text-align: left;
  display: block;
  transition: box-shadow 0.3s;
}

.category-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.category-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-card:hover .category-card-image img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, hsl(var(--foreground) / 0.8), transparent);
  padding: 1.25rem;
}

.category-card-overlay h3 {
  color: hsl(var(--primary-foreground));
  font-size: 1.25rem;
  font-weight: 700;
}

.category-card-overlay p {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* ==========================================================================
   7. Brands Section
   ========================================================================== */

.brands-section {
  padding: 3.5rem 0;
  background-color: hsl(var(--card));
}

.brands-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .brands-section h2 {
    font-size: 1.875rem;
  }
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.6s ease-out;
}

.brands-grid.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}

.brand-badge:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.3);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.site-footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-about p {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-categories ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-categories a {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
  transition: color 0.2s;
}

.footer-categories a:hover {
  color: hsl(var(--primary-foreground));
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.5);
}

/* ==========================================================================
   9. Product Card
   ========================================================================== */

.product-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.product-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  display: block;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-category {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.product-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title:hover {
  color: hsl(var(--primary));
}

.product-card-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

.product-card-old-price {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

/* ==========================================================================
   10. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: transform 0.15s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.95);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.btn-primary-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
  .btn-primary-lg {
    padding: 1rem 2rem;
  }
}

.btn-primary-full {
  width: 100%;
}

.btn-muted {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-muted:hover {
  background-color: hsl(var(--secondary));
}

.btn-muted.is-active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* ==========================================================================
   11. Shop Page
   ========================================================================== */

.shop-page {
  padding: 3rem 0;
}

.shop-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .shop-title {
    font-size: 2.25rem;
  }
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.7s ease-out;
}

.products-grid.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   12. Product Detail Page
   ========================================================================== */

.product-detail {
  padding: 2.5rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .breadcrumb {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

.breadcrumb a {
  white-space: nowrap;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: hsl(var(--primary));
}

.breadcrumb .current {
  color: hsl(var(--foreground));
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 640px) {
  .product-detail-grid {
    margin-bottom: 4rem;
  }
}

.product-detail-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.product-detail-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (min-width: 640px) {
  .product-detail-image img {
    aspect-ratio: 1/1;
  }
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-detail-category {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-detail-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .product-detail-name { font-size: 1.875rem; margin-bottom: 1rem; }
}
@media (min-width: 768px) {
  .product-detail-name { font-size: 2.25rem; }
}

.product-detail-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .product-detail-pricing {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

@media (min-width: 640px) {
  .product-detail-price { font-size: 1.875rem; }
}

.product-detail-old-price {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

.product-detail-discount {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.product-detail-description {
  font-size: 1rem;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 1rem;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .product-detail-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .product-stock {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
}

.product-stock svg {
  width: 1.25rem;
  height: 1.25rem;
}

.product-stock.in-stock {
  color: hsl(var(--primary));
}

.product-stock.in-stock span {
  font-weight: 600;
}

.product-stock.out-of-stock {
  color: hsl(var(--destructive));
}

.product-stock.out-of-stock span {
  font-weight: 600;
}

/* Related products */
.related-products h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.related-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-product-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: block;
}

.related-product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.related-product-card .card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.related-product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-product-card:hover .card-image img {
  transform: scale(1.05);
}

.related-product-card .card-body {
  padding: 1rem;
}

.related-product-card .card-body h3 {
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.related-product-card .card-body .price {
  color: hsl(var(--primary));
  font-weight: 800;
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

/* ==========================================================================
   13. Cart Page
   ========================================================================== */

.cart-page {
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .cart-page { padding: 2.5rem 0; }
}

.cart-page .container {
  max-width: 56rem;
}

.cart-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cart-title { font-size: 1.875rem; margin-bottom: 2rem; }
}
@media (min-width: 768px) {
  .cart-title { font-size: 2.25rem; }
}

.cart-empty {
  text-align: center;
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .cart-empty { padding: 5rem 0; }
}

.cart-empty svg {
  width: 3.5rem;
  height: 3.5rem;
  color: hsl(var(--muted-foreground));
  margin: 0 auto 1rem;
}

@media (min-width: 640px) {
  .cart-empty svg {
    width: 4rem;
    height: 4rem;
  }
}

.cart-empty p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cart-empty p { font-size: 1.25rem; }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cart-items {
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (min-width: 640px) {
  .cart-item {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
  }
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .cart-item-info { gap: 1.25rem; }
}

.cart-item-image {
  flex-shrink: 0;
}

.cart-item-image img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

@media (min-width: 640px) {
  .cart-item-image img {
    width: 6rem;
    height: 6rem;
  }
}

.cart-item-text {
  flex: 1;
  min-width: 0;
}

.cart-item-text h3 {
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cart-item-text h3 { font-size: 1.125rem; }
}

.cart-item-text h3:hover {
  color: hsl(var(--primary));
}

.cart-item-text .category {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .cart-item-text .category { font-size: 1rem; }
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cart-item-controls {
    justify-content: flex-end;
    gap: 1rem;
  }
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .quantity-controls { gap: 0.5rem; }
}

.quantity-btn {
  background-color: hsl(var(--muted));
  border-radius: 0.5rem;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

@media (min-width: 640px) {
  .quantity-btn { padding: 0.5rem; }
}

.quantity-btn:active {
  transform: scale(0.9);
}

.quantity-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

@media (min-width: 640px) {
  .quantity-btn svg {
    width: 1rem;
    height: 1rem;
  }
}

.quantity-value {
  width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .quantity-value {
    width: 2.5rem;
    font-size: 1.125rem;
  }
}

.cart-item-price {
  font-weight: 800;
  color: hsl(var(--primary));
  font-size: 1.125rem;
}

@media (min-width: 640px) {
  .cart-item-price { font-size: 1.25rem; }
}

.cart-item-remove {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  padding: 0.375rem;
  display: flex;
}

@media (min-width: 640px) {
  .cart-item-remove { padding: 0.5rem; }
}

.cart-item-remove:hover {
  color: hsl(var(--destructive));
}

.cart-item-remove svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .cart-item-remove svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Cart summary */
.cart-summary {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
  .cart-summary { padding: 2rem; }
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .cart-summary-row {
    margin-bottom: 1rem;
    font-size: 1.125rem;
  }
}

.cart-summary-row .label {
  color: hsl(var(--muted-foreground));
}

.cart-summary-row .value {
  font-weight: 700;
}

.cart-summary-total {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .cart-summary-total { margin-bottom: 1.5rem; }
}

.cart-summary-total .label {
  font-size: 1.125rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .cart-summary-total .label { font-size: 1.25rem; }
}

.cart-summary-total .value {
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

@media (min-width: 640px) {
  .cart-summary-total .value { font-size: 1.5rem; }
}

/* ==========================================================================
   14. Checkout Page
   ========================================================================== */

.checkout-page {
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .checkout-page { padding: 2.5rem 0; }
}

.checkout-page .container {
  max-width: 64rem;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .checkout-title { font-size: 1.875rem; margin-bottom: 2rem; }
}
@media (min-width: 768px) {
  .checkout-title { font-size: 2.25rem; }
}

.checkout-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

.checkout-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.checkout-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.checkout-form-grid .full-width {
  grid-column: span 2;
}

.checkout-form-grid label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.checkout-form-grid input {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: hsl(var(--background));
  outline: none;
  transition: box-shadow 0.2s;
}

.checkout-form-grid input:focus {
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: hsl(var(--muted));
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.payment-method:hover {
  background-color: hsl(var(--secondary));
}

.payment-method input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: hsl(var(--primary));
}

.payment-method span {
  font-size: 1rem;
  font-weight: 500;
}

/* Order summary sidebar */
.order-summary {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 9rem;
}

.order-summary h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.order-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.order-summary-item .name {
  color: hsl(var(--muted-foreground));
}

.order-summary-item .price {
  font-weight: 600;
}

.order-summary-totals {
  border-top: 1px solid hsl(var(--border));
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.order-summary-row .label {
  color: hsl(var(--muted-foreground));
}

.order-summary-row .value {
  font-weight: 600;
}

.order-summary-grand-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 800;
  padding-top: 0.5rem;
}

.order-summary-grand-total .value {
  color: hsl(var(--primary));
}

/* Checkout success */
.checkout-success {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  text-align: center;
}

.checkout-success .success-icon {
  width: 5rem;
  height: 5rem;
  background-color: hsl(var(--secondary));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.checkout-success .success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--primary));
}

.checkout-success h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.checkout-success p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* ==========================================================================
   15. 404 Page
   ========================================================================== */

.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  color: hsl(var(--muted-foreground));
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.page-404 p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* ==========================================================================
   16. Generic Page
   ========================================================================== */

.page-content {
  padding: 3rem 0;
}

.page-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.page-content .entry-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ==========================================================================
   17. SVG Icons (inline)
   ========================================================================== */

.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* ==========================================================================
   18. Utility Helpers
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }

.hidden { display: none; }

@media (min-width: 768px) {
  .md-hidden { display: none; }
}
