/* ========================================
   POLMAIS — Wspólne style
   Brandbook 2025: #FF6C00 + #257150
   Font: Satoshi (fallback: Inter)
   ======================================== */

:root {
    --orange: #FF6C00;
    --orange-hover: #e56200;
    --orange-light: #FF8D40;
    --orange-lighter: #FFB380;
    --orange-lightest: #FFD9C0;
    --orange-bg: #FFF7F0;
    --green: #257150;
    --green-hover: #1d5a40;
    --green-light: #5F947E;
    --green-lighter: #95B7A8;
    --green-lightest: #CBDCD4;
    --green-bg: #f0f7f4;
    --yellow: #F49D03;
    --dark-red: #A02200;
    --navy: #2E2370;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* ======== TOP BAR ======== */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-400);
    font-size: 12px;
    padding: 6px 0;
    letter-spacing: 0.01em;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left { display: flex; gap: 16px; align-items: center; }
.top-bar-left span { display: flex; align-items: center; gap: 4px; }
.top-bar-right { display: flex; gap: 14px; align-items: center; }
.top-bar a { color: var(--gray-400); transition: color var(--transition); }
.top-bar a:hover { color: var(--white); }
.top-bar .sep { color: var(--gray-700); }

/* ======== HEADER ======== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
    width: 42px; height: 42px;
    background: var(--orange);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 20px;
}
.logo-name { font-size: 20px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; }
.logo-claim { font-size: 10px; color: var(--green); font-weight: 500; display: block; margin-top: -2px; }

/* Search - advanced dropdown */
.search-box { flex: 1; max-width: 560px; position: relative; }
.search-input-wrap {
    display: flex; align-items: center; border: 2px solid var(--gray-200);
    border-radius: 8px; background: var(--gray-50); transition: all var(--transition);
    position: relative;
}
.search-input-wrap:focus-within { border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgba(255,108,0,0.1); }
.search-icon-left { position: absolute; left: 12px; color: var(--gray-400); pointer-events: none; flex-shrink: 0; }
.search-box input {
    flex: 1; padding: 10px 10px 10px 38px; border: none; background: transparent;
    font-size: 13px; outline: none; min-width: 0;
}
.search-box input::placeholder { color: var(--gray-400); }
.search-shortcut {
    display: flex; align-items: center; padding: 3px 7px; margin-right: 6px;
    background: var(--gray-200); border-radius: 4px; font-size: 11px;
    color: var(--gray-500); font-weight: 600; white-space: nowrap; pointer-events: none;
}
.search-btn {
    padding: 8px 16px; background: var(--orange); border: none; border-radius: 0 6px 6px 0;
    color: white; font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: background var(--transition); margin: -2px -2px -2px 0;
}
.search-btn:hover { background: var(--orange-hover); }

/* Dropdown */
.search-dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12); max-height: 480px; overflow-y: auto;
    scrollbar-width: thin;
}
.search-dropdown.open { display: block; }
.sd-section { padding: 10px 16px; border-bottom: 1px solid var(--gray-100); }
.sd-section:last-child { border-bottom: none; }
.sd-title {
    font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.sd-count { background: var(--gray-200); padding: 1px 6px; border-radius: 8px; font-size: 10px; color: var(--gray-500); }
.sd-item {
    display: flex; align-items: center; gap: 8px; padding: 7px 8px;
    border-radius: 6px; font-size: 13px; color: var(--gray-700);
    transition: background var(--transition);
}
.sd-item:hover { background: var(--gray-50); }
.sd-item svg { color: var(--gray-400); flex-shrink: 0; }
.sd-item mark { background: var(--orange-lightest); color: var(--orange); font-weight: 600; border-radius: 2px; padding: 0 1px; }
.sd-suggestion { color: var(--gray-600); }
.sd-category svg { color: var(--green); }

/* Tags */
.sd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-tag {
    padding: 5px 12px; background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 20px; font-size: 12px; color: var(--gray-600); font-weight: 500;
    transition: all var(--transition);
}
.sd-tag:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-bg); }

/* Crops */
.sd-crops { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-crop {
    display: flex; align-items: center; gap: 6px; padding: 6px 12px;
    background: var(--green-bg); border: 1px solid var(--green-lightest);
    border-radius: 8px; font-size: 12px; color: var(--green); font-weight: 600;
    transition: all var(--transition);
}
.sd-crop:hover { background: var(--green); color: white; border-color: var(--green); }
.sd-crop-icon { font-size: 16px; }

/* Products in search */
.sd-product {
    display: flex; align-items: center; gap: 10px; padding: 8px;
    border-radius: 8px; transition: background var(--transition);
}
.sd-product:hover { background: var(--gray-50); }
.sd-product-img {
    width: 48px; height: 48px; background: var(--gray-100); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; color: var(--gray-300); flex-shrink: 0;
}
.sd-product-info { flex: 1; min-width: 0; }
.sd-product-name {
    font-size: 13px; font-weight: 600; color: var(--gray-900);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 6px;
}
.sd-product-cat { font-size: 11px; color: var(--gray-500); }
.sd-product-price { font-size: 14px; font-weight: 700; color: var(--orange); white-space: nowrap; }

/* Footer */
.sd-footer { padding: 10px 16px; background: var(--gray-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.sd-view-all { font-size: 13px; color: var(--orange); font-weight: 600; display: block; text-align: center; padding: 4px; }

/* Empty state */
.sd-empty { text-align: center; padding: 20px 0; }
.sd-empty p { font-size: 14px; color: var(--gray-700); margin-top: 8px; }
.sd-empty span { font-size: 12px; color: var(--gray-400); }

/* Header icon actions with badge */
.h-action-icon {
    position: relative; padding: 8px !important;
}
.h-action-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--orange); color: white; font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
}

.header-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; position: relative; z-index: 120; }
.h-action {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 500; color: var(--gray-600);
    transition: all var(--transition); border: 1px solid transparent;
}
.h-action:hover { background: var(--gray-50); color: var(--gray-900); }
.h-action svg { width: 20px; height: 20px; flex-shrink: 0; }
.h-action .label { display: inline; }
.h-action-cart {
    background: var(--orange); color: white; font-weight: 600;
    border-color: var(--orange);
}
.h-action-cart:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: white; }
.cart-count {
    background: var(--white); color: var(--orange);
    font-size: 11px; font-weight: 700; padding: 1px 6px;
    border-radius: 10px; min-width: 20px; text-align: center;
}

/* ======== MAIN NAV ======== */
.main-nav { background: var(--green); position: relative; z-index: 90; }
.nav-list {
    display: flex; list-style: none; align-items: stretch;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-item > a {
    display: flex; align-items: center; gap: 6px;
    padding: 11px 16px; color: white; font-size: 13px; font-weight: 600;
    transition: background var(--transition); white-space: nowrap;
}
.nav-item > a:hover, .nav-item.active > a { background: rgba(255,255,255,0.12); }

/* Mega Menu */
.mega-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 3px solid var(--orange);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100; padding: 24px 0;
}
.nav-item:hover .mega-menu { display: block; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mega-col h4 {
    font-size: 13px; font-weight: 700; color: var(--gray-900);
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 2px solid var(--orange-lightest);
}
.mega-col ul { list-style: none; }
.mega-col li { margin-bottom: 4px; }
.mega-col a {
    font-size: 13px; color: var(--gray-600); padding: 3px 0; display: block;
    transition: color var(--transition);
}
.mega-col a:hover { color: var(--orange); }
.mega-promo {
    background: var(--orange-bg); border-radius: var(--radius); padding: 16px;
}
.mega-promo h4 { border-bottom-color: var(--orange-lighter); }
.mega-promo-img {
    width: 100%; height: 120px; background: var(--gray-200);
    border-radius: 6px; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); font-size: 12px;
}

