/* ================================================================
   FENIX FIRANY — Vanilla CSS
   Translated 1:1 from React (Tailwind + shadcn/ui)
   Following tajne-tlumaczenie.md rules strictly
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Lato:wght@300;400;500;700&display=swap');

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

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

ul, ol {
    list-style: none;
    padding: 0;
}

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

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

button {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* === CSS Custom Properties (from index.css :root) === */
:root {
    --background: 35 30% 97%;
    --foreground: 25 20% 15%;
    --card: 35 25% 95%;
    --card-foreground: 25 20% 15%;
    --popover: 35 30% 97%;
    --popover-foreground: 25 20% 15%;
    --primary: 30 45% 35%;
    --primary-foreground: 35 30% 97%;
    --secondary: 35 20% 90%;
    --secondary-foreground: 25 20% 20%;
    --muted: 35 15% 92%;
    --muted-foreground: 25 10% 45%;
    --accent: 38 55% 50%;
    --accent-foreground: 35 30% 97%;
    --destructive: 0 65% 50%;
    --destructive-foreground: 0 0% 100%;
    --border: 30 15% 85%;
    --input: 30 15% 85%;
    --ring: 30 45% 35%;
    --radius: 0.75rem;
    --warm-cream: 38 40% 94%;
    --warm-beige: 32 25% 85%;
    --warm-gold: 38 65% 55%;
    --warm-brown: 25 35% 30%;
    --warm-light: 40 35% 98%;
}

/* === Base === */
* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* font-heading from tailwind config */
.font-heading {
    font-family: 'Poppins', sans-serif;
}

/* === Container (from tailwind.config: center, padding 1rem, max 1400px) === */
.container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* === Scrollbar (from index.css) === */
* {
    scrollbar-width: thin;
    scrollbar-color: hsl(30 15% 75% / 0.3) transparent;
}

*:hover {
    scrollbar-color: hsl(30 15% 65% / 0.5) transparent;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsl(30 15% 75% / 0.3); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: hsl(30 15% 65% / 0.5); }

/* ================================================================
   HEADER
   From Header.tsx: sticky top-0, z-50, bg-background/95, backdrop-blur-sm, border-b
   ================================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid hsl(var(--border));
}

/* Top bar: bg-primary, text-primary-foreground, text-xs, text-center, py-1.5, px-4 */
.header-topbar {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    line-height: 1rem;
    text-align: center;
    padding: 0.375rem 1rem;
}

/* Main header row: container flex items-center justify-between h-16 gap-4 */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    gap: 1rem;
}

/* Logo: font-heading text-xl md:text-2xl font-bold text-primary */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.header-logo .text-accent {
    color: hsl(var(--accent));
}

/* Desktop nav: hidden md:flex items-center gap-6 */
.header-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

/* Nav link: text-sm font-medium text-foreground/80 hover:text-primary transition-colors */
.header-nav a {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: hsl(var(--foreground) / 0.8);
    transition: color 0.15s;
}

.header-nav a:hover {
    color: hsl(var(--primary));
}

/* Actions: flex items-center gap-2 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icon button (ghost variant + size icon from shadcn):
   h-10 w-10, inline-flex items-center justify-center, rounded-md
   hover:bg-accent hover:text-accent-foreground */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc(var(--radius) - 2px);
    transition: background-color 0.15s, color 0.15s;
    position: relative;
}

.icon-btn:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Badge on icon: absolute -top-1 -right-1, w-5 h-5 rounded-full, text-xs, font-bold */
.icon-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-badge-accent {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.icon-badge-destructive {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

/* Hamburger: md:hidden */
.hamburger-btn {
    display: inline-flex;
}

/* Mobile menu: md:hidden, border-t, bg-background, p-4, space-y-2 */
.mobile-nav {
    display: none;
    border-top: 1px solid hsl(var(--border));
    background-color: hsl(var(--background));
    padding: 1rem;
}

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

/* block py-2 px-3 rounded-md text-sm font-medium hover:bg-muted transition-colors */
.mobile-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition: background-color 0.15s;
}

.mobile-nav a + a {
    margin-top: 0.5rem;
}

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

/* Search bar: border-t, p-3, bg-background */
.search-bar {
    display: none;
    border-top: 1px solid hsl(var(--border));
    padding: 0.75rem;
    background-color: hsl(var(--background));
}

.search-bar.open {
    display: block;
}

.search-bar-inner {
    max-width: 32rem;
    margin: 0 auto;
}

/* Input: shadcn input — h-10, rounded-md, border, bg-muted, text-sm, px-3 */
.search-input {
    display: block;
    width: 100%;
    height: 2.5rem;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--muted));
    padding: 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: hsl(var(--foreground));
    outline: none;
    font-family: inherit;
}

