/* =========================================
   SKLEP – Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --primary: #8c7355;
    --primary-dark: #6b5840;
    --primary-light: #f0e8dc;
    --secondary: #7a9a6a;
    --secondary-dark: #5d7850;
    --success: #16a34a;
    --error: #dc2626;
    --warning: #d97706;

    --bg: #ffffff;
    --bg-secondary: #f9f5f0;
    --bg-tertiary: #f3ece3;
    --border: #e8ddd3;
    --border-dark: #d4c4b4;

    --text: #2c2418;
    --text-muted: #7a6a5a;
    --text-light: #b0a090;

    --font: 'Montserrat', sans-serif;
    --font-display: 'Cormorant Garamond', serif;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
    --shadow: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .14);

    --transition: 0.2s ease;
    --header-h: 84px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

/* --- Display font for major headings --- */
.hero h1,
.hero-section h1,
.section-title,
.page-header h1,
.product-info-title,
.hero-heading {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
}

input,
textarea,
select {
    font-family: var(--font);
}

/* --- Utility --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(140, 115, 85, .35);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-ghost {
    background: var(--bg-tertiary);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--border);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-success {
    background: #dcfce7;
    color: var(--success);
}

.badge-error {
    background: #fee2e2;
    color: var(--error);
}

.badge-warning {
    background: #fef3c7;
    color: var(--warning);
}

.badge-neutral {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* --- Forms --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.form-error {
    font-size: 12px;
    color: var(--error);
}

/* --- Cards --- */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.card-lg {
    padding: 28px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    min-width: 0;
}

@media (max-width: 400px) {
    .header-inner {
        gap: 8px;
    }

    .header-actions {
        gap: 2px;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 220px;
    min-height: 46px;
}

.header-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo .logo-icon svg {
    color: #fff;
}

.header-logo .logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.header-logo .logo-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 9px 16px 9px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--bg-secondary);
    transition: all var(--transition);
    outline: none;
}

.header-search input:focus {
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
    background: transparent;
}

.header-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.header-action-btn .count-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    color: var(--text);
    background: transparent;
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-tertiary);
}

/* --- Nav Bar --- */
.site-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.site-nav .container {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 46px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav .container::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* --- Mobile Overlay Nav --- */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.open {
    display: block;
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--bg);
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-overlay.open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}

.mobile-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* =========================================
   PRODUCT CARDS
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-dark);
    transform: translateY(-2px);
}

.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-img .badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: scale(.8);
}

.product-card:hover .product-card-wishlist {
    opacity: 1;
    transform: scale(1);
}

.product-card-wishlist:hover {
    color: var(--error);
    background: #fff;
}

.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-card-price .old-price {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.product-card-footer {
    margin-top: auto;
}

.product-card .btn-add {
    width: 100%;
    font-size: 13px;
    padding: 9px;
}

.product-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-secondary);
}

/* =========================================
   SECTION STYLES
   ========================================= */
.section {
    padding: 60px 0;
}

.section-sm {
    padding: 40px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 6px;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    background: linear-gradient(135deg, #1a1008 0%, #3d2818 55%, #6b4030 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-container {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .hero-container { padding-top: 40px; padding-bottom: 40px; }
}

@media (max-width: 480px) {
    .hero-container { padding-top: 32px; padding-bottom: 32px; }
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .9);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1,
.hero-section h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero p,
.hero-section p {
    font-size: 17px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 1px;
}

.hero .btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, .1);
}

.hero-img {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    display: none;
}

/* =========================================
   CATEGORIES CHIPS
   ========================================= */
.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 100px;
    text-align: center;
}

.cat-chip:hover,
.cat-chip.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.cat-chip-icon {
    font-size: 28px;
}

.cat-chip-name {
    font-size: 12px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
}

/* =========================================
   PROMO BANNER
   ========================================= */
.promo-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #a0c88a 100%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.promo-banner h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.promo-banner p {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    margin-top: 4px;
}

.promo-banner .btn {
    background: #fff;
    color: var(--secondary-dark);
    font-weight: 700;
}

.promo-banner .btn:hover {
    background: var(--bg-secondary);
}

/* =========================================
   FEATURES STRIP
   ========================================= */
.features-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg);
}

.feature-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item-name {
    font-size: 13px;
    font-weight: 700;
}

.feature-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =========================================
   FILTERS (Produkty)
   ========================================= */
.filters-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}

.filter-select {
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-search {
    flex: 1;
    min-width: 180px;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.filter-search:focus {
    border-color: var(--primary);
}

.results-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    line-height: 1;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.filter-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.filter-chip.active:hover {
    background: var(--primary-dark);
}

/* =========================================
   PRODUCT DETAIL
   ========================================= */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.product-gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    margin-bottom: 12px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .15s;
}

.gallery-zoom-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    display: block;
}