/* ======== BREADCRUMBS ======== */
.breadcrumbs {
    padding: 12px 0; font-size: 12px; color: var(--gray-500);
    border-bottom: 1px solid var(--gray-100);
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span { margin: 0 6px; color: var(--gray-300); }

/* ======== BUTTONS ======== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 6px;
    font-size: 13px; font-weight: 600;
    transition: all var(--transition); border: 1px solid transparent;
    line-height: 1.4;
}
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-secondary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-outline { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--gray-500); background: var(--gray-50); }
.btn-ghost { background: transparent; color: var(--gray-600); border: none; padding: 8px 12px; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-white { background: white; color: var(--gray-800); border-color: white; }
.btn-white:hover { background: var(--gray-100); }
.btn-block { width: 100%; }

/* ======== BADGES ======== */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-sor { background: #FEF3C7; color: #92400E; }
.badge-new { background: var(--green-bg); color: var(--green); }
.badge-promo { background: #FEE2E2; color: var(--dark-red); }
.badge-bestseller { background: #EDE9FE; color: #5B21B6; }

/* ======== NEWSLETTER ======== */
.newsletter-section { padding: 48px 0; background: var(--gray-50); }
.nl-card {
    background: linear-gradient(135deg, var(--orange), #e85d00);
    border-radius: var(--radius-xl); padding: 40px 48px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    position: relative; overflow: hidden;
}
.nl-card::before {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.nl-card::after {
    content: ''; position: absolute; left: -40px; bottom: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.nl-content { position: relative; z-index: 1; }
.nl-icon {
    width: 48px; height: 48px; background: rgba(255,255,255,0.15);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.nl-content h3 { color: white; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.nl-content p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.6; }
.nl-form { position: relative; z-index: 1; }
.nl-input-row { display: flex; gap: 6px; margin-bottom: 10px; }
.nl-input-row input {
    flex: 1; padding: 0 16px; height: 48px; border: none; border-radius: 8px;
    font-size: 14px; outline: none;
}
.nl-input-row button {
    padding: 0 24px; height: 48px; background: var(--gray-900); color: white;
    border: none; border-radius: 8px; font-weight: 700; font-size: 14px;
    white-space: nowrap; transition: background var(--transition);
}
.nl-input-row button:hover { background: var(--gray-700); }
.nl-consent { font-size: 11px; color: rgba(255,255,255,0.9); line-height: 1.5; }
.nl-consent label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; color: white; }
.nl-consent input { accent-color: white; margin-top: 2px; flex-shrink: 0; }
.nl-consent a { color: white; text-decoration: underline; font-weight: 600; }

/* ======== FOOTER ======== */
.footer { background: var(--gray-900); color: var(--gray-400); }

/* Trust bar */
.footer-trust {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(255,255,255,0.06); padding: 24px 0;
}
.ft-item {
    display: flex; align-items: center; gap: 12px; padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.ft-item:last-child { border-right: none; }
.ft-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(255,108,0,0.1); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0; color: var(--orange);
}
.ft-item strong { font-size: 12px; color: var(--gray-200); display: block; font-weight: 600; }
.ft-item span { font-size: 11px; color: var(--gray-500); }

/* Main footer */
.footer-main {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px; padding: 40px 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-col p { font-size: 13px; line-height: 1.7; color: var(--gray-500); margin-top: 14px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.06); display: flex;
    align-items: center; justify-content: center;
    color: var(--gray-500); transition: all var(--transition);
}
.footer-social a:hover { background: var(--orange); color: white; }
.footer-contact-block { margin-top: 16px; display: flex; flex-direction: column; gap: 3px; }
.footer-contact-block a, .footer-contact-block span { font-size: 13px; color: var(--gray-500); }
.footer-contact-block a:hover { color: var(--orange); }
.footer h4 {
    color: var(--gray-200); font-size: 11px; font-weight: 700;
    margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; }
.footer li a { font-size: 13px; color: var(--gray-500); transition: all var(--transition); }
.footer li a:hover { color: var(--orange); padding-left: 4px; }
.footer-bottom {
    padding: 16px 0; display: flex; align-items: center;
    justify-content: space-between; font-size: 12px; color: var(--gray-600); flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { position: relative; }
.footer-bottom-links a:not(:last-child)::after { content: '·'; position: absolute; right: -10px; color: var(--gray-700); }

/* Credit bar */
.footer-credit { background: #0a0f14; padding: 10px 0; font-size: 11px; color: var(--gray-600); text-align: center; }
.footer-credit a { color: var(--orange); font-weight: 600; }
.footer-credit a:hover { color: var(--orange-light); }

/* Auth layout — 50/50 */
.auth-layout { display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:900px; margin:0 auto; }
@media (max-width:768px) { .auth-layout { grid-template-columns:1fr; } }

/* Registration — hide social title (Pan/Pani) and birthday */
.form-group[class*="id_gender"], .form-group .radio-inline,
label[for*="id_gender"], input[name="id_gender"],
.form-group[class*="birthday"], label[for*="birthday"],
input[name*="birthday"], select[name*="birthday"],
.form-group:has(input[name="birthday"]),
.form-group:has(select[name="birthday"]),
.form-group:has(input[name="id_gender"]) { display:none !important; }

/* GDPR checkbox styling */
label[for="field-psgdpr"] { font-size:12px !important; color:var(--gray-600) !important; font-weight:400 !important; display:flex !important; align-items:flex-start !important; gap:8px; }
label[for="field-psgdpr"] input { accent-color:var(--orange); margin-top:2px; flex-shrink:0; }
.psgdpr_consent_message { font-size:12px; color:var(--gray-600); line-height:1.5; }
.psgdpr_consent_message a { color:var(--orange); }

/* ======== UTILITIES ======== */
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* ======== FORMS ======== */
.polmais-card {
    background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
    padding: 40px;
}
.polmais-card-title {
    font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 24px;
}
.polmais-form-group { margin-bottom: 16px; }
.polmais-form-group label {
    display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px;
}
.polmais-form-group input,
.polmais-form-group select,
.polmais-form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: 8px;
    font-size: 14px; outline: none; transition: border-color var(--transition);
    font-family: inherit; background: white; color: var(--gray-800);
}
.polmais-form-group input:focus,
.polmais-form-group select:focus,
.polmais-form-group textarea:focus {
    border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,108,0,0.1);
}
.polmais-form-group input::placeholder { color: var(--gray-400); }

/* Generic form styling for parent templates */
form label { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; display: block; }
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="number"],
form input[type="search"],
form select,
form textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 6px;
    font-size: 14px; outline: none; transition: border-color var(--transition);
    font-family: inherit; background: white; color: var(--gray-800); margin-bottom: 12px;
}
form input:focus, form select:focus, form textarea:focus {
    border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,108,0,0.1);
}
form .form-group { margin-bottom: 16px; }
form .form-control-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
form .form-control { padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 6px; }
form .form-control:focus { border-color: var(--orange); }
form .form-footer { margin-top: 20px; }

/* Parent (classic) template pages — add container and card styling */
body:not(#index) #content-wrapper {
    max-width: 1220px; margin: 0 auto; padding: 32px 20px 64px;
}
body:not(#index) #content-wrapper h1 {
    font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 24px;
}
body:not(#index) #content-wrapper .page-content,
body:not(#index) #content-wrapper section {
    background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 32px;
}
/* Tables in account pages */
body:not(#index) #content-wrapper table { width: 100%; border-collapse: collapse; }
body:not(#index) #content-wrapper table th {
    text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--gray-200);
}
body:not(#index) #content-wrapper table td {
    padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700);
}
body:not(#index) #content-wrapper table tr:hover td { background: var(--gray-50); }

/* Links in parent templates */
body:not(#index) #content-wrapper a:not(.btn) { color: var(--orange); }
body:not(#index) #content-wrapper a:not(.btn):hover { color: var(--orange-hover); }

/* Buttons in parent templates */
body:not(#index) #content-wrapper .btn-primary,
body:not(#index) #content-wrapper [type="submit"],
body:not(#index) #content-wrapper button.form-control-submit {
    background: var(--orange); color: white; border: 1px solid var(--orange);
    padding: 12px 24px; border-radius: 6px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background var(--transition);
}
body:not(#index) #content-wrapper .btn-primary:hover,
body:not(#index) #content-wrapper [type="submit"]:hover,
body:not(#index) #content-wrapper button.form-control-submit:hover {
    background: var(--orange-hover); border-color: var(--orange-hover);
}

/* Show/reveal password button fix */
body:not(#index) #content-wrapper .input-group { display: flex; }
body:not(#index) #content-wrapper .input-group .btn {
    background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-300);
    padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 13px;
}

/* ======== ACCOUNT LAYOUT ======== */
.account-layout { display:grid; grid-template-columns:260px 1fr; gap:24px; }
.account-sidebar { background:var(--gray-50); border-radius:var(--radius-xl); padding:24px; height:fit-content; position:sticky; top:20px; }
.account-avatar { display:flex; align-items:center; gap:12px; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--gray-200); }
.account-initials { width:48px; height:48px; background:var(--orange); border-radius:50%; display:flex; align-items:center; justify-content:center; color:white; font-size:18px; font-weight:800; flex-shrink:0; }
.account-avatar strong { font-size:14px; color:var(--gray-900); display:block; }
.account-avatar span { font-size:12px; color:var(--gray-500); }
.account-sidebar nav ul { list-style:none; }
.account-sidebar nav li { margin-bottom:4px; }
.account-sidebar nav a { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:6px; font-size:13px; color:var(--gray-700); font-weight:500; transition:all 0.15s; }
.account-sidebar nav a:hover { background:var(--gray-100); color:var(--gray-900); }
.account-sidebar nav li.active a { background:var(--orange-bg); color:var(--orange); font-weight:600; }
.account-content { min-width:0; }
.account-content .polmais-card { padding:32px; border:1px solid var(--gray-200); border-radius:var(--radius-xl); background:white; }
.account-content h1 { font-size:20px; font-weight:800; color:var(--gray-900); margin-bottom:20px; }
.account-content .alert { font-size:13px; }
.account-content table { width:100%; border-collapse:collapse; font-size:13px; }
.account-content table th { text-align:left; padding:10px 12px; background:var(--gray-50); color:var(--gray-600); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:0.03em; border-bottom:2px solid var(--gray-200); }
.account-content table td { padding:12px; border-bottom:1px solid var(--gray-100); color:var(--gray-700); vertical-align:middle; }
.account-content table tr:hover td { background:var(--gray-50); }
.account-content .form-group { margin-bottom:16px; }
.account-content .form-group label { font-size:13px; font-weight:600; color:var(--gray-700); margin-bottom:4px; display:block; }
.account-content .form-control { width:100%; padding:10px 14px; border:1px solid var(--gray-300); border-radius:6px; font-size:13px; transition:border-color 0.2s; }
.account-content .form-control:focus { border-color:var(--orange); outline:none; box-shadow:0 0 0 3px rgba(255,108,0,0.1); }
.account-content a.btn, .account-content button.btn { font-size:13px; }
.account-footer-links { display:flex; gap:16px; margin-top:20px; font-size:13px; }
.account-footer-links a { color:var(--orange); font-weight:600; }

/* ======== LAYOUT ======== */
.layout-with-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 24px 0 64px; }
.sidebar {}

/* ======== REGISTRATION FORM ======== */
#customer-form .form-control-comment { display:none; }
#customer-form .custom-checkbox { display:flex; align-items:flex-start; gap:8px; font-size:13px; line-height:1.5; color:var(--gray-600); }
#customer-form .custom-checkbox input[type="checkbox"] { width:18px; height:18px; flex-shrink:0; margin-top:2px; accent-color:var(--orange); }
#customer-form .custom-checkbox .material-icons { display:none; }
#customer-form .custom-checkbox span > span { display:none; }

/* ======== ALERTS ======== */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.alert-danger { background: #FEE2E2; color: var(--dark-red); border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-lightest); }
.alert-info { background: #EDE9FE; color: #5B21B6; border: 1px solid #DDD6FE; }
.alert ul { list-style: none; }

/* ======== HOME: HERO ======== */
.hero { position:relative; overflow:hidden; color:white; min-height:560px; display:flex; align-items:center; }
.hero-bg { position:absolute; inset:0; z-index:0; }
.hero-bg img { width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.hero-bg::after {
    content:''; position:absolute; inset:0;
    background:
        linear-gradient(90deg, rgba(10,24,16,0.92) 0%, rgba(10,24,16,0.85) 40%, rgba(10,24,16,0.45) 70%, rgba(10,24,16,0.2) 100%),
        linear-gradient(180deg, rgba(10,24,16,0.3) 0%, transparent 30%, transparent 70%, rgba(10,24,16,0.5) 100%);
}
.hero::before {
    content:''; position:absolute; right:10%; top:20%;
    width:400px; height:400px; border-radius:50%;
    background:radial-gradient(circle, rgba(255,108,0,0.08) 0%, transparent 70%);
    z-index:1; filter:blur(40px);
}
.hero-inner { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; padding:72px 0 80px; position:relative; z-index:2; }
.hero-tag {
    display:inline-flex; align-items:center; gap:6px;
    background:rgba(255,255,255,0.08); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,0.12); color:rgba(255,255,255,0.9);
    padding:6px 16px; border-radius:20px; font-size:12px; font-weight:500; margin-bottom:20px;
}
.hero-tag::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--orange); box-shadow:0 0 8px var(--orange); }
.hero h1 { font-size:44px; font-weight:800; line-height:1.1; margin-bottom:16px; letter-spacing:-1px; }
.hero h1 em { font-style:normal; color:var(--orange); }
.hero-desc { font-size:16px; color:rgba(255,255,255,0.7); line-height:1.7; margin-bottom:32px; max-width:480px; }
.hero-btns { display:flex; gap:10px; flex-wrap:wrap; }
.hero-btns .btn-primary { padding:14px 28px; font-size:15px; border-radius:8px; box-shadow:0 4px 14px rgba(255,108,0,0.3); }
.hero-btns .btn-primary:hover { box-shadow:0 6px 20px rgba(255,108,0,0.45); transform:translateY(-1px); }
.hero-btns .btn-glass {
    padding:14px 28px; font-size:15px; border-radius:8px;
    background:rgba(255,255,255,0.06); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,0.15); color:white;
}
.hero-btns .btn-glass:hover { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.25); }
.hero-stats-card {
    background:rgba(255,255,255,0.06); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,0.1); border-radius:16px; padding:28px 32px; margin-top:36px;
}
.hero-stats { display:flex; gap:0; }
.hero-stat { flex:1; text-align:center; position:relative; }
.hero-stat:not(:last-child)::after { content:''; position:absolute; right:0; top:4px; bottom:4px; width:1px; background:rgba(255,255,255,0.1); }
.hero-stat strong { display:block; font-size:28px; font-weight:800; color:var(--orange); line-height:1.2; }
.hero-stat span { font-size:11px; color:rgba(255,255,255,0.5); text-transform:uppercase; letter-spacing:0.05em; }

/* ======== HOME: BANNERS ======== */
.home-banners { padding:0 0 48px; margin-top:-24px; position:relative; z-index:2; }
.banners-grid { display:grid; grid-template-columns:1fr 300px; gap:16px; }
.banner-main { position:relative; border-radius:var(--radius-xl); overflow:hidden; min-height:280px; }
.banner-slider { position:relative; height:100%; }
.banner-slide { display:none; position:absolute; inset:0; color:white; }
.banner-slide.active { display:block; }
.banner-slide-bg { position:absolute; inset:0; }
.banner-slide-bg img { width:100%; height:100%; object-fit:cover; }
.banner-slide-bg::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); }
.banner-slide-content { position:relative; z-index:2; padding:36px 40px; height:100%; display:flex; flex-direction:column; justify-content:center; }
.banner-slide h3 { font-size:24px; font-weight:800; line-height:1.2; margin-bottom:8px; }
.banner-slide p { font-size:13px; opacity:0.9; line-height:1.5; margin-bottom:16px; max-width:360px; }
.banner-dots { position:absolute; bottom:16px; left:40px; display:flex; gap:6px; z-index:5; }
.banner-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.3); border:none; cursor:pointer; transition:all 0.25s; padding:0; }
.banner-dot.active { background:white; width:24px; border-radius:4px; }
.banner-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.15); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,0.2); color:white; font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; }
.banner-arrow:hover { background:rgba(255,255,255,0.25); }
.banner-prev { left:12px; }
.banner-next { right:12px; }
.banner-side-stack { display:flex; flex-direction:column; gap:16px; }
.banner-side { flex:1; border-radius:var(--radius-xl); padding:24px; color:white; display:flex; flex-direction:column; justify-content:center; transition:transform 0.25s; position:relative; overflow:hidden; }
.banner-side::before { content:''; position:absolute; right:-20px; top:-20px; width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,0.06); }
.banner-side:hover { transform:translateY(-2px); }
.banner-side-label { font-size:11px; font-weight:600; opacity:0.7; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:6px; }
.banner-side strong { font-size:17px; font-weight:800; line-height:1.25; display:block; margin-bottom:8px; }
.banner-side-cta { font-size:12px; font-weight:600; opacity:0.8; }