.search-input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* ================================================================
   FOOTER
   From Footer.tsx: bg-primary, text-primary-foreground, mt-16
   ================================================================ */

.site-footer {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    margin-top: 4rem;
}

/* container py-12, grid grid-cols-1 md:grid-cols-4 gap-8 */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Footer heading: font-heading text-xl font-bold mb-4 */
.footer-grid h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Footer subheading: font-heading font-semibold mb-4 */
.footer-grid h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* text-sm opacity-80 leading-relaxed */
.footer-text {
    font-size: 0.875rem;
    line-height: 1.625;
    opacity: 0.8;
}

/* ul: space-y-2 text-sm opacity-80 */
.footer-list {
    font-size: 0.875rem;
    line-height: 1.25rem;
    opacity: 0.8;
}

.footer-list li + li {
    margin-top: 0.5rem;
}

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

.footer-list a {
    transition: opacity 0.15s;
}

.footer-list a:hover {
    opacity: 1;
}

.footer-list svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Footer bottom: border-t border-primary-foreground/10 py-4 text-center text-xs opacity-60 */
.footer-bottom {
    border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1rem;
    opacity: 0.6;
}

.footer-bottom a {
    transition: color 0.15s;
}

.footer-bottom a:hover {
    color: hsl(var(--accent));
    text-decoration: underline;
}

/* ================================================================
   HERO SECTION
   From Index.tsx: relative h-[60vh] md:h-[70vh] flex items-center justify-center overflow-hidden
   ================================================================ */

.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile overlay: absolute inset-0 bg-black/60 */
.hero-overlay-mobile {
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 0.6);
}

/* Desktop gradient: absolute inset-0 hidden md:block bg-gradient-to-r from-black/70 via-black/40 to-transparent */
.hero-overlay-desktop {
    position: absolute;
    inset: 0;
    display: none;
    background: linear-gradient(to right, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.4), transparent);
}

/* relative z-10 text-center px-4 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* font-heading text-4xl md:text-6xl font-bold text-white mb-4 drop-shadow-lg */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

.hero-title .text-accent {
    color: hsl(var(--accent));
}

/* text-white text-lg md:text-xl max-w-xl mx-auto mb-6 drop-shadow-md */
.hero-subtitle {
    color: white;
    font-size: 1.125rem;
    line-height: 1.75rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
}

/* inline-block bg-accent text-accent-foreground px-8 py-3 rounded-lg font-semibold hover:opacity-90 transition-opacity */
.hero-cta {
    display: inline-block;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: opacity 0.15s;
}

.hero-cta:hover {
    opacity: 0.9;
}

/* ================================================================
   CATEGORIES GRID
   From Index.tsx: container py-16, grid grid-cols-1 md:grid-cols-3 gap-6
   ================================================================ */

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

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

/* group relative rounded-xl overflow-hidden aspect-[4/3] bg-muted */
.category-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: hsl(var(--muted));
    display: block;
}

/* w-full h-full object-cover group-hover:scale-110 transition-transform duration-500 */
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.1);
}

/* absolute inset-0 bg-gradient-to-t from-foreground/70 to-transparent */
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(var(--foreground) / 0.7), transparent);
}

/* absolute bottom-4 left-4 right-4 text-white */
.category-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
}

/* font-heading text-xl font-bold */
.category-label h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
}

/* text-sm opacity-80 */
.category-label p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    opacity: 0.8;
}

/* ================================================================
   PRODUCT CARD
   From ProductCard.tsx
   ================================================================ */

/* group bg-card rounded-lg overflow-hidden border border-border hover:shadow-lg transition-all duration-300 */
.product-card {
    background-color: hsl(var(--card));
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* aspect-square overflow-hidden bg-muted relative */
.product-card-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: hsl(var(--muted));
    position: relative;
}

/* w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 */
.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);
}