.gallery-zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.gallery-zoom-wrap:hover .gallery-zoom-icon {
    opacity: 1;
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color var(--transition);
    background: var(--bg-secondary);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-info-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.product-info-old-price {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
}

.product-info-availability {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.dot.out {
    background: var(--error);
}

.product-info-variants {
    margin-bottom: 20px;
}

.variant-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg);
    color: var(--text);
}

.variant-btn.active,
.variant-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.product-qty-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-input button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-secondary);
    color: var(--text);
    transition: background var(--transition);
}

.qty-input button:hover {
    background: var(--border);
}

.qty-input input {
    width: 48px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.product-shipping-info {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.shipping-row svg {
    color: var(--primary);
    flex-shrink: 0;
}

.product-tabs {
    margin-top: 32px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 0;
}

.tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    cursor: pointer;
}

.tab-btn.active {
    color: var(--primary);
    border-color: var(--primary);
}

.tab-content {
    padding: 24px 0;
    display: grid;
}

.tab-panel {
    grid-area: 1 / 1;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.tab-panel.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.product-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    font-family: inherit;
}
.product-description p {
    margin: 0 0 14px;
    color: var(--text-muted);
}
.product-description p:last-child { margin-bottom: 0; }
.product-description strong,
.product-description b {
    color: var(--text);
    font-weight: 600;
}
.product-description ul,
.product-description ol {
    padding-left: 20px;
    margin: 8px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-muted);
}
.product-description li { line-height: 1.7; }
.product-description br { display: block; content: ''; margin-top: 10px; }

/* =========================================
   CART
   ========================================= */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-body {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-remove {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
}

.cart-item-remove:hover {
    color: var(--error);
}

.order-summary-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
}

.summary-row.total {
    font-size: 17px;
    font-weight: 700;
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
}

.summary-row.total .price {
    color: var(--primary);
}

/* =========================================
   CHECKOUT
   ========================================= */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.checkout-step {
    margin-bottom: 24px;
}

.checkout-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    font-size: 17px;
    font-weight: 700;
}

.shipping-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 8px;
}

.shipping-option:hover,
.payment-option:hover {
    border-color: var(--primary-dark);
}

.shipping-option.selected,
.payment-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.shipping-option input[type=radio],
.payment-option input[type=radio] {
    accent-color: var(--primary);
}

.shipping-option-body,
.payment-option-body {
    flex: 1;
}

.shipping-option-name,
.payment-option-name {
    font-size: 14px;
    font-weight: 600;
}

.shipping-option-desc,
.payment-option-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.shipping-option-price {
    font-weight: 700;
    font-size: 14px;
}

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px 0;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--border-dark);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: #1a1208;
    color: rgba(255, 255, 255, .75);
    padding: 56px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 12px;
    color: rgba(255, 255, 255, .55);
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
}

.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* =========================================
   TOAST / NOTIFICATIONS
   ========================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    animation: slideIn .3s ease;
    max-width: 320px;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* =========================================
   EMPTY STATE
   ========================================= */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: .4;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* =========================================
   SPINNER
   ========================================= */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

/* =========================================
   PAGE HEADER
   ========================================= */
.page-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.page-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: fadeScale .25s ease;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery {
        position: static;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-box {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .hero h1,
    .hero-section h1 {
        font-size: 30px;
    }

    .hero p,
    .hero-section p {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .site-nav {
        display: none;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .features-strip {
        grid-template-columns: 1fr 1fr;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 20px 0;
        margin-bottom: 24px;
    }

    .page-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-h: 60px;
    }

    .hero,
    .hero-section {
        min-height: 420px;
    }

    .hero h1,
    .hero-section h1 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-label {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .features-strip {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 12px 16px;
        gap: 12px;
    }

    .feature-item-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-body {
        padding: 10px;
    }

    .product-card-name {
        font-size: 13px;
    }

    .product-card-price {
        font-size: 15px;
    }

    .container {
        padding: 0 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .btn-lg {
        padding: 12px 22px;
        font-size: 14px;
    }

    .hero-actions .btn {
        max-width: 100%;
    }
}

/* =========================================
   ACCOUNT / ORDERS PAGE
   ========================================= */

/* Auth grid (login + sidebar) */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 640px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 2-column form fields */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.account-sidebar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.account-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.account-sidebar-item:hover,
.account-sidebar-item.active {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary);
}

.account-panel {
    display: none;
}

.account-panel.active {
    display: block;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
}

.orders-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.orders-table tr:hover td {
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }
}

/* =========================================
   OMNIBUS DIRECTIVE (UOKiK compliance)
   ========================================= */
/* "Najniższa cena z 30 dni" – required by Polish law when showing discounts */
.omnibus-price {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Product detail page version – slightly larger */
.omnibus-price-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 16px;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}