/* ======== HOME: CATEGORIES ======== */
.home-cats { padding:64px 0; background:var(--gray-50); }
.section-title { font-size:24px; font-weight:800; color:var(--gray-900); letter-spacing:-0.3px; }
.section-sub { font-size:14px; color:var(--gray-500); margin-top:4px; }
.section-line { display:block; width:48px; height:3px; background:var(--orange); margin-top:12px; border-radius:2px; }
.cats-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-top:32px; }
.cat-card { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:24px 16px; text-align:center; transition:all 0.25s; }
.cat-card:hover { border-color:var(--orange); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.cat-icon { width:52px; height:52px; margin:0 auto 12px; background:var(--orange-bg); border-radius:12px; display:flex; align-items:center; justify-content:center; transition:background 0.25s; }
.cat-card:hover .cat-icon { background:var(--orange); }
.cat-icon svg { width:24px; height:24px; color:var(--orange); transition:color 0.25s; }
.cat-card:hover .cat-icon svg { color:white; }
.cat-card h3 { font-size:13px; font-weight:700; color:var(--gray-900); margin-bottom:2px; }
.cat-card p { font-size:11px; color:var(--gray-500); }

/* ======== HOME: PRODUCTS CAROUSEL ======== */
.home-products { padding:64px 0; overflow:hidden; }
.prods-head { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:24px; }
.prods-grid { display:flex; gap:16px; overflow-x:auto; scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none; padding-bottom:8px; }
.prods-grid::-webkit-scrollbar { display:none; }
.prods-grid > .p-card, .prods-grid > article { min-width:260px; max-width:260px; flex-shrink:0; }
.carousel-arrows { display:flex; gap:6px; }
.carousel-arrow-btn { width:36px; height:36px; border-radius:50%; border:1px solid var(--gray-300); background:white; color:var(--gray-600); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.2s; }
.carousel-arrow-btn:hover { border-color:var(--orange); color:var(--orange); }
.prods-carousel-wrap { position:relative; }
.prods-carousel-wrap::before, .prods-carousel-wrap::after { content:''; position:absolute; top:0; bottom:0; width:80px; z-index:5; pointer-events:none; }
.prods-carousel-wrap::before { left:-1px; background:linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
.prods-carousel-wrap::after { right:-1px; background:linear-gradient(270deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
.prods-track { display:flex; gap:16px; transition:transform 0.5s cubic-bezier(0.25,0.1,0.25,1); margin:0 -80px; padding:0 80px; cursor:grab; }
.prods-track:active { cursor:grabbing; }
.prod-card { min-width:280px; max-width:280px; flex-shrink:0; border:1px solid var(--gray-200); border-radius:var(--radius-lg); overflow:hidden; transition:all 0.25s; background:white; }
.prod-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); }
.prod-img { height:180px; background:var(--gray-100); display:flex; align-items:center; justify-content:center; position:relative; color:var(--gray-300); font-size:12px; }
.prod-img .badge { position:absolute; top:10px; left:10px; }
.prod-body { padding:14px 16px; }
.prod-cat { font-size:11px; color:var(--green); font-weight:600; text-transform:uppercase; letter-spacing:0.04em; }
.prod-name { font-size:14px; font-weight:700; color:var(--gray-900); margin:4px 0 6px; line-height:1.3; }
.prod-sub { font-size:12px; color:var(--gray-500); line-height:1.4; margin-bottom:10px; }
.prod-bottom { display:flex; align-items:center; justify-content:space-between; }
.prod-price { font-size:18px; font-weight:800; color:var(--orange); }
.prod-price small { font-size:12px; font-weight:400; color:var(--gray-500); }
.prod-cart-btn { width:34px; height:34px; border-radius:8px; background:var(--orange); border:none; color:white; display:flex; align-items:center; justify-content:center; transition:background 0.2s; }
.prod-cart-btn:hover { background:var(--orange-hover); }

/* ======== HOME: ABOUT ======== */
.home-about { padding:64px 0; background:var(--gray-50); }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; margin-top:32px; }
.about-img { aspect-ratio:4/3; border-radius:var(--radius-xl); overflow:hidden; }
.about-text p { font-size:14px; color:var(--gray-600); line-height:1.7; margin-bottom:20px; }
.about-features { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.about-feat { display:flex; gap:10px; align-items:flex-start; }
.about-feat-icon { width:36px; height:36px; background:var(--orange-bg); border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.about-feat-icon svg { width:18px; height:18px; color:var(--orange); }
.about-feat h4 { font-size:13px; font-weight:700; color:var(--gray-900); }
.about-feat p { font-size:12px; color:var(--gray-500); margin-top:1px; }

/* ======== HOME: SOR BAR ======== */
.sor-bar { background:linear-gradient(135deg, var(--green), #1a4a35); padding:40px 0; color:white; }
.sor-inner { display:flex; align-items:center; gap:24px; }
.sor-icon { width:56px; height:56px; background:rgba(255,255,255,0.12); border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sor-bar h3 { font-size:16px; font-weight:700; margin-bottom:4px; }
.sor-bar p { font-size:13px; opacity:0.8; line-height:1.6; }

/* ======== HOME: PARTNERS ======== */
.partners { padding:48px 0; }
.partners-row { display:flex; align-items:center; justify-content:center; gap:40px; margin-top:24px; flex-wrap:wrap; }
.partner-box { width:110px; height:50px; background:var(--gray-100); border-radius:6px; display:flex; align-items:center; justify-content:center; color:var(--gray-400); font-size:11px; }

/* ======== HOME: CONTACT ======== */
.home-contact { padding:64px 0; background:var(--gray-50); }
.contact-cols { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:32px; }
.contact-box { background:white; border-radius:var(--radius-xl); padding:32px; border:1px solid var(--gray-200); }
.contact-box h3 { font-size:18px; font-weight:700; margin-bottom:20px; }
.c-item { display:flex; gap:10px; margin-bottom:16px; align-items:flex-start; }
.c-item-icon { width:36px; height:36px; background:var(--orange-bg); border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.c-item-icon svg { width:16px; height:16px; color:var(--orange); }
.c-item strong { font-size:13px; font-weight:700; display:block; margin-bottom:1px; }
.c-item span, .c-item a { font-size:13px; color:var(--gray-600); }
.contact-map { background:var(--gray-200); border-radius:var(--radius-xl); min-height:100%; display:flex; align-items:center; justify-content:center; color:var(--gray-500); font-size:13px; }

/* ======== CATEGORY: FILTERS ======== */
.filter-group { margin-bottom:20px; border-bottom:1px solid var(--gray-200); padding-bottom:16px; }
.filter-group:last-child { border-bottom:none; }
.filter-title { font-size:13px; font-weight:700; color:var(--gray-900); margin-bottom:10px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.filter-list { list-style:none; }
.filter-list li { margin-bottom:4px; }
.filter-list label { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--gray-600); cursor:pointer; padding:3px 0; }
.filter-list label:hover { color:var(--gray-900); }
.filter-list input[type="checkbox"] { width:16px; height:16px; accent-color:var(--orange); cursor:pointer; }
.filter-count { font-size:11px; color:var(--gray-400); margin-left:auto; }

/* ======== CATEGORY: TOOLBAR ======== */
.cat-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:12px; flex-wrap:wrap; }
.cat-result-count { font-size:13px; color:var(--gray-500); }
.cat-result-count strong { color:var(--gray-900); }
.cat-controls { display:flex; align-items:center; gap:10px; }
.sort-select { padding:7px 12px; border:1px solid var(--gray-300); border-radius:6px; font-size:13px; background:white; color:var(--gray-700); }
.view-toggle { display:flex; border:1px solid var(--gray-300); border-radius:6px; overflow:hidden; }
.view-btn { padding:7px 10px; background:white; border:none; color:var(--gray-400); cursor:pointer; display:flex; align-items:center; transition:all var(--transition); }
.view-btn:not(:last-child) { border-right:1px solid var(--gray-300); }
.view-btn.active, .view-btn:hover { background:var(--orange); color:white; }

/* ======== CATEGORY: PRODUCT GRID ======== */
.products-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.p-card { border:1px solid var(--gray-200); border-radius:var(--radius-lg); overflow:hidden; background:white; transition:all 0.25s; display:flex; flex-direction:column; }
.p-card:hover { box-shadow:var(--shadow-md); border-color:var(--gray-300); }
.p-card-img { height:200px; background:var(--gray-100); display:flex; align-items:center; justify-content:center; position:relative; color:var(--gray-300); font-size:12px; overflow:hidden; }
.p-card-img img { width:100%; height:100%; object-fit:contain; padding:12px; }
.p-card-no-img { display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.p-card-img .badge { position:absolute; top:10px; left:10px; }
.p-card-wishlist { position:absolute; top:10px; right:10px; width:32px; height:32px; background:white; border:none; border-radius:50%; color:var(--gray-400); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); cursor:pointer; transition:all var(--transition); }
.p-card-wishlist:hover { color:var(--dark-red); }
.p-card-wishlist.wishlisted { color:var(--dark-red); }
.p-card-wishlist.wishlisted svg { fill:var(--dark-red); stroke:var(--dark-red); }
.p-card-body { padding:14px 16px; flex:1; display:flex; flex-direction:column; }
.p-card-cat { font-size:11px; color:var(--green); font-weight:600; text-transform:uppercase; letter-spacing:0.03em; }
.p-card-name { font-size:14px; font-weight:700; color:var(--gray-900); margin:4px 0 6px; line-height:1.35; }
.p-card-name a { color:var(--gray-900); text-decoration:none; }
.p-card-name a:hover { color:var(--orange); }
.p-card-attrs { font-size:12px; color:var(--gray-500); margin-bottom:10px; line-height:1.4; }
.p-card-attrs { flex:1; }
.p-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; padding-top:10px; }
/* Stock label on image */
.p-card-stock { position:absolute; bottom:8px; right:8px; font-size:11px; color:var(--green); font-weight:500; display:flex; align-items:center; gap:3px; background:rgba(255,255,255,0.9); padding:2px 8px; border-radius:10px; }
.p-card-stock span { width:5px; height:5px; border-radius:50%; background:var(--green); display:inline-block; }

/* Card footer — price row + actions row */
.p-card-footer { padding:10px 14px; margin-top:auto; background:var(--orange-bg); border-top:1px solid var(--orange-lightest); border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.p-card-footer-top { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; }
.p-card-pricing { flex-shrink:0; }
.p-card-variant-select { padding:0 4px; border:1px solid var(--gray-300); border-radius:6px; font-size:11px; font-weight:600; color:var(--gray-700); background:white; cursor:pointer; height:32px; min-width:42px; flex-shrink:0; }
.p-card-variant-select:focus { border-color:var(--orange); outline:none; }
.p-card-price { font-size:16px; font-weight:800; color:var(--orange); line-height:1.1; white-space:nowrap; }
.p-card-price small { font-size:12px; color:var(--gray-500); font-weight:400; }
.p-card-price .old-price { font-size:13px; color:var(--gray-400); text-decoration:line-through; font-weight:400; display:block; }
.p-card-btn { padding:0; width:34px; height:32px; background:var(--orange); color:white; border:none; border-radius:8px; font-size:0; display:inline-flex; align-items:center; justify-content:center; transition:all var(--transition); cursor:pointer; flex-shrink:0; }
.p-card-btn:hover { background:var(--orange-hover); transform:scale(1.05); }
.p-card-btn svg { width:16px; height:16px; }
.p-card-btn:hover { background:var(--orange-hover); }

/* Badges container */
.p-card-badges { position:absolute; top:10px; left:10px; display:flex; gap:4px; flex-wrap:wrap; }

/* Variant selector on card */
.p-card-variants { display:flex; gap:4px; padding:10px 0 0; flex-wrap:wrap; align-items:center; }
.p-card-variant-label { font-size:11px; font-weight:600; color:var(--gray-500); margin-right:4px; width:100%; margin-bottom:2px; }
.p-card-variant-btn { padding:4px 10px; border:1px solid var(--gray-300); border-radius:4px; font-size:11px; font-weight:600; color:var(--gray-600); background:white; text-decoration:none; transition:all var(--transition); text-align:center; }
.p-card-variant-btn:hover { border-color:var(--orange); color:var(--orange); }
.p-card-variant-btn.active { border-color:var(--orange); background:var(--orange-bg); color:var(--orange); }
.p-card-variant-select { flex:1; padding:6px 10px; border:1px solid var(--gray-300); border-radius:6px; font-size:12px; font-weight:600; color:var(--gray-700); background:white; cursor:pointer; }
.p-card-variant-select:focus { border-color:var(--orange); outline:none; box-shadow:0 0 0 3px rgba(255,108,0,0.1); }
.p-card-variant-link { display:flex; align-items:center; justify-content:center; width:30px; height:30px; border:1px solid var(--gray-300); border-radius:6px; color:var(--gray-400); flex-shrink:0; transition:all var(--transition); }
.p-card-variant-link:hover { border-color:var(--orange); color:var(--orange); }

.p-card-price-netto { font-size:12px; color:var(--gray-500); margin-top:1px; }

/* Add form in grid card */
.p-card-add-form { display:flex; align-items:center; gap:6px; flex-shrink:0; flex-wrap:nowrap; margin-left:auto; }

/* Mini qty stepper — input + stacked +/- */
.p-card-mini-qty { display:flex; align-items:center; border:1px solid var(--gray-300); border-radius:6px; overflow:hidden; height:32px; flex-shrink:0; }
.p-card-mini-qty-input { width:30px !important; min-width:30px; max-width:30px; height:32px; text-align:center; border:none !important; font-size:13px; font-weight:600; padding:0 !important; margin:0 !important; -moz-appearance:textfield; border-radius:0 !important; box-shadow:none !important; background:white; }
.p-card-mini-qty-input::-webkit-outer-spin-button,
.p-card-mini-qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.p-card-mini-qty-btns { display:flex; flex-direction:column; border-left:1px solid var(--gray-300); }
.p-card-mini-qty-btns button { width:20px; height:16px; background:var(--gray-50); border:none; font-size:10px; color:var(--gray-500); cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; line-height:1; }
.p-card-mini-qty-btns button:first-child { border-bottom:1px solid var(--gray-300); }
.p-card-mini-qty-btns button:hover { background:var(--gray-200); color:var(--gray-800); }
.p-card-qty { display:inline-flex; align-items:center; border:1px solid var(--gray-300); border-radius:6px; overflow:hidden; flex-shrink:0; }
.p-card-qty-btn { width:28px; height:32px; background:var(--gray-50); border:none; font-size:15px; color:var(--gray-600); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background var(--transition); padding:0; line-height:1; }
.p-card-qty-btn:hover { background:var(--gray-200); }
.p-card-qty-input { width:32px !important; min-width:32px; max-width:32px; height:32px; text-align:center; border:none !important; border-left:1px solid var(--gray-300) !important; border-right:1px solid var(--gray-300) !important; font-size:13px; font-weight:600; padding:0 !important; margin:0 !important; -moz-appearance:textfield; border-radius:0 !important; box-shadow:none !important; }
.p-card-qty-input::-webkit-outer-spin-button,
.p-card-qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

/* ======== CATEGORY: LIST VIEW ======== */
.products-list { display:flex; flex-direction:column; gap:8px; }

/* Card row */
.pl { display:grid; grid-template-columns:80px 1fr 32px auto auto; align-items:center; gap:0; border:1px solid var(--gray-200); border-radius:var(--radius-lg); background:white; transition:all 0.2s; overflow:hidden; }
.pl:hover { box-shadow:var(--shadow-sm); border-color:var(--gray-300); }

/* Thumb */
.pl-img { width:80px; height:80px; background:var(--gray-50); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; flex-shrink:0; }
.pl-img img { width:100%; height:100%; object-fit:contain; padding:6px; }
.pl-noimg { display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.pl-badge { position:absolute; top:4px; left:4px; }
.pl-badge .badge { font-size:8px; padding:1px 4px; }

/* Info */
.pl-info { padding:10px 14px; min-width:0; }
.pl-cat { font-size:10px; color:var(--green); font-weight:700; text-transform:uppercase; letter-spacing:0.04em; display:block; }
.pl-name { font-size:14px; font-weight:700; color:var(--gray-900); display:block; margin:1px 0 3px; line-height:1.3; text-decoration:none; }
.pl-name:hover { color:var(--orange); }
.pl-desc { font-size:12px; color:var(--gray-500); line-height:1.4; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Wishlist */
.pl-wish { background:none; border:none; color:var(--gray-300); cursor:pointer; padding:4px; flex-shrink:0; transition:color var(--transition); align-self:center; }
.pl-wish:hover { color:var(--dark-red); }
.pl-wish.wishlisted { color:var(--dark-red); }
.pl-wish.wishlisted svg { fill:var(--dark-red); stroke:var(--dark-red); }

/* Price col */
.pl-price-col { padding:8px 16px; text-align:right; white-space:nowrap; border-left:1px solid var(--gray-100); }
.pl-price { font-size:17px; font-weight:800; color:var(--orange); line-height:1.2; }
.pl-old { font-size:11px; color:var(--gray-400); text-decoration:line-through; font-weight:400; display:block; }
.pl-netto { font-size:11px; color:var(--gray-500); }
.pl-stock { font-size:11px; color:var(--green); font-weight:500; display:flex; align-items:center; justify-content:flex-end; gap:3px; margin-top:1px; }
.pl-stock span { width:5px; height:5px; border-radius:50%; background:var(--green); display:inline-block; }

/* Actions: variant + qty + cart — each separate */
.pl-actions { display:flex; gap:6px; align-items:center; padding:8px 12px; border-left:1px solid var(--gray-100); flex-shrink:0; overflow:visible; }
.pl-variant { padding:0 4px; border:1px solid var(--gray-300); border-radius:6px; font-size:11px; font-weight:600; color:var(--gray-700); background:white; cursor:pointer; height:34px; width:54px; flex-shrink:0; }
.pl-variant:hover { border-color:rgba(255,108,0,0.4); }
.pl-variant:focus { border-color:var(--orange); outline:none; }
.pl-qty { display:inline-flex; align-items:stretch; border:1px solid var(--gray-300); border-radius:6px; overflow:visible; height:34px; flex-shrink:0; }
.pl-qty input { width:30px !important; min-width:30px; max-width:30px; height:32px; text-align:center; border:none !important; font-size:13px; font-weight:600; padding:0 !important; margin:0 !important; -moz-appearance:textfield; border-radius:0 !important; box-shadow:none !important; background:white; }
.pl-qty input::-webkit-outer-spin-button, .pl-qty input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.pl-qty-btns { display:flex; flex-direction:column; border-left:1px solid var(--gray-300); width:22px; flex-shrink:0; }
.pl-qty-btns button { flex:1; width:22px; background:var(--gray-50); border:none; font-size:11px; color:var(--gray-500); cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; line-height:1; }
.pl-qty-btns button:first-child { border-bottom:1px solid var(--gray-200); }
.pl-qty-btns button:hover { background:var(--gray-200); color:var(--gray-800); }
.pl-cart { width:38px; height:34px; background:var(--orange); border:none; border-radius:8px; color:white; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all var(--transition); flex-shrink:0; }
.pl-cart:hover { background:var(--orange-hover); transform:scale(1.05); }

/* ======== CATEGORY: PAGINATION ======== */
.pagination { display:flex; align-items:center; justify-content:center; gap:4px; margin-top:32px; }
.page-btn { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:1px solid var(--gray-300); border-radius:6px; background:white; color:var(--gray-600); font-size:13px; font-weight:600; cursor:pointer; transition:all var(--transition); text-decoration:none; }
.page-btn:hover { border-color:var(--orange); color:var(--orange); }
.page-btn.active { background:var(--orange); color:white; border-color:var(--orange); }
.page-btn.disabled { opacity:0.4; cursor:default; }

/* ======== PRODUCT: DETAIL ======== */
.product-top { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:32px 0 48px; }
.product-gallery { position:relative; }
.product-main-img { width:100%; aspect-ratio:1; background:var(--gray-100); border-radius:var(--radius-xl); display:flex; align-items:center; justify-content:center; color:var(--gray-300); font-size:14px; border:1px solid var(--gray-200); overflow:hidden; }
.product-main-img img { width:100%; height:100%; object-fit:contain; }
.product-thumbs { display:flex; gap:8px; margin-top:12px; }
.product-thumb { width:72px; height:72px; background:var(--gray-100); border-radius:var(--radius); border:2px solid var(--gray-200); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:border-color var(--transition); overflow:hidden; }
.product-thumb img { width:100%; height:100%; object-fit:cover; }
.product-thumb.active, .product-thumb:hover { border-color:var(--orange); }
.product-badges-top { position:absolute; top:16px; left:16px; display:flex; gap:6px; z-index:2; }
.product-info .p-cat { font-size:12px; color:var(--green); font-weight:600; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:6px; }
.product-info h1 { font-size:26px; font-weight:800; color:var(--gray-900); margin-bottom:4px; line-height:1.25; }
.product-info .p-subtitle { font-size:14px; color:var(--gray-500); margin-bottom:16px; }
.product-info .p-sku { font-size:12px; color:var(--gray-400); margin-bottom:16px; }
.price-box { background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:20px; margin-bottom:20px; }
.price-main { font-size:32px; font-weight:800; color:var(--orange); }
.price-main small { font-size:14px; color:var(--gray-500); font-weight:400; }
.price-netto { font-size:13px; color:var(--gray-500); margin-top:2px; }
.price-omnibus { font-size:11px; color:var(--gray-400); margin-top:4px; }
.stock-info { display:flex; align-items:center; gap:6px; margin-top:12px; font-size:13px; font-weight:500; }
.stock-dot { width:8px; height:8px; border-radius:50%; }
.stock-dot.in-stock { background:var(--green); }
.stock-in { color:var(--green); }
.variant-selector { margin-bottom:20px; }
.variant-label { font-size:13px; font-weight:600; color:var(--gray-700); margin-bottom:8px; }
.variant-options { display:flex; gap:6px; flex-wrap:wrap; }
.variant-opt { padding:8px 16px; border:1px solid var(--gray-300); border-radius:6px; background:white; font-size:13px; color:var(--gray-700); cursor:pointer; transition:all var(--transition); font-weight:500; }
.variant-opt:hover { border-color:var(--orange); }
.variant-opt.active { border-color:var(--orange); background:var(--orange-bg); color:var(--orange); font-weight:600; }
.qty-cart-row { display:flex; gap:10px; align-items:stretch; margin-bottom:16px; }
.qty-box { display:flex; align-items:center; border:1px solid var(--gray-300); border-radius:6px; overflow:hidden; }
.qty-btn { width:36px; height:100%; background:var(--gray-50); border:none; font-size:18px; color:var(--gray-600); cursor:pointer; transition:background var(--transition); }
.qty-btn:hover { background:var(--gray-200); }
.qty-input { width:48px; text-align:center; border:none; border-left:1px solid var(--gray-300); border-right:1px solid var(--gray-300); font-size:14px; font-weight:600; }
.add-to-cart-btn { flex:1; padding:12px 24px; background:var(--orange); color:white; border:none; border-radius:6px; font-size:15px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:8px; transition:background var(--transition); cursor:pointer; }
.add-to-cart-btn:hover { background:var(--orange-hover); }
.product-actions { display:flex; gap:12px; margin-bottom:20px; }
.p-action-btn { display:flex; align-items:center; gap:6px; padding:8px 14px; background:none; border:1px solid var(--gray-200); border-radius:6px; font-size:12px; color:var(--gray-600); cursor:pointer; transition:all var(--transition); }
.p-action-btn:hover { border-color:var(--gray-400); color:var(--gray-800); }
.p-action-btn svg { width:16px; height:16px; }
.sor-notice { background:#FEF3C7; border:1px solid #FDE68A; border-radius:var(--radius); padding:14px 16px; display:flex; gap:10px; align-items:flex-start; margin-bottom:20px; }
.sor-notice svg { width:20px; height:20px; color:#92400E; flex-shrink:0; margin-top:1px; }
.sor-notice p { font-size:13px; color:#92400E; line-height:1.5; }
.sor-notice strong { font-weight:700; }
.delivery-info { border-top:1px solid var(--gray-200); padding-top:16px; }
.delivery-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.delivery-row svg { width:18px; height:18px; color:var(--gray-500); flex-shrink:0; }
.delivery-row span { font-size:13px; color:var(--gray-600); }
.delivery-row strong { font-weight:600; color:var(--gray-800); }

/* ======== PRODUCT: TABS ======== */
.product-tabs { border-bottom:1px solid var(--gray-200); margin-bottom:32px; }
.tabs-nav { display:flex; gap:0; }
.tab-btn { padding:12px 24px; background:none; border:none; border-bottom:3px solid transparent; font-size:14px; font-weight:600; color:var(--gray-500); cursor:pointer; transition:all var(--transition); }
.tab-btn:hover { color:var(--gray-800); }
.tab-btn.active { color:var(--orange); border-bottom-color:var(--orange); }
.tab-panel { display:none; padding:24px 0 48px; }
.tab-panel.active { display:block; }
.tab-panel h3 { font-size:18px; font-weight:700; color:var(--gray-900); margin-bottom:12px; }
.tab-panel p { font-size:14px; color:var(--gray-600); line-height:1.7; margin-bottom:12px; }
.reviews-summary { display:flex; align-items:center; gap:16px; }
.reviews-avg { display:flex; align-items:center; gap:10px; }
.reviews-score { font-size:28px; font-weight:800; color:var(--gray-900); }
.reviews-stars { display:flex; gap:2px; }
.reviews-count { font-size:13px; color:var(--gray-500); }
.spec-table { width:100%; border-collapse:collapse; }
.spec-table tr:nth-child(even) { background:var(--gray-50); }
.spec-table td { padding:10px 14px; font-size:13px; border-bottom:1px solid var(--gray-100); }
.spec-table td:first-child { font-weight:600; color:var(--gray-700); width:200px; }
.spec-table td:last-child { color:var(--gray-600); }
.sds-download { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius); font-size:13px; color:var(--gray-700); font-weight:600; margin-top:8px; transition:all var(--transition); }
.sds-download:hover { border-color:var(--orange); color:var(--orange); }
.sds-download svg { width:18px; height:18px; }

/* ======== CATEGORY: BANNER ======== */
.cat-banner { background:linear-gradient(135deg, #0f1f17, var(--green)); border-radius:var(--radius-xl); padding:32px; color:white; margin-bottom:20px; }
.cat-banner h1, .cat-banner h2 { font-size:24px; font-weight:800; margin-bottom:4px; }
.cat-banner p { font-size:13px; opacity:0.8; }

/* ======== CATEGORY: LAYOUT ======== */
.cat-layout { display:grid; grid-template-columns:260px 1fr; gap:24px; padding:8px 0 64px; }
.cat-layout.sidebar-hidden { grid-template-columns:1fr; }
.cat-layout.sidebar-hidden .sidebar { display:none; }
.cat-layout.sidebar-hidden .products-grid { grid-template-columns:repeat(4,1fr); }

/* Sidebar toggle button */
.sidebar-toggle { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border:1px solid var(--gray-300); border-radius:6px; background:white; font-size:12px; font-weight:600; color:var(--gray-600); cursor:pointer; transition:all var(--transition); }
.sidebar-toggle:hover { border-color:var(--orange); color:var(--orange); }
.sidebar-toggle svg { width:16px; height:16px; }
.sidebar-toggle.active { background:var(--orange); color:white; border-color:var(--orange); }

/* ======== CATEGORY: SIDEBAR (ps_categorytree + ps_facetedsearch) ======== */
.sidebar .block-categories { margin-bottom: 20px; }
.sidebar .block-categories .category-top-menu { list-style: none; padding: 0; }
.sidebar .block-categories .category-top-menu > li { margin-bottom: 4px; }
.sidebar .block-categories .category-top-menu a { font-size: 13px; color: var(--gray-600); display: block; padding: 6px 0; transition: color var(--transition); text-transform: none; }
.sidebar .block-categories .category-top-menu a:hover { color: var(--orange); }
.sidebar .block-categories .category-top-menu .h6 { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.sidebar .block-categories .category-sub-menu { list-style: none; padding: 0 0 0 12px; }
.sidebar .block-categories .category-sub-menu li { margin-bottom: 2px; }
.sidebar .block-categories .category-sub-menu a { font-size: 13px; color: var(--gray-600); padding: 4px 0; }
.sidebar .block-categories .category-sub-menu a:hover { color: var(--orange); }
.sidebar .block-categories .navbar-toggler { display: inline-flex; align-items: center; background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 0; margin-left: 4px; }
.sidebar .block-categories .material-icons { font-size: 18px; }
.sidebar .block-categories .collapse:not(.show) { display: none; }

/* Faceted search filters — full override for ps_facetedsearch */
.sidebar #search_filters_wrapper { margin-bottom: 0; }
.sidebar #search_filter_controls { display: none; }
.sidebar .hidden-sm-down { display: block; }

/* Hide module title "Filtruj według" */
.sidebar #search_filters > p { display: none; }
.sidebar #search_filters > .h6,
.sidebar #search_filters > p.text-uppercase { display: none; }

/* Each facet group */
.sidebar .facet { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
.sidebar .facet:last-child { border-bottom: none; }

/* Facet title — hide duplicate, show only one */
.sidebar .facet .facet-title { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.sidebar .facet .facet-title .navbar-toggler { display: none; }
.sidebar .facet .h6 { display: none; }
.sidebar .facet .collapse { display: block !important; height: auto !important; }

/* Facet list items */
.sidebar .facet ul { list-style: none; padding: 0; margin: 0; }
.sidebar .facet li { margin-bottom: 2px; }
.sidebar .facet .facet-label,
.sidebar .facet .custom-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); cursor: pointer; padding: 4px 0; }
.sidebar .facet .facet-label:hover { color: var(--gray-900); }
.sidebar .facet .facet-label input[type="checkbox"],
.sidebar .facet .custom-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; flex-shrink: 0; }
.sidebar .facet .facet-label .magnitude,
.sidebar .facet .facet-label .count { font-size: 11px; color: var(--gray-400); margin-left: auto; }

/* Price slider/range */
.sidebar .facet .faceted-slider { padding: 8px 0; }
.sidebar .facet .ui-slider { background: var(--gray-200); height: 4px; border-radius: 2px; border: none; margin: 8px 0; }
.sidebar .facet .ui-slider .ui-slider-range { background: var(--orange); }
.sidebar .facet .ui-slider .ui-slider-handle { width: 16px; height: 16px; background: var(--orange); border: 2px solid white; border-radius: 50%; top: -6px; cursor: pointer; box-shadow: var(--shadow-sm); }
.sidebar .facet .faceted-overlay { display: none; }
.sidebar .facet .faceted-slider p { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* Hide PS category tree module (we render our own) */
.sidebar .block-categories { display: none; }
.sidebar .material-icons { display: none !important; }
.sidebar span.custom-checkbox > span { display: none; }

/* Category tree — collapsible */
.cat-tree { list-style:none; padding:0; margin:0; }
.cat-tree-item { margin-bottom:2px; }
.cat-tree-row { display:flex; align-items:center; justify-content:space-between; }
.cat-tree-row a { font-size:13px; color:var(--gray-600); padding:5px 0; display:block; flex:1; transition:color var(--transition); }
.cat-tree-row a:hover { color:var(--orange); }
.cat-tree-item.active > .cat-tree-row > a { color:var(--orange); font-weight:700; }
.cat-tree-toggle { background:none; border:none; color:var(--gray-400); cursor:pointer; padding:4px; transition:transform 0.2s; display:flex; align-items:center; }
.cat-tree-toggle.open { transform:rotate(180deg); }
.cat-tree-toggle:hover { color:var(--orange); }
.cat-subtree { list-style:none; padding:0 0 0 16px; margin:0; }
.cat-subtree li { margin-bottom:1px; }
.cat-subtree a { font-size:12px; color:var(--gray-500); padding:3px 0; display:block; transition:color var(--transition); }
.cat-subtree a:hover { color:var(--orange); }
.cat-subtree li.active a { color:var(--orange); font-weight:600; }

/* Active filters bar */
.sidebar #js-active-search-filters { margin-bottom: 12px; }
.sidebar .active_filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sidebar .active_filters .filter-block { display: inline-flex; align-items: center; gap: 4px; background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-lighter); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.sidebar .active_filters .js-search-link { font-size: 12px; color: var(--gray-500); }

/* ======== CATEGORY: ACTIVE FILTERS ======== */
.active-filters { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.active-filter { display:inline-flex; align-items:center; gap:4px; background:var(--orange-bg); color:var(--orange); border:1px solid var(--orange-lighter); padding:4px 10px; border-radius:4px; font-size:12px; font-weight:500; }
.active-filter button { background:none; border:none; color:var(--orange); font-size:14px; cursor:pointer; padding:0; line-height:1; }
.clear-filters { font-size:12px; color:var(--gray-500); cursor:pointer; background:none; border:none; text-decoration:underline; }
.filter-range { display:flex; gap:8px; align-items:center; }
.filter-range input { width:100%; padding:7px 10px; border:1px solid var(--gray-300); border-radius:4px; font-size:12px; }
.filter-range span { font-size:12px; color:var(--gray-400); }

/* ======== CATEGORY: LIST VIEW ======== */
.products-list { display:flex; flex-direction:column; gap:12px; }
.p-list-card { display:grid; grid-template-columns:180px 1fr auto; border:1px solid var(--gray-200); border-radius:var(--radius-lg); overflow:hidden; background:white; transition:all 0.25s; gap:0; }
.p-list-card:hover { box-shadow:var(--shadow-md); }
.p-list-img { width:180px; background:var(--gray-100); display:flex; align-items:center; justify-content:center; position:relative; color:var(--gray-300); font-size:12px; min-height:140px; overflow:hidden; }
.p-list-img img { width:100%; height:100%; object-fit:cover; }
.p-list-img .badge { position:absolute; top:8px; left:8px; }
.p-list-body { padding:16px 20px; display:flex; flex-direction:column; justify-content:center; }
.p-list-cat { font-size:11px; color:var(--green); font-weight:600; text-transform:uppercase; letter-spacing:0.03em; }
.p-list-name { font-size:15px; font-weight:700; color:var(--gray-900); margin:4px 0 6px; line-height:1.35; }
/* ======== PRODUCT: VARIANT TABLE ======== */
.variant-table { width:100%; border-collapse:collapse; margin-top:8px; }
.variant-table th { text-align:left; padding:8px 10px; font-size:11px; font-weight:600; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.03em; border-bottom:2px solid var(--gray-200); }
.variant-table td { padding:10px; font-size:13px; border-bottom:1px solid var(--gray-100); }
.variant-table tr { cursor:pointer; transition:background 0.15s; }
.variant-table tr:hover td { background:var(--orange-bg); }
.variant-table tr.vt-selected td { background:var(--orange-bg); }
.variant-table .vt-radio { accent-color:var(--orange); width:16px; height:16px; }
.variant-table .vt-name { font-weight:600; color:var(--gray-900); }
.variant-table .vt-price { font-weight:700; color:var(--orange); }
.variant-table .vt-stock { color:var(--green); font-weight:500; }
.variant-table .vt-stock-dot { width:6px; height:6px; border-radius:50%; background:var(--green); display:inline-block; margin-right:4px; }
.variant-table .vt-unit-price { font-size:11px; color:var(--gray-400); }
.variant-table .vt-add { padding:6px 12px; background:var(--orange); color:white; border:none; border-radius:4px; font-size:11px; font-weight:600; cursor:pointer; }
.variant-table .vt-add:hover { background:var(--orange-hover); }

/* ======== PRODUCT: GHS PICTOGRAMS ======== */
.ghs-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.ghs-picto { width:48px; height:48px; background:white; border:2px solid #DC2626; transform:rotate(45deg); display:flex; align-items:center; justify-content:center; font-size:9px; color:#DC2626; font-weight:700; }
.ghs-picto span { transform:rotate(-45deg); text-align:center; line-height:1.1; }

/* ======== PRODUCT: REVIEWS ======== */
.reviews-section { padding:32px 0; }
.reviews-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.reviews-summary { display:flex; align-items:center; gap:24px; background:var(--gray-50); border-radius:var(--radius-lg); padding:20px; margin-bottom:24px; }
.reviews-avg { text-align:center; min-width:80px; }
.reviews-avg strong { font-size:36px; font-weight:800; color:var(--gray-900); display:block; }
.reviews-stars { display:flex; gap:2px; justify-content:center; }
.star-filled { color:var(--yellow); }
.star-empty { color:var(--gray-300); }
.reviews-bars { flex:1; }
.review-bar-row { display:flex; align-items:center; gap:8px; margin-bottom:4px; font-size:12px; color:var(--gray-500); }
.review-bar-row .bar { flex:1; height:6px; background:var(--gray-200); border-radius:3px; overflow:hidden; }
.review-bar-row .bar-fill { height:100%; background:var(--yellow); border-radius:3px; }
.review-list { display:flex; flex-direction:column; gap:16px; }
.review-item { padding:16px; border:1px solid var(--gray-200); border-radius:var(--radius-lg); }
.review-author { font-size:13px; font-weight:700; color:var(--gray-900); }
.review-date { font-size:12px; color:var(--gray-400); }
.review-stars-sm { display:flex; gap:1px; margin:4px 0 8px; }
.review-text { font-size:13px; color:var(--gray-600); line-height:1.6; }
.review-verified { font-size:11px; color:var(--green); font-weight:500; margin-top:6px; }
.write-review-btn { padding:10px 20px; }

/* ======== OPC PAGE ======== */
body#cart, body#checkout { display:flex; flex-direction:column; min-height:100vh; }
.opc-page { flex:1; padding:24px 0 48px; }
.opc-footer { border-top:1px solid var(--gray-200); padding:16px 0; font-size:12px; color:var(--gray-400); margin-top:auto; }

/* ======== OPC HEADER ======== */
.opc-header { background:white; border-bottom:1px solid var(--gray-200); position:sticky; top:0; z-index:100; }
.opc-back { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--gray-600); transition:color 0.15s; }
.opc-back:hover { color:var(--orange); }
.opc-account { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--gray-600); }
.opc-account:hover { color:var(--orange); }

/* ======== OPC LAYOUT ======== */
.opc-layout { display:grid; grid-template-columns:1fr 380px; gap:24px; align-items:start; }
.opc-main { min-width:0; }
.opc-aside { position:sticky; top:80px; }

/* OPC Sections */
.opc-section { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:24px; margin-bottom:16px; }
.opc-section-title { font-size:16px; font-weight:700; color:var(--gray-900); display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.opc-step-num { width:28px; height:28px; border-radius:50%; background:var(--orange); color:white; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0; }
.opc-section-badge { font-size:12px; font-weight:500; color:var(--gray-500); background:var(--gray-100); padding:2px 10px; border-radius:20px; margin-left:auto; }

/* OPC Cart Items */
.opc-cart-item { display:flex; align-items:center; gap:14px; padding:12px 0; }
.opc-cart-item:not(:last-child) { border-bottom:1px solid var(--gray-100); }
.opc-item-img { width:64px; height:64px; background:var(--gray-50); border:1px solid var(--gray-200); border-radius:10px; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.opc-item-img img { width:100%; height:100%; object-fit:contain; padding:4px; }
.opc-item-info { flex:1; min-width:0; }
.opc-item-name { font-size:14px; font-weight:600; color:var(--gray-900); display:block; line-height:1.3; }
.opc-item-name:hover { color:var(--orange); }
.opc-item-attr { font-size:12px; color:var(--gray-500); display:block; margin-top:2px; }
.opc-item-unit { font-size:11px; color:var(--gray-400); }
.opc-item-qty { display:flex; align-items:center; border:1px solid var(--gray-300); border-radius:6px; overflow:hidden; }
.opc-qty-btn { width:30px; height:30px; display:flex; align-items:center; justify-content:center; background:var(--gray-50); font-size:15px; color:var(--gray-600); transition:background 0.15s; }
.opc-qty-btn:hover { background:var(--gray-200); color:var(--gray-900); }
.opc-qty-val { width:36px; text-align:center; font-size:14px; font-weight:600; }
.opc-item-total { text-align:right; min-width:80px; }
.opc-item-price { font-size:16px; font-weight:700; color:var(--orange); display:block; }
.opc-item-remove { display:inline-flex; padding:4px; color:var(--gray-300); transition:color 0.15s; }
.opc-item-remove:hover { color:var(--dark-red); }

/* OPC Checkout Steps (PS core inside opc) */
.opc-checkout-steps .checkout-step { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:0; margin-bottom:16px; overflow:hidden; }
.opc-checkout-steps .checkout-step .step-title { font-size:16px; font-weight:700; color:var(--gray-900); display:flex; align-items:center; gap:10px; padding:20px 24px; margin:0; cursor:pointer; }
.opc-checkout-steps .checkout-step .content { padding:0 24px 24px; }
.opc-checkout-steps .checkout-step:not(.-current) .content { display:none; }

/* OPC Summary */
.opc-summary { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:24px; }
.opc-summary-title { font-size:16px; font-weight:700; color:var(--gray-900); margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--gray-200); }
.opc-summary-lines { margin-bottom:12px; }
.opc-summary-line { display:flex; justify-content:space-between; font-size:13px; color:var(--gray-600); margin-bottom:6px; }
.opc-summary-total { display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-top:2px solid var(--gray-200); }
.opc-summary-total span:first-child { font-size:14px; font-weight:700; color:var(--gray-900); }
.opc-total-price { font-size:24px; font-weight:800; color:var(--orange); }
.opc-total-label { font-size:12px; font-weight:500; color:var(--gray-500); margin-left:4px; }
.opc-total-netto { font-size:13px; color:var(--gray-500); margin-top:2px; }
.opc-voucher { margin-top:16px; padding-top:12px; border-top:1px solid var(--gray-100); }
.opc-payment-icons { display:flex; gap:10px; align-items:center; justify-content:center; margin-top:20px; padding-top:16px; border-top:1px solid var(--gray-100); flex-wrap:wrap; }
.opc-payment-icons img { height:24px; opacity:0.7; transition:opacity 0.15s; }
.opc-payment-icons img:hover { opacity:1; }
.opc-trust-mini { text-align:center; font-size:11px; color:var(--gray-400); margin-top:12px; display:flex; align-items:center; justify-content:center; gap:6px; }

/* OPC Checkout form styling — compact */
.opc-checkout-steps .form-group { margin-bottom:0; }
.opc-checkout-steps .form-group.row { display:flex; flex-direction:column; margin:0; gap:0; }
.opc-checkout-steps .form-group .col-md-3.form-control-label { flex:none; max-width:100%; padding:0; font-size:11px; font-weight:600; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:4px; }
.opc-checkout-steps .form-group .col-md-6,
.opc-checkout-steps .form-group .js-input-column { flex:none; max-width:100%; padding:0; }
.opc-checkout-steps .form-group .col-md-3.form-control-comment { display:none; }
.opc-checkout-steps .form-control-comment { display:none; }
.opc-checkout-steps .form-control { width:100%; padding:10px 12px; border:1px solid var(--gray-300); border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s, box-shadow 0.2s; background:white; }
.opc-checkout-steps .form-control:focus { border-color:var(--orange); box-shadow:0 0 0 3px rgba(255,108,0,0.08); }
.opc-checkout-steps select.form-control { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:36px; }
.opc-checkout-steps .form-control-valign { display:none; }
.opc-checkout-steps .form-footer { grid-column:1 / -1; }

/* Address form — force 2-column compact grid on the form wrapper */
.opc-checkout-steps #delivery-address,
.opc-checkout-steps #invoice-address,
.opc-checkout-steps .address-form { display:grid; grid-template-columns:1fr 1fr; gap:8px 14px; }
.opc-checkout-steps #delivery-address > *,
.opc-checkout-steps #invoice-address > *,
.opc-checkout-steps .address-form > * { grid-column: span 1; }
.opc-checkout-steps #delivery-address > p,
.opc-checkout-steps #delivery-address > footer,
.opc-checkout-steps #delivery-address > .form-group:first-child,
.opc-checkout-steps #invoice-address > p,
.opc-checkout-steps #invoice-address > footer,
.opc-checkout-steps .address-form > p,
.opc-checkout-steps .address-form > footer,
.opc-checkout-steps .address-form > .clearfix { grid-column:1 / -1; }

/* Custom checkbox styling in checkout */
.opc-checkout-steps .custom-checkbox { display:flex; align-items:center; gap:8px; font-size:13px; }
.opc-checkout-steps .custom-checkbox input[type="checkbox"] { width:18px; height:18px; accent-color:var(--orange); }
.opc-checkout-steps .custom-checkbox .material-icons,
.opc-checkout-steps .custom-checkbox span > span { display:none; }

/* Hide "Nazwa kontaktu" gender field */
.opc-checkout-steps .form-group:has([name="id_gender"]) { display:none; }
/* Fallback for browsers without :has */
.opc-checkout-steps .form-control-valign { display:none; }

/* Delivery options */
.opc-checkout-steps .delivery-option { display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--gray-200); border-radius:10px; margin-bottom:8px; cursor:pointer; transition:all 0.15s; background:white; }
.opc-checkout-steps .delivery-option:hover { border-color:var(--orange); }
.opc-checkout-steps .delivery-option input[type="radio"] { accent-color:var(--orange); width:18px; height:18px; flex-shrink:0; }

/* Payment options */
.opc-checkout-steps .payment-option { display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--gray-200); border-radius:10px; margin-bottom:8px; cursor:pointer; transition:all 0.15s; background:white; }
.opc-checkout-steps .payment-option:hover { border-color:var(--orange); }
.opc-checkout-steps .payment-option input[type="radio"] { accent-color:var(--orange); width:18px; height:18px; flex-shrink:0; }

/* Continue button in steps */
.opc-checkout-steps .continue.btn { background:var(--orange); border-color:var(--orange); color:white; border-radius:8px; font-size:15px; font-weight:700; padding:14px 24px; width:100%; margin-top:16px; display:flex; align-items:center; justify-content:center; gap:8px; }
.opc-checkout-steps .continue.btn:hover { background:var(--orange-hover); }

/* Conditions checkbox */
.opc-checkout-steps #conditions-to-approve { margin:16px 0; font-size:13px; }
.opc-checkout-steps #conditions-to-approve input[type="checkbox"] { accent-color:var(--orange); width:18px; height:18px; }

/* Payment confirmation */
.opc-checkout-steps #payment-confirmation button { background:var(--orange); border-color:var(--orange); color:white; border-radius:8px; font-size:16px; font-weight:700; padding:16px 24px; width:100%; cursor:pointer; }
.opc-checkout-steps #payment-confirmation button:hover { background:var(--orange-hover); }

/* ======== ACCOUNT: LAYOUT ======== */
.account-layout { display:grid; grid-template-columns:260px 1fr; gap:24px; padding:32px 0 64px; }
.account-title { font-size:24px; font-weight:800; color:var(--gray-900); margin-bottom:4px; }
.account-subtitle { font-size:14px; color:var(--gray-500); margin-bottom:24px; }

/* Account sidebar */
.account-nav { list-style:none; padding:0; }
.account-nav a { display:flex; align-items:center; gap:8px; padding:10px 14px; border-radius:8px; font-size:13px; color:var(--gray-600); font-weight:500; transition:all var(--transition); }
.account-nav a:hover { background:var(--gray-100); color:var(--gray-900); }
.account-nav a.active { background:var(--orange-bg); color:var(--orange); font-weight:600; }
.account-nav a svg { width:16px; height:16px; flex-shrink:0; }
.account-nav .nav-sep { height:1px; background:var(--gray-200); margin:8px 0; }

/* Account cards */
.acc-card { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:24px; margin-bottom:16px; }
.acc-card h2 { font-size:16px; font-weight:700; color:var(--gray-900); margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--gray-200); }

/* Dashboard stats */
.dash-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:24px; }
.dash-stat { background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:16px; text-align:center; }
.dash-stat strong { font-size:24px; font-weight:800; color:var(--orange); display:block; }
.dash-stat span { font-size:12px; color:var(--gray-500); }

/* Orders table */
.orders-table { width:100%; border-collapse:collapse; }
.orders-table th { text-align:left; padding:10px 14px; font-size:11px; font-weight:700; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.03em; border-bottom:2px solid var(--gray-200); }
.orders-table td { padding:10px 14px; font-size:13px; border-bottom:1px solid var(--gray-100); color:var(--gray-700); }
.orders-table tr:hover td { background:var(--gray-50); }
.order-status { display:inline-flex; padding:3px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.status-delivered { background:var(--green-bg); color:var(--green); }
.status-shipped { background:#DBEAFE; color:#1D4ED8; }
.status-processing { background:var(--orange-bg); color:var(--orange); }
.status-cancelled { background:#FEE2E2; color:var(--dark-red); }
.order-actions a { font-size:12px; color:var(--orange); font-weight:500; }

/* SOR certificate card */
.sor-card { background:var(--orange-bg); border:1px solid var(--orange-lighter); border-radius:var(--radius-xl); padding:24px; margin-bottom:16px; }
.sor-card h2 { font-size:16px; font-weight:700; margin-bottom:16px; border-bottom-color:var(--orange-lighter); }
.sor-cert-info { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.sor-field label { font-size:11px; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.03em; display:block; }
.sor-field .value { font-size:14px; font-weight:600; color:var(--gray-900); }
.sor-status { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; }
.sor-status .dot { width:8px; height:8px; border-radius:50%; }

/* Address cards */
.addr-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.addr-card { border:1px solid var(--gray-200); border-radius:var(--radius-lg); padding:20px; }
.addr-card h4 { font-size:14px; font-weight:700; margin-bottom:8px; }
.addr-card p { font-size:13px; color:var(--gray-600); line-height:1.6; }
.addr-actions { display:flex; gap:12px; margin-top:12px; }
.addr-actions a { font-size:12px; color:var(--orange); font-weight:500; }
.addr-default { display:inline-flex; padding:2px 8px; background:var(--green-bg); color:var(--green); font-size:11px; font-weight:600; border-radius:4px; margin-bottom:8px; }

/* ======== CMS: LAYOUT ======== */
.cms-layout { display:grid; grid-template-columns:260px 1fr; gap:24px; padding:32px 0 64px; }
.cms-sidebar { background:var(--gray-50); border-radius:var(--radius-xl); padding:24px; height:fit-content; }
.cms-nav { list-style:none; padding:0; }
.cms-nav-title { font-size:13px; font-weight:700; color:var(--gray-900); margin-bottom:12px; text-transform:uppercase; letter-spacing:0.04em; }
.cms-nav a { display:block; padding:8px 12px; border-radius:6px; font-size:13px; color:var(--gray-600); font-weight:500; transition:all var(--transition); margin-bottom:2px; }
.cms-nav a:hover { background:var(--gray-100); color:var(--gray-900); }
.cms-nav a.active { background:var(--orange-bg); color:var(--orange); font-weight:600; }
.cms-content { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:32px; }
.cms-content h1 { font-size:24px; font-weight:800; color:var(--gray-900); margin-bottom:16px; }
.cms-content .last-update { font-size:12px; color:var(--gray-400); margin-bottom:24px; }
.cms-content h2 { font-size:18px; font-weight:700; color:var(--gray-900); margin:24px 0 12px; }
.cms-content h3 { font-size:15px; font-weight:700; color:var(--gray-800); margin:20px 0 8px; }
.cms-content p { font-size:14px; color:var(--gray-700); line-height:1.8; margin-bottom:12px; }
.cms-content ul, .cms-content ol { margin:12px 0; padding-left:24px; }
.cms-content li { font-size:14px; color:var(--gray-700); line-height:1.7; margin-bottom:4px; }
.cms-content a { color:var(--orange); }
.cms-content a:hover { color:var(--orange-hover); text-decoration:underline; }
.cms-content table { width:100%; border-collapse:collapse; margin:16px 0; }
.cms-content table th { text-align:left; padding:10px 14px; font-size:12px; font-weight:700; background:var(--gray-50); border-bottom:2px solid var(--gray-200); }
.cms-content table td { padding:10px 14px; font-size:13px; border-bottom:1px solid var(--gray-100); }
.cms-callout { background:var(--orange-bg); border-left:4px solid var(--orange); border-radius:0 var(--radius) var(--radius) 0; padding:16px 20px; margin:16px 0; }
.cms-callout p { color:var(--gray-800); margin:0; }

/* ======== CART MODAL ======== */
.cart-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:9998; backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); opacity:0; transition:opacity 0.25s; }
.cart-modal-overlay.active { display:block; opacity:1; }
.cart-modal { display:none; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%) scale(0.95); background:white; border-radius:var(--radius-xl); padding:32px; max-width:420px; width:calc(100% - 32px); z-index:9999; box-shadow:0 20px 60px rgba(0,0,0,0.2); opacity:0; transition:all 0.3s cubic-bezier(0.16,1,0.3,1); }
.cart-modal.active { display:block; opacity:1; transform:translate(-50%,-50%) scale(1); }
.cart-modal-icon { width:56px; height:56px; background:var(--green-bg); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.cart-modal-icon svg { color:var(--green); }
.cart-modal h3 { font-size:18px; font-weight:800; color:var(--gray-900); text-align:center; margin-bottom:4px; }
.cart-modal-sub { font-size:13px; color:var(--gray-500); text-align:center; margin-bottom:20px; }
.cart-modal-product { display:flex; gap:14px; align-items:center; padding:16px; background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius-lg); margin-bottom:20px; }
.cart-modal-product-img { width:64px; height:64px; background:white; border-radius:10px; border:1px solid var(--gray-200); overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.cart-modal-product-img img { width:100%; height:100%; object-fit:contain; padding:4px; }
.cart-modal-product-info { flex:1; min-width:0; }
.cart-modal-product-name { font-size:14px; font-weight:700; color:var(--gray-900); line-height:1.3; margin-bottom:2px; }
.cart-modal-product-variant { font-size:12px; color:var(--gray-500); display:flex; align-items:center; gap:4px; }
.cart-modal-product-variant::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--green); flex-shrink:0; }
.cart-modal-product-price { font-size:14px; font-weight:700; color:var(--orange); white-space:nowrap; }
.cart-modal-total { display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-top:2px solid var(--gray-200); margin-bottom:20px; }
.cart-modal-total span:first-child { font-size:14px; font-weight:600; color:var(--gray-700); }
.cart-modal-total .total-price { font-size:16px; font-weight:700; color:var(--orange); }
.cart-modal-btns { display:flex; flex-direction:column; gap:8px; }
.cart-modal-btns .btn { justify-content:center; font-size:14px; padding:13px 20px; }
.cart-modal-close { position:absolute; top:12px; right:12px; width:32px; height:32px; border:none; background:var(--gray-100); border-radius:50%; color:var(--gray-500); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all var(--transition); }
.cart-modal-close:hover { background:var(--gray-200); color:var(--gray-800); }

/* ======== CHECKOUT & CART: DISTRACTION-FREE ======== */
body#cart .top-bar,
body#cart .header,
body#cart .main-nav,
body#cart .newsletter-section,
body#cart footer,
body#cart .footer-credit,
body#checkout .top-bar,
body#checkout .main-nav,
body#checkout .newsletter-section,
body#checkout .footer-trust,
body#checkout .footer-main,
body#checkout .footer-credit,
body#checkout .footer { display:none !important; }

/* Checkout layout */
.checkout-layout { display:grid; grid-template-columns:1fr 380px; gap:24px; align-items:start; }
.checkout-steps { min-width:0; }
.checkout-aside { position:sticky; top:20px; }

/* Steps */
body#checkout .checkout-step { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:0; margin-bottom:16px; overflow:hidden; }
body#checkout .checkout-step .step-title { font-size:16px; font-weight:700; color:var(--gray-900); display:flex; align-items:center; gap:12px; padding:20px 24px; margin:0; cursor:pointer; transition:background 0.15s; }
body#checkout .checkout-step .step-title:hover { background:var(--gray-50); }
body#checkout .checkout-step .content { padding:0 24px 24px; }
body#checkout .checkout-step:not(.-current) .content { display:none; }

/* Step indicators */
.step-indicator { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; font-size:14px; font-weight:700; background:var(--gray-100); color:var(--gray-400); border:2px solid var(--gray-200); flex-shrink:0; }
body#checkout .checkout-step.-current .step-indicator { background:var(--orange); color:white; border-color:var(--orange); }
body#checkout .checkout-step.-complete .step-indicator { background:var(--green); color:white; border-color:var(--green); }
.step-label { flex:1; }
.step-edit { font-size:12px; font-weight:600; color:var(--orange); cursor:pointer; }
.step-edit:hover { text-decoration:underline; }
body#checkout .checkout-step.-complete .step-title { color:var(--gray-600); }
body#checkout .checkout-step.-current .step-title { color:var(--gray-900); border-bottom:1px solid var(--gray-200); }

/* Form in checkout */
body#checkout .form-group { margin-bottom:12px; }
body#checkout .form-group label:not(.custom-checkbox label) { font-size:12px; font-weight:600; color:var(--gray-700); margin-bottom:4px; display:block; }
body#checkout input[type="text"],
body#checkout input[type="email"],
body#checkout input[type="tel"],
body#checkout input[type="password"],
body#checkout select,
body#checkout textarea { width:100%; padding:10px 14px; border:1px solid var(--gray-300); border-radius:6px; font-size:13px; outline:none; transition:border-color var(--transition); }
body#checkout input:focus, body#checkout select:focus { border-color:var(--orange); box-shadow:0 0 0 3px rgba(255,108,0,0.08); }
body#checkout .form-control-comment { display:none; }
body#checkout .row { display:flex; flex-wrap:wrap; gap:0; }
body#checkout .col-lg-8, body#checkout .cart-grid-body { width:100%; flex:none; max-width:100%; }
body#checkout .col-lg-4, body#checkout .cart-grid-right { display:none; }

/* Delivery options */
body#checkout .delivery-option { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--gray-200); border-radius:var(--radius); margin-bottom:8px; cursor:pointer; transition:all var(--transition); background:white; }
body#checkout .delivery-option:hover { border-color:var(--orange); background:var(--orange-bg); }
body#checkout .delivery-option input[type="radio"] { accent-color:var(--orange); width:18px; height:18px; }
body#checkout .delivery-option-name { font-size:13px; font-weight:600; }
body#checkout .delivery-option .carrier-price { font-size:14px; font-weight:700; color:var(--orange); margin-left:auto; }

/* Payment options */
body#checkout .payment-option { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--gray-200); border-radius:var(--radius); margin-bottom:8px; cursor:pointer; transition:all var(--transition); background:white; }
body#checkout .payment-option:hover { border-color:var(--orange); background:var(--orange-bg); }
body#checkout .payment-option input[type="radio"] { accent-color:var(--orange); width:18px; height:18px; }
body#checkout #conditions-to-approve { margin:16px 0; font-size:13px; }
body#checkout #conditions-to-approve input[type="checkbox"] { accent-color:var(--orange); width:18px; height:18px; }

/* Cart summary card in checkout */
.checkout-summary-card { background:white; border:1px solid var(--gray-200); border-radius:var(--radius-xl); padding:24px; }
.summary-title { font-size:16px; font-weight:700; color:var(--gray-900); margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--gray-200); display:flex; justify-content:space-between; align-items:center; }
.summary-count { font-size:12px; font-weight:500; color:var(--gray-500); background:var(--gray-100); padding:2px 10px; border-radius:20px; }
.summary-products { margin-bottom:16px; }
.summary-product-row { display:flex; align-items:center; gap:12px; padding:8px 0; }
.summary-product-row:not(:last-child) { border-bottom:1px solid var(--gray-100); }
.summary-product-img { width:48px; height:48px; border-radius:8px; border:1px solid var(--gray-200); overflow:hidden; position:relative; flex-shrink:0; background:var(--gray-50); }
.summary-product-img img { width:100%; height:100%; object-fit:contain; padding:2px; }
.summary-product-qty { position:absolute; top:-6px; right:-6px; background:var(--orange); color:white; font-size:10px; font-weight:700; width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.summary-product-info { flex:1; min-width:0; }
.summary-product-name { font-size:13px; font-weight:600; color:var(--gray-900); display:block; line-height:1.3; }
.summary-product-attr { font-size:11px; color:var(--gray-500); }
.summary-product-price { font-size:13px; font-weight:700; color:var(--gray-900); white-space:nowrap; }
.summary-subtotals { padding:12px 0; border-top:1px solid var(--gray-200); }
.summary-row { display:flex; justify-content:space-between; font-size:13px; color:var(--gray-600); margin-bottom:6px; }
.summary-total { display:flex; justify-content:space-between; align-items:center; padding:16px 0 0; border-top:2px solid var(--gray-200); }
.summary-total span:first-child { font-size:14px; font-weight:700; color:var(--gray-900); }
.summary-total-price { font-size:22px; font-weight:800; color:var(--orange); }
.summary-tax-note { text-align:right; font-size:11px; color:var(--gray-500); margin-top:2px; }
.summary-trust { margin-top:20px; padding-top:16px; border-top:1px solid var(--gray-200); }
.summary-trust-item { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--gray-600); margin-bottom:8px; }

/* Voucher in checkout */
body#checkout .cart-voucher { margin-top:16px; padding-top:16px; border-top:1px solid var(--gray-200); }
body#checkout .promo-code-button { font-size:13px; color:var(--orange); cursor:pointer; font-weight:600; }
body#checkout .promo-input { display:flex; gap:8px; margin-top:8px; }
body#checkout .promo-input input { flex:1; padding:8px 12px; border:1px solid var(--gray-300); border-radius:6px; font-size:13px; }
body#checkout .promo-input button { padding:8px 16px; background:var(--orange); color:white; border:none; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; }

/* Confirm button */
body#checkout #payment-confirmation button,
body#checkout .continue.btn.btn-primary,
body#checkout #content .btn-primary { background:var(--orange) !important; border-color:var(--orange) !important; color:white !important; border-radius:8px; font-size:15px; font-weight:700; padding:14px 24px; width:100%; transition:background var(--transition); display:flex; align-items:center; justify-content:center; gap:8px; }
body#checkout #payment-confirmation button:hover,
body#checkout .btn-primary:hover { background:var(--orange-hover) !important; }
body#checkout .continue.btn { margin-top:16px; }

/* Terms checkbox */
body#checkout .custom-checkbox { display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--gray-600); }
body#checkout .custom-checkbox input { accent-color:var(--orange); margin-top:2px; }
body#checkout .condition-label a { color:var(--orange); }

/* Trust badges */
body#checkout .checkout-trust { display:flex; gap:16px; justify-content:center; margin-top:20px; }
body#checkout .checkout-trust span { font-size:11px; color:var(--gray-500); display:flex; align-items:center; gap:4px; }

/* ======== GLOBAL: LAYOUT & RESET ======== */
html, body { overflow-x: hidden; max-width: 100vw; }
#wrapper { width: 100%; }
#content-wrapper { width: 100%; }

/* Reset PS module interference */
#search_widget { float: none !important; margin: 0 !important; min-width: auto !important; overflow: visible !important; display: none !important; }
.search-box { flex: 1; max-width: 560px; position: relative; }
.search-box form { display: flex; }
.search-input-wrap { display: flex; align-items: center; border: 2px solid var(--gray-200); border-radius: 8px; background: var(--gray-50); transition: all var(--transition); position: relative; width: 100%; }
.search-input-wrap:focus-within { border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgba(255,108,0,0.1); }
.search-icon-left { position: absolute; left: 12px; color: var(--gray-400); pointer-events: none; }
.search-box input[type="text"],
.search-box input[name="s"] { flex: 1; padding: 10px 10px 10px 38px; border: none; background: transparent; font-size: 13px; outline: none; min-width: 0; margin: 0; width: 100%; }
.search-box input::placeholder { color: var(--gray-400); }
.search-btn { padding: 8px 16px; background: var(--orange); border: none; border-radius: 0 6px 6px 0; color: white; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background var(--transition); margin: -2px -2px -2px 0; cursor: pointer; }
.search-btn:hover { background: var(--orange-hover); }
/* Search live results dropdown v2 */
.search-live-results { display:none; position:absolute; top:calc(100% + 4px); left:0; right:0; background:white; border:1px solid var(--gray-200); border-radius:12px; box-shadow:0 12px 36px rgba(0,0,0,0.12); max-height:70vh; overflow-y:auto; z-index:200; scrollbar-width:thin; }
.search-result-item { display:flex; align-items:center; gap:10px; padding:10px 16px; text-decoration:none; transition:background 0.15s; color:inherit; }
.search-result-item:hover, .search-result-active { background:var(--gray-50); }
.search-result-img { width:48px; height:48px; background:var(--gray-100); border-radius:6px; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.search-result-img img { width:100%; height:100%; object-fit:contain; }
.search-result-info { flex:1; min-width:0; }
.search-result-name { font-size:13px; font-weight:600; color:var(--gray-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-result-name mark { background:rgba(255,108,0,0.15); color:var(--orange); font-weight:700; border-radius:2px; padding:0 1px; }
.search-result-meta { display:flex; gap:8px; align-items:center; margin-top:2px; }
.search-result-ref { font-size:11px; color:var(--gray-400); font-family:monospace; }
.search-result-cat { font-size:11px; color:var(--gray-500); }
.search-result-prices { display:flex; flex-direction:column; align-items:flex-end; white-space:nowrap; flex-shrink:0; }
.search-price-current { font-size:14px; font-weight:700; color:var(--orange); }
.search-price-promo { color:#d32f2f; }
.search-price-old { font-size:11px; color:var(--gray-400); text-decoration:line-through; }
.search-section-label { padding:8px 16px 4px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray-400); border-top:1px solid var(--gray-100); }
.search-section-label:first-child { border-top:none; }
.search-cat-item { gap:8px; }
.search-cat-icon { color:var(--gray-400); flex-shrink:0; }
.search-cat-count { font-size:11px; color:var(--gray-400); white-space:nowrap; }
.search-view-all { display:block; text-align:center; padding:12px; font-size:13px; font-weight:600; color:var(--orange); border-top:1px solid var(--gray-100); text-decoration:none; }
.search-view-all:hover { background:var(--gray-50); }
.search-empty { padding:28px 20px; text-align:center; color:var(--gray-500); font-size:13px; }
.search-empty svg { margin:0 auto 8px; display:block; }
.search-empty p { margin:0 0 4px; }
.search-empty span { font-size:12px; color:var(--gray-400); }
.search-corrected { padding:10px 16px; font-size:12px; color:var(--gray-600); background:var(--gray-50); border-bottom:1px solid var(--gray-100); border-radius:12px 12px 0 0; }
.search-corrected strong { color:var(--orange); }
.search-loading { padding:20px; text-align:center; color:var(--gray-400); font-size:13px; display:flex; align-items:center; justify-content:center; gap:8px; }
.search-spinner { width:16px; height:16px; border:2px solid var(--gray-200); border-top-color:var(--orange); border-radius:50%; animation:spin 0.6s linear infinite; display:inline-block; }
@keyframes spin { to { transform:rotate(360deg); } }
/* Mobile search dropdown */
@media (max-width:768px) {
    .search-live-results { position:fixed; top:auto; left:0; right:0; bottom:0; max-height:60vh; border-radius:16px 16px 0 0; border:none; box-shadow:0 -8px 32px rgba(0,0,0,0.15); }
    .search-result-img { width:40px; height:40px; }
    .search-result-name { font-size:12px; }
    .search-price-current { font-size:13px; }
    .search-result-item { padding:8px 12px; }
}
.blockreassurance { display: none !important; }
.social-sharing, .ps-social-follow { display: none !important; }

/* Product page specific overrides */
.product-info .qty-input { width:60px !important; min-width:60px !important; max-width:60px !important; height:44px; text-align:center; border:none !important; border-left:1px solid var(--gray-300) !important; border-right:1px solid var(--gray-300) !important; font-size:15px; font-weight:600; padding:0 !important; margin:0 !important; -moz-appearance:textfield; border-radius:0 !important; box-shadow:none !important; }
.product-info .qty-input::-webkit-outer-spin-button,
.product-info .qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.product-info .qty-box { display:inline-flex; border:1px solid var(--gray-300); border-radius:8px; overflow:hidden; }
.product-info .qty-btn { width:40px; height:44px; background:var(--gray-50); border:none; font-size:18px; color:var(--gray-600); cursor:pointer; }
.product-info .qty-btn:hover { background:var(--gray-200); }
.product-info .qty-cart-row { display:flex; gap:12px; align-items:stretch; }
.product-info .add-to-cart-btn { flex:1; height:44px; }
.product-info .stock-info .stock-dot { display:inline-block; }
.social-sharing { display:none !important; }

#blockEmailSubscription_displayFooter,
.block-social,
.ps-emailsubscription,
.block_newsletter { display: none !important; }
.footer .links, .footer .wrapper { all: unset; }
.footer #block_myaccount_infos { all: unset; }

/* Prevent parent classic styles from leaking */
#_desktop_logo, #_desktop_cart, #_desktop_user_info, #_desktop_language_selector,
#_desktop_currency_selector, #_desktop_contact_link, #desktop_top_menu_wrapper,
#header .header-nav, .header-top, .header-banner { display: none !important; }
/* Hide ps_mainmenu module output inside our nav */
.main-nav #_desktop_top_menu,
.main-nav .js-top-menu,
.main-nav .top-menu { display: none !important; }

/* Ensure our footer is properly styled */
.footer, .footer * { box-sizing: border-box; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }

/* Newsletter section full-width */
.newsletter-section { width: 100vw; margin-left: calc(-50vw + 50%); }

/* ======== HOME: MODULES SECTION ======== */
.home-modules { padding: 48px 0; }
.home-modules > .container > section { margin-bottom: 32px; }

/* Override classic module styles to match Polmais design */
.home-modules .featured-products { border: none; }
.home-modules .featured-products h2,
.home-modules .featured-products .products-section-title {
    font-size: 20px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.3px;
    margin-bottom: 16px; padding: 0; border: none; text-align: left;
}
.home-modules .featured-products .products {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.home-modules .featured-products .product-miniature {
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    overflow: hidden; transition: all 0.25s; background: white;
}
.home-modules .featured-products .product-miniature:hover {
    box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.home-modules .featured-products .thumbnail-container {
    position: relative; overflow: hidden;
}
.home-modules .featured-products .product-title a {
    font-size: 14px; font-weight: 700; color: var(--gray-900); line-height: 1.35;
}
.home-modules .featured-products .product-title a:hover { color: var(--orange); }
.home-modules .featured-products .product-price-and-shipping .price {
    font-size: 18px; font-weight: 800; color: var(--orange);
}
.home-modules .featured-products .product-price-and-shipping .regular-price {
    font-size: 13px; color: var(--gray-400); text-decoration: line-through;
}

/* ps_imageslider override */
.home-modules #homeslider,
.home-modules .homeslider-container { display: none; }

/* Override clearfix floats that break layout */
.home-modules .clearfix::after { content: ''; display: table; clear: both; }
.home-modules .featured-products.clearfix { float: none; width: 100%; }

/* Button overrides for classic modules */
.home-modules .btn-primary,
.home-modules .add-to-cart {
    background: var(--orange) !important; border-color: var(--orange) !important;
    color: white !important; border-radius: 6px; font-weight: 600;
    transition: background var(--transition);
}
.home-modules .btn-primary:hover,
.home-modules .add-to-cart:hover {
    background: var(--orange-hover) !important; border-color: var(--orange-hover) !important;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
    .mega-cols { grid-template-columns: repeat(3, 1fr); }
    .cats-grid { grid-template-columns: repeat(3, 1fr); }
    .banners-grid { grid-template-columns: 1fr 240px; }
    .prod-card { min-width: 240px; max-width: 240px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .product-top { gap: 24px; }
    .opc-layout { grid-template-columns: 1fr 320px; }
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .top-bar-left { display: none; }
    .search-box { max-width: none; }
    .h-action .label { display: none; }
    .nav-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nl-card { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
    .footer-trust { grid-template-columns: 1fr 1fr; gap: 16px; }
    .ft-item { border-right: none; padding: 8px 0; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-inner { grid-template-columns: 1fr; padding: 48px 0 56px; }
    .hero h1 { font-size: 32px; }
    .banners-grid { grid-template-columns: 1fr; }
    .banner-side-stack { flex-direction: row; }
    .banner-slide-img { display: none; }
    .cats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-cols { grid-template-columns: 1fr; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .product-top { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .cat-layout { grid-template-columns: 1fr; }
    .cat-layout .sidebar { display:none; position:fixed; left:0; top:0; bottom:0; width:300px; z-index:500; background:white; overflow-y:auto; padding:20px; box-shadow:4px 0 20px rgba(0,0,0,0.15); transform:translateX(-100%); transition:transform 0.3s; }
    .cat-layout .sidebar.sidebar-open { display:block; transform:translateX(0); }
    .sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:499; }
    .sidebar-overlay.active { display:block; }
    .mobile-filter-btn { display:inline-flex !important; }
    .sidebar-toggle { display:none !important; }
    .cat-layout.sidebar-hidden .products-grid { grid-template-columns:repeat(2,1fr); }
    .opc-layout { grid-template-columns: 1fr; }
    .opc-summary { position: static; }
    .opc-steps { flex-wrap: wrap; }
    .account-layout { grid-template-columns: 1fr; }
    .cms-layout { grid-template-columns: 1fr; }
    .p-list-card { grid-template-columns: 120px 1fr; }
    .p-list-side { grid-column: 1 / -1; border-left:none; border-top:1px solid var(--gray-100); flex-direction:row; flex-wrap:wrap; justify-content:space-between; align-items:center; }
    .addr-grid { grid-template-columns: 1fr; }
    .sor-cert-info { grid-template-columns: 1fr; }
    .sor-cert-fields { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    #contact .container > div[style*="grid"] { grid-template-columns: 1fr !important; }
    .cart-item { grid-template-columns: 60px 1fr; }
    .reviews-summary { flex-direction: column; text-align: center; }
}
/* Hamburger + mobile menu — HIDDEN on desktop */
.hamburger { display:none !important; background:none; border:none; cursor:pointer; padding:8px; flex-direction:column; gap:4px; }
.mobile-menu { display:none !important; position:fixed; inset:0; z-index:500; background:rgba(0,0,0,0.4); }
.hamburger span { display:block; width:20px; height:2px; background:var(--gray-700); border-radius:1px; transition:all 0.3s; }
.hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(4px,4px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(4px,-4px); }

/* Mobile menu — hidden everywhere by default */
.mobile-menu-inner { position:absolute; left:0; top:0; bottom:0; width:300px; background:white; overflow-y:auto; box-shadow:4px 0 20px rgba(0,0,0,0.15); }
.mobile-menu-list { list-style:none; padding:8px 0; margin:0; }
.mobile-menu-list li a { display:block; padding:12px 20px; font-size:14px; color:var(--gray-700); font-weight:500; transition:background 0.15s; }
.mobile-menu-list li a:hover { background:var(--gray-50); color:var(--orange); }

@media (max-width: 768px) {
    .hamburger { display:flex !important; }
    .main-nav { display:none !important; }
    .mobile-menu { display:none !important; } /* default hidden on mobile too */
    .mobile-menu.open { display:block !important; } /* shown only when toggled */
}
@media (min-width: 769px) {
    .hamburger { display:none !important; }
    .mobile-menu { display:none !important; }
    .mobile-menu.open { display:none !important; } /* NEVER show on desktop */
}

@media (max-width: 480px) {
    .header-inner { gap: 8px; }
    .logo-name { font-size: 16px; }
    .cats-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .banner-side-stack { flex-direction: column; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-trust { grid-template-columns: 1fr; }
}
/* cache-bust: 1774949952 */