/* Favorite button: absolute top-2 right-2 z-10 p-1.5 rounded-full bg-background/80 backdrop-blur-sm */
.product-card-fav {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    padding: 0.375rem;
    border-radius: 9999px;
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-card-fav:hover {
    background-color: hsl(var(--background));
}

.product-card-fav svg {
    width: 16px;
    height: 16px;
    color: hsl(var(--muted-foreground));
    transition: color 0.15s;
}

.product-card-fav.active svg {
    color: #ef4444;
    fill: #ef4444;
}

/* p-4 */
.product-card-body {
    padding: 1rem;
}

/* text-sm font-medium leading-tight line-clamp-2 hover:text-primary transition-colors mb-1 */
.product-card-title {
    font-size: 0.875rem;
    line-height: 1.25;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
    margin-bottom: 0.25rem;
}

.product-card-title:hover {
    color: hsl(var(--primary));
}

/* text-xs text-muted-foreground mb-1 */
.product-card-meta {
    font-size: 0.75rem;
    line-height: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

/* flex items-center justify-between mt-auto */
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* font-heading text-lg font-bold text-primary */
.product-card-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

/* Button size sm variant outline: h-8 w-8 p-0, border, rounded-md */
.product-card-cart-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.product-card-cart-btn:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
}

.product-card-cart-btn svg {
    width: 16px;
    height: 16px;
}

/* Products grid: grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Loader */
.products-loader {
    text-align: center;
    padding: 3rem 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* ================================================================
   INFO BANNER
   From Index.tsx: grid grid-cols-1 md:grid-cols-3 gap-6
   ================================================================ */

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

/* flex items-center gap-4 p-6 rounded-xl bg-card border border-border */
.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
}

/* shrink-0 w-12 h-12 rounded-full bg-accent/10 flex items-center justify-center */
.info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: hsl(var(--accent) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--accent));
}

/* font-semibold */
.info-card h3 {
    font-weight: 600;
}

/* text-sm text-muted-foreground */
.info-card p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: hsl(var(--muted-foreground));
}

/* bg-muted */
.bg-muted {
    background-color: hsl(var(--muted));
}

/* Star rating */
.star-rating {
    display: flex;
    align-items: center;
    gap: 1px;
}

.star-rating svg {
    color: hsl(var(--accent));
}

/* ================================================================
   ANIMATIONS (replaces framer-motion)
   ================================================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.fade-in.visible {
    opacity: 1;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Hero specific animations — initial load, not scroll-based */
.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease-out forwards;
}

.hero-animate-delay-1 {
    animation-delay: 0.2s;
}

.hero-animate-delay-2 {
    animation-delay: 0.5s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */

.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    animation: toastIn 0.3s ease-out;
    max-width: 20rem;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */

.text-accent { color: hsl(var(--accent)); }
.text-primary { color: hsl(var(--primary)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }

/* py-16 */
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
/* py-12 */
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Hidden */
.hidden-mobile { display: none; }

/* ================================================================
   BREADCRUMBS
   From ShopPage/CategoryPage/ProductPage: flex items-center gap-1.5 text-sm text-muted-foreground
   ================================================================ */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: hsl(var(--muted-foreground));
    flex-wrap: wrap;
}

.breadcrumbs a {
    transition: color 0.15s;
}

.breadcrumbs a:hover {
    color: hsl(var(--primary));
}

.breadcrumbs .current {
    color: hsl(var(--foreground));
    font-weight: 500;
}

.breadcrumbs svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ================================================================
   SELECT DROPDOWN (replaces shadcn Select)
   ================================================================ */

.select-wrap {
    position: relative;
    display: inline-block;
}

.select-native {
    appearance: none;
    -webkit-appearance: none;
    height: 2.25rem;
    padding: 0 2rem 0 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    min-width: 11.25rem;
}

.select-native:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.select-arrow {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: hsl(var(--muted-foreground));
}

.select-arrow svg {
    width: 14px;
    height: 14px;
}

/* ================================================================
   SHOP PAGE — Filter Sidebar + Layout
   ================================================================ */

/* flex gap-8 */
.shop-layout {
    display: flex;
    gap: 2rem;
}

/* hidden md:block w-[260px] shrink-0 */
.shop-sidebar {
    display: none;
    width: 260px;
    flex-shrink: 0;
}

/* sticky top-28 */
.shop-sidebar-inner {
    position: sticky;
    top: 7rem;
}

/* flex-1 min-w-0 */
.shop-main {
    flex: 1;
    min-width: 0;
}

/* Shop products grid: grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 md:gap-4 */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* Filter section: space-y-6 */
.filters-section > * + * {
    margin-top: 1.5rem;
}

/* Filter heading: font-semibold text-sm uppercase tracking-wider text-foreground mb-3 */
.filter-heading {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

/* Checkbox label: flex items-center gap-3 cursor-pointer group py-1 */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0;
}

.filter-checkbox + .filter-checkbox {
    margin-top: 0.5rem;
}

/* text-sm text-foreground/80 group-hover:text-foreground flex-1 */
.filter-checkbox span {
    font-size: 0.875rem;
    color: hsl(var(--foreground) / 0.8);
    transition: color 0.15s;
    flex: 1;
}

.filter-checkbox:hover span {
    color: hsl(var(--foreground));
}

/* text-xs text-muted-foreground */
.filter-count {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Checkbox input (styled to match shadcn) */
.custom-checkbox {
    width: 1rem;
    height: 1rem;
    border: 2px solid hsl(var(--primary));
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background-color: hsl(var(--primary));
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: hsl(var(--primary-foreground));
    font-size: 0.7rem;
    font-weight: 700;
}

/* Price range slider */
.price-range {
    padding: 0 0.25rem;
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    background: hsl(var(--border));
    outline: none;
    cursor: pointer;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: hsl(var(--primary));
    border: 2px solid white;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.75rem;
}

/* Clear filters button (ghost variant) */
.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    border-radius: calc(var(--radius) - 2px);
    transition: color 0.15s, background-color 0.15s;
}

.clear-filters-btn:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--muted));
}

.clear-filters-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile filters button */
.mobile-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s;
}

.mobile-filters-btn:hover {
    background-color: hsl(var(--muted));
}

.mobile-filters-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile filter panel (overlay) */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgb(0 0 0 / 0.5);
}

.mobile-filter-overlay.open {
    display: block;
}

.mobile-filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 61;
    background: hsl(var(--background));
    border-radius: 1rem 1rem 0 0;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.mobile-filter-overlay.open .mobile-filter-panel {
    transform: translateY(0);
}

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

.mobile-filter-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
}

/* ================================================================
   PRODUCT PAGE
   From ProductPage.tsx
   ================================================================ */

/* grid grid-cols-1 md:grid-cols-2 gap-8 lg:gap-12 */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* aspect-square rounded-xl overflow-hidden bg-muted border border-border relative */
.product-image-box {
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    position: relative;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

/* Fav button on product image: absolute top-3 right-3 p-2 rounded-full bg-background/80 */
.product-fav-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    padding: 0.5rem;
    border-radius: 9999px;
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-fav-btn:hover {
    background-color: hsl(var(--background));
}

.product-fav-btn svg {
    width: 20px;
    height: 20px;
    color: hsl(var(--muted-foreground));
    transition: color 0.15s;
}

.product-fav-btn.active svg {
    color: #ef4444;
    fill: #ef4444;
}

/* Product title: font-heading text-2xl md:text-3xl font-bold mb-1 */
.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* font-heading text-3xl font-bold text-primary mb-6 */
.product-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
}

/* text-muted-foreground leading-relaxed mb-6 */
.product-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

/* Variant selector */
.variant-label {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* px-3 py-2 rounded-lg border text-sm font-medium */
.variant-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    font-size: 0.875rem;
    font-weight: 500;
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground) / 0.8);
    transition: all 0.2s;
}

.variant-btn:hover {
    border-color: hsl(var(--primary) / 0.5);
    background-color: hsl(var(--muted) / 0.8);
}

/* Selected: border-primary bg-primary/10 text-primary ring-1 ring-primary/30 */
.variant-btn.selected,
.variant-btn.active {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
    font-weight: 600;
}

.variant-btn .variant-price {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Quantity selector: flex items-center border border-border rounded-lg */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.quantity-selector button {
    padding: 0.5rem 0.75rem;
    transition: background-color 0.15s;
}

.quantity-selector button:hover {
    background-color: hsl(var(--muted));
}

.quantity-selector span {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Add to cart button (primary variant) */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    font-size: 0.875rem;
    transition: opacity 0.15s;
}

.add-to-cart-btn:hover {
    opacity: 0.9;
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

/* Shipping info: border-t border-border pt-4 text-sm text-muted-foreground space-y-1 */
.shipping-info {
    border-top: 1px solid hsl(var(--border));
    padding-top: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.shipping-info p + p {
    margin-top: 0.25rem;
}

/* ================================================================
   REVIEWS SECTION
   From ReviewsSection.tsx
   ================================================================ */

.reviews-section {
    margin-top: 4rem;
    scroll-margin-top: 2rem;
}

/* font-heading text-2xl font-bold mb-2 */
.reviews-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.reviews-title .count {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    font-weight: 400;
}

/* Review card: border border-border rounded-lg p-4 bg-muted/30 */
.review-card {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: hsl(var(--muted) / 0.3);
}

.review-card + .review-card {
    margin-top: 1rem;
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-author span {
    font-weight: 500;
    font-size: 0.875rem;
}

.review-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.review-text {
    font-size: 0.875rem;
    color: hsl(var(--foreground) / 0.8);
}

/* Review form: border border-border rounded-lg p-6 bg-muted/20 */
.review-form-wrap {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: hsl(var(--muted) / 0.2);
    margin-top: 2rem;
}

/* font-heading text-lg font-semibold mb-4 */
.review-form-wrap h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.review-form > * + * {
    margin-top: 1rem;
}

/* text-sm font-medium block mb-1 */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

/* shadcn Input: h-10, border, rounded-md, bg-background, px-3 */
.form-input {
    display: block;
    width: 100%;
    height: 2.5rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--background));
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    font-family: inherit;
    outline: none;
}

.form-input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* shadcn Textarea: border, rounded-md, bg-background, px-3, py-2 */
.form-textarea {
    display: block;
    width: 100%;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 5rem;
}

.form-textarea:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Submit button (primary) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    font-size: 0.875rem;
    transition: opacity 0.15s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Outline button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.15s, color 0.15s;
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* Star rating interactive */
.star-rating-input {
    display: flex;
    gap: 2px;
    cursor: pointer;
}

.star-rating-input svg {
    transition: color 0.15s;
}

.star-rating-input svg:hover {
    color: hsl(var(--accent));
}

/* ================================================================
   RESPONSIVE — md: 768px
   ================================================================ */

@media (min-width: 768px) {
    .hamburger-btn { display: none; }
    .header-nav { display: flex; }
    .header-logo span { font-size: 1.5rem; }
    .hero { height: 70vh; }
    .hero-title { font-size: 3.75rem; line-height: 1; }
    .hero-subtitle { font-size: 1.25rem; line-height: 1.75rem; }
    .hero-overlay-mobile { background-color: transparent; }
    .hero-overlay-desktop { display: block; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .info-grid { grid-template-columns: repeat(3, 1fr); }
    .hidden-mobile { display: inline-flex; }
    .mobile-filters-btn { display: none; }
    .shop-sidebar { display: block; }
    .shop-products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .product-detail-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .product-title { font-size: 1.875rem; line-height: 2.25rem; }
    #checkout-form { grid-template-columns: 3fr 2fr; }
}

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

/* ═══════════════════════════════════════════
   CHECKOUT, FORMS, AUTH STYLES
   ═══════════════════════════════════════════ */

.checkout-card {
    background: hsl(var(--card));
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
}

.checkout-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .checkout-fields-grid { grid-template-columns: 1fr 1fr; }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: hsl(var(--foreground));
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}
.form-input::placeholder {
    color: hsl(var(--muted-foreground) / 0.6);
}

textarea.form-input {
    resize: vertical;
    min-height: 4rem;
}

.checkout-radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: background-color 0.15s;
}
.checkout-radio-option:hover {
    background: hsl(var(--muted));
}
.checkout-radio {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: hsl(var(--primary));
    flex-shrink: 0;
}

/* Auth tabs */
.auth-tab {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.auth-tab.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.auth-tab:hover:not(.active) {
    background: hsl(var(--muted) / 0.8);
}

/* Order status badges */
.order-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.order-badge-delivered { background: #dcfce7; color: #15803d; }
.order-badge-shipped { background: #dbeafe; color: #1d4ed8; }
.order-badge-processing { background: #fef9c3; color: #a16207; }
.order-badge-pending { background: #fef3c7; color: #92400e; }
.order-badge-cancelled { background: #fee2e2; color: #b91c1c; }

/* Outline button */
.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: hsl(var(--muted));
}
