/**
 * KS Homepage - Frontend Styles
 * @author KamikStudio
 */

/* === VARIABLES === */
:root {
    --ks-primary: #16a34a;
    --ks-primary-dark: #15803d;
    --ks-orange: #f97316;
    --ks-orange-light: #fff7ed;
    --ks-orange-border: #fed7aa;
    --ks-gray-50: #f9fafb;
    --ks-gray-100: #f3f4f6;
    --ks-gray-200: #e5e7eb;
    --ks-gray-500: #6b7280;
    --ks-gray-700: #374151;
    --ks-gray-800: #1f2937;
    --ks-radius: 12px;
    --ks-radius-lg: 16px;
    --ks-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --ks-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

.ks-homepage { padding: 0; }

/* === HERO SECTION === */
.ks-hero { padding: 24px 0; }
.ks-hero__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* Slider */
.ks-hero__slider { position: relative; border-radius: var(--ks-radius-lg); overflow: hidden; height: 320px; }
.ks-slider { position: relative; height: 100%; }
.ks-slider__track { position: relative; height: 100%; }
.ks-slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; background-size: cover; background-position: center; }
.ks-slider__slide.active { opacity: 1; }
.ks-slider__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px; }

.ks-slider__title { font-size: 2.25rem; font-weight: 700; margin: 0 0 8px; line-height: 1.2; }
.ks-slider__subtitle { font-size: 1.125rem; opacity: 0.9; margin: 0 0 24px; }
.ks-slider__cta { display: inline-block; background: #fff; color: var(--ks-primary); padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; width: fit-content; }
.ks-slider__cta:hover { transform: translateY(-2px); box-shadow: var(--ks-shadow-lg); color: var(--ks-primary); }
.ks-slider__dots { position: absolute; bottom: 16px; left: 48px; display: flex; gap: 8px; }
.ks-slider__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: background 0.2s; }
.ks-slider__dot.active { background: #fff; }

/* Kategorie sezonowe */
.ks-hero__categories { display: flex; }
.ks-season-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
.ks-season-card { position: relative; background: #fff; border: 1px solid var(--ks-gray-200); border-radius: var(--ks-radius); padding: 20px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; transition: box-shadow 0.2s, border-color 0.2s; }
.ks-season-card:hover { box-shadow: var(--ks-shadow-lg); border-color: var(--ks-primary); }
.ks-season-card__badge { position: absolute; top: 8px; right: 8px; background: var(--ks-orange); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.ks-season-card__icon { font-size: 2rem; margin-bottom: 8px; }
.ks-season-card__name { font-size: 0.875rem; font-weight: 500; color: var(--ks-gray-700); text-align: center; }

/* === PREORDER SECTION - HORIZONTAL SCROLL === */
.ks-preorder { padding: 24px 0; }
.ks-preorder__wrapper { background: linear-gradient(135deg, var(--ks-orange-light), #fef3c7); border: 1px solid var(--ks-orange-border); border-radius: var(--ks-radius-lg); padding: 24px; }
.ks-preorder__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.ks-preorder__title-group { display: flex; align-items: center; gap: 12px; }
.ks-preorder__badge { background: var(--ks-orange); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; }
.ks-preorder__title { font-size: 1.125rem; font-weight: 600; color: var(--ks-gray-800); margin: 0; }

/* Promo boxes w headerze */
.ks-preorder__actions { display: flex; align-items: center; gap: 12px; }
.ks-promo-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ks-orange-border); padding: 10px 14px; border-radius: var(--ks-radius); text-decoration: none; transition: background 0.2s, box-shadow 0.2s; }
.ks-promo-box:hover { background: var(--ks-orange-light); box-shadow: 0 2px 8px rgba(249,115,22,0.15); }
.ks-promo-box__icon { font-size: 1.25rem; }
.ks-promo-box__text { display: flex; flex-direction: column; }
.ks-promo-box__subtitle { font-size: 11px; color: var(--ks-gray-500); }
.ks-promo-box__title { font-size: 12px; font-weight: 600; color: #c2410c; }

/* Countdown */
.ks-preorder__countdown { background: rgba(255,255,255,0.6); border-radius: var(--ks-radius); padding: 10px 20px; display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.ks-preorder__countdown-label { font-size: 13px; color: var(--ks-gray-700); }
.ks-countdown { display: flex; gap: 6px; }
.ks-countdown__item { background: var(--ks-orange); color: #fff; padding: 6px 10px; border-radius: 6px; text-align: center; min-width: 44px; }
.ks-countdown__value { display: block; font-size: 1rem; font-weight: 700; }
.ks-countdown__label { font-size: 10px; opacity: 0.85; }

/* HORIZONTAL SCROLL CONTAINER */
.ks-preorder__scroll-wrapper { position: relative; margin: 0 -8px; }
.ks-preorder__products { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 8px 12px; scrollbar-width: thin; scrollbar-color: var(--ks-orange) transparent; -webkit-overflow-scrolling: touch; }
.ks-preorder__products::-webkit-scrollbar { height: 6px; }
.ks-preorder__products::-webkit-scrollbar-track { background: transparent; }
.ks-preorder__products::-webkit-scrollbar-thumb { background: var(--ks-orange); border-radius: 3px; }

/* Scroll arrows */
.ks-preorder__scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: #fff; border: 1px solid var(--ks-orange-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.ks-preorder__scroll-btn:hover { background: var(--ks-orange); color: #fff; border-color: var(--ks-orange); }
.ks-preorder__scroll-btn--prev { left: -8px; }
.ks-preorder__scroll-btn--next { right: -8px; }
.ks-preorder__scroll-btn.hidden { opacity: 0; pointer-events: none; }

/* SMALLER PRODUCT CARDS */
.ks-preorder-card { flex: 0 0 180px; background: #fff; border: 1px solid rgba(251,146,60,0.2); border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.ks-preorder-card:hover { box-shadow: 0 4px 16px rgba(249,115,22,0.15); transform: translateY(-2px); }
.ks-preorder-card__image { display: block; aspect-ratio: 1; background: var(--ks-gray-100); overflow: hidden; }
.ks-preorder-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ks-preorder-card:hover .ks-preorder-card__image img { transform: scale(1.05); }
.ks-preorder-card__no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.ks-preorder-card__content { padding: 10px; }
.ks-preorder-card__date { font-size: 11px; color: var(--ks-orange); font-weight: 500; }
.ks-preorder-card__title { font-size: 12px; font-weight: 500; color: var(--ks-gray-800); margin: 4px 0 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.ks-preorder-card__title a { color: inherit; text-decoration: none; }
.ks-preorder-card__title a:hover { color: var(--ks-primary); }
.ks-preorder-card__price { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ks-primary); margin-bottom: 8px; }
.ks-preorder-card__btn { display: block; width: 100%; background: var(--ks-orange); color: #fff; text-align: center; padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.ks-preorder-card__btn:hover { background: #ea580c; color: #fff; }

/* LAST CARD - CTA */
.ks-preorder-card--cta { flex: 0 0 180px; background: rgba(255,255,255,0.6); border: 2px dashed var(--ks-orange-border); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 16px; gap: 12px; }
.ks-preorder-card--cta:hover { background: rgba(255,255,255,0.9); border-color: var(--ks-orange); }
.ks-preorder-card__cta-icon { font-size: 2rem; }
.ks-preorder-card__cta-text { font-size: 12px; color: #c2410c; font-weight: 500; line-height: 1.4; }
.ks-preorder-card__cta-btn { background: var(--ks-orange); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.2s; text-decoration: none; display: inline-block; }
.ks-preorder-card__cta-btn:hover { background: #ea580c; color: #fff; }
.ks-preorder-card__cta-link { font-size: 12px; color: var(--ks-orange); text-decoration: none; font-weight: 500; }
.ks-preorder-card__cta-link:hover { text-decoration: underline; }

/* === QUICK LINKS === */
.ks-quick-links { padding: 16px 0; }
.ks-quick-links__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ks-quick-link { background: #fff; border: 1px solid var(--ks-gray-200); padding: 10px 20px; border-radius: 999px; font-size: 14px; color: var(--ks-gray-700); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.ks-quick-link:hover { border-color: var(--ks-primary); color: var(--ks-primary); }

/* === TRUST BADGES === */
.ks-trust-badges { padding: 32px 0; }
.ks-trust-badges__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ks-trust-badge { background: #fff; border: 1px solid var(--ks-gray-200); border-radius: var(--ks-radius); padding: 20px; text-align: center; }
.ks-trust-badge__icon { font-size: 1.75rem; display: block; margin-bottom: 8px; }
.ks-trust-badge__title { display: block; font-size: 14px; font-weight: 600; color: var(--ks-gray-800); }
.ks-trust-badge__desc { display: block; font-size: 13px; color: var(--ks-gray-500); margin-top: 4px; }

/* === WEATHER BAR WITH CITY SELECTOR === */
.ks-weather-bar { background: linear-gradient(135deg, #eff6ff, #f0fdf4); border-bottom: 1px solid #bfdbfe; }
.ks-weather-bar__content { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; flex-wrap: wrap; gap: 10px; }

/* Location button */
.ks-weather-bar__location { position: relative; }
.ks-weather-bar__location-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 6px 12px; border-radius: 20px; transition: background 0.2s; font-size: 14px; }
.ks-weather-bar__location-btn:hover { background: rgba(255,255,255,0.6); }
.ks-weather-bar__icon { font-size: 1.25rem; }
.ks-weather-bar__temp { font-weight: 600; color: #374151; }
.ks-weather-bar__divider { color: #d1d5db; }
.ks-weather-bar__region { color: #374151; font-weight: 500; }
.ks-weather-bar__arrow { color: #6b7280; transition: transform 0.2s; }
.ks-weather-bar__location.open .ks-weather-bar__arrow { transform: rotate(180deg); }

/* Info & tip */
.ks-weather-bar__info { display: flex; align-items: center; gap: 8px; }
.ks-weather-bar__condition { color: #6b7280; font-size: 14px; }
.ks-weather-bar__tip { background: #dcfce7; color: #166534; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }

/* Dropdown */
.ks-weather-dropdown { position: absolute; top: calc(100% + 8px); left: 0; width: 320px; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 1000; display: none; overflow: hidden; }
.ks-weather-bar__location.open .ks-weather-dropdown { display: block; }

.ks-weather-dropdown__header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; font-size: 14px; font-weight: 600; color: #374151; }
.ks-weather-dropdown__close { background: none; border: none; font-size: 20px; color: #9ca3af; cursor: pointer; padding: 0; line-height: 1; }
.ks-weather-dropdown__close:hover { color: #374151; }

.ks-weather-dropdown__search { display: flex; padding: 12px; gap: 8px; border-bottom: 1px solid #e5e7eb; }
.ks-weather-dropdown__search input { flex: 1; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.ks-weather-dropdown__search input:focus { border-color: #16a34a; }
.ks-weather-dropdown__search button { width: 42px; height: 42px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: 18px; transition: all 0.2s; }
.ks-weather-dropdown__search button:hover { background: #16a34a; border-color: #16a34a; }
.ks-weather-dropdown__search button.loading { pointer-events: none; opacity: 0.6; }

.ks-weather-dropdown__results { max-height: 200px; overflow-y: auto; }
.ks-weather-dropdown__hint { padding: 16px; text-align: center; color: #9ca3af; font-size: 13px; }
.ks-weather-dropdown__item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid #f3f4f6; }
.ks-weather-dropdown__item:hover { background: #f0fdf4; }
.ks-weather-dropdown__item:last-child { border-bottom: none; }
.ks-weather-dropdown__item-flag { font-size: 16px; }
.ks-weather-dropdown__item-name { font-weight: 500; color: #374151; }
.ks-weather-dropdown__item-region { font-size: 12px; color: #9ca3af; }
.ks-weather-dropdown__item-loading { padding: 20px; text-align: center; color: #9ca3af; }

.ks-weather-dropdown__popular { padding: 12px; background: #f9fafb; border-top: 1px solid #e5e7eb; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ks-weather-dropdown__popular > span { font-size: 12px; color: #6b7280; margin-right: 4px; }
.ks-weather-dropdown__popular button { background: #fff; border: 1px solid #e5e7eb; padding: 4px 10px; border-radius: 12px; font-size: 12px; color: #374151; cursor: pointer; transition: all 0.15s; }
.ks-weather-dropdown__popular button:hover { background: #16a34a; border-color: #16a34a; color: #fff; }

/* Loading state */
.ks-weather-bar.loading .ks-weather-bar__temp,
.ks-weather-bar.loading .ks-weather-bar__condition { opacity: 0.5; }

/* Mobile */
@media (max-width: 767px) {
    .ks-weather-bar__content { justify-content: center; }
    .ks-weather-bar__tip { display: none; }
    .ks-weather-dropdown { width: calc(100vw - 32px); left: 50%; transform: translateX(-50%); }
}
@media (max-width: 480px) {
    .ks-weather-bar__info { display: none; }
}

/* === CALENDAR === */
.ks-calendar { padding: 24px 0; }
.ks-calendar__wrapper { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; }
.ks-calendar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ks-calendar__title { margin: 0; font-size: 1.125rem; color: #374151; }
.ks-calendar__nav { display: flex; align-items: center; gap: 12px; }
.ks-calendar__nav-btn { width: 36px; height: 36px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: 16px; cursor: pointer; transition: all 0.2s; }
.ks-calendar__nav-btn:hover { background: #f3f4f6; border-color: #16a34a; }
.ks-calendar__current { font-size: 14px; font-weight: 600; color: #374151; min-width: 120px; text-align: center; }
.ks-calendar__months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 20px; }
.ks-calendar__month { text-align: center; padding: 8px 4px; background: #f3f4f6; border-radius: 6px; font-size: 11px; color: #6b7280; cursor: pointer; transition: all 0.2s; }
.ks-calendar__month:hover { background: #e5e7eb; }
.ks-calendar__month--active { background: #16a34a; color: #fff; font-weight: 600; }
.ks-calendar__month--current { box-shadow: 0 0 0 2px #16a34a; }
.ks-calendar__tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ks-calendar__task { display: block; background: #f9fafb; border: 1px solid #e5e7eb; border-left: 4px solid #16a34a; border-radius: 8px; padding: 16px; text-decoration: none; transition: box-shadow 0.2s; }
.ks-calendar__task:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ks-calendar__task-label, .ks-calendar__task-month { font-size: 12px; color: #16a34a; font-weight: 500; }
.ks-calendar__task-label--now { color: #16a34a; }
.ks-calendar__task-title { display: block; color: #374151; margin: 6px 0; }
.ks-calendar__task-desc { margin: 0; font-size: 13px; color: #6b7280; }

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .ks-hero__grid { grid-template-columns: 1fr; }
    .ks-hero__slider { height: 280px; }
    .ks-season-grid { grid-template-columns: repeat(4, 1fr); }
    .ks-trust-badges__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .ks-hero__slider { height: 240px; }
    .ks-slider__content { padding: 24px; }
    .ks-slider__title { font-size: 1.5rem; }
    .ks-slider__subtitle { font-size: 1rem; }
    .ks-slider__dots { left: 24px; }
    .ks-season-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Preorder mobile */
    .ks-preorder__header { flex-direction: column; align-items: flex-start; }
    .ks-preorder__countdown { flex-direction: column; gap: 8px; padding: 12px; }
    .ks-preorder__scroll-btn { display: none; }
    .ks-preorder-card { flex: 0 0 160px; }
    
    /* Calendar mobile */
    .ks-calendar__header { flex-direction: column; gap: 12px; }
    .ks-calendar__months { grid-template-columns: repeat(6, 1fr); }
    .ks-calendar__tasks { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .ks-preorder-card { flex: 0 0 150px; }
    .ks-preorder-card__title { font-size: 11px; min-height: 28px; }
    .ks-trust-badges__grid { grid-template-columns: 1fr; }
}

/* === SHORTCUTS SECTION === */
.ks-shortcuts { padding: 20px 0; }
.ks-shortcuts__grid { display: flex; flex-direction: column; gap: 12px; }

.ks-shortcut { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; transition: box-shadow 0.2s, border-color 0.2s; }
.ks-shortcut:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.ks-shortcut__icon { width: 48px; height: 48px; background: #f0fdf4; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }

.ks-shortcut__content { flex: 1; min-width: 0; }
.ks-shortcut__label { font-size: 13px; color: #6b7280; display: block; margin-bottom: 2px; }
.ks-shortcut__product strong { display: block; color: #374151; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-shortcut__meta { font-size: 13px; color: #9ca3af; }
.ks-shortcut__desc { font-size: 13px; color: #6b7280; display: block; margin-top: 2px; }

.ks-shortcut__action { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ks-shortcut__price { font-size: 1.25rem; font-weight: 700; color: #16a34a; }

.ks-shortcut__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.ks-shortcut__btn--primary { background: #16a34a; color: #fff; }
.ks-shortcut__btn--primary:hover { background: #15803d; color: #fff; }
.ks-shortcut__btn--secondary { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.ks-shortcut__btn--secondary:hover { background: #e5e7eb; border-color: #d1d5db; color: #374151; }

/* Reorder specific */
.ks-shortcut--reorder { border-left: 4px solid #16a34a; }
.ks-shortcut--reorder .ks-shortcut__icon { background: #dcfce7; }

/* Calculator specific */
.ks-shortcut--calculator { border-left: 4px solid #8b5cf6; }
.ks-shortcut--calculator .ks-shortcut__icon { background: #ede9fe; }
.ks-shortcut--calculator .ks-shortcut__btn--secondary { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }
.ks-shortcut--calculator .ks-shortcut__btn--secondary:hover { background: #7c3aed; border-color: #7c3aed; color: #fff; }

.ks-shortcut__action--calc { gap: 12px; }
.ks-shortcut__calc-input { display: flex; align-items: center; gap: 8px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 12px; }
.ks-shortcut__calc-input label { font-size: 13px; color: #6b7280; white-space: nowrap; }
.ks-shortcut__calc-input input { width: 60px; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 16px; font-weight: 600; text-align: center; }
.ks-shortcut__calc-input input:focus { outline: none; border-color: #8b5cf6; }
.ks-shortcut__calc-input span { font-size: 14px; color: #6b7280; }

/* Responsive */
@media (max-width: 768px) {
    .ks-shortcut { flex-wrap: wrap; gap: 12px; }
    .ks-shortcut__content { flex: 1 1 calc(100% - 64px); }
    .ks-shortcut__action { width: 100%; justify-content: space-between; }
    .ks-shortcut__action--calc { flex-wrap: wrap; }
    .ks-shortcut__calc-input { flex: 1; }
}

@media (max-width: 480px) {
    .ks-shortcut__action { flex-direction: column; align-items: stretch; gap: 10px; }
    .ks-shortcut__price { text-align: center; }
    .ks-shortcut__btn { justify-content: center; }
}
/* ========================================== */
/* SEKCJE PRODUKTÓW WYRÓŻNIONYCH */
/* ========================================== */

.ks-featured-section {
    padding: 32px 0;
    background: #fff;
}

.ks-featured-section:nth-child(even) {
    background: var(--ks-gray-50);
}

/* Nagłówek sekcji */
.ks-featured-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ks-gray-200);
}

.ks-featured-header__left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ks-featured-header__titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ks-featured-icon {
    font-size: 1.75rem;
    margin-top: 2px;
}

.ks-featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ks-gray-800);
    margin: 0;
    line-height: 1.2;
}

.ks-featured-description {
    font-size: 0.9rem;
    color: var(--ks-gray-500);
    margin: 0;
    line-height: 1.4;
    max-width: 500px;
}

.ks-featured-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ks-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ks-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.ks-featured-link:hover {
    color: var(--ks-primary-dark);
}

.ks-featured-link svg {
    transition: transform 0.2s;
}

.ks-featured-link:hover svg {
    transform: translateX(4px);
}

/* Grid produktów - 5 kolumn na desktop */
.ks-featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.ks-featured-product {
    /* Wrapper dla product miniature */
}

/* Karta "Zobacz więcej" - ukryta na desktop */
.ks-featured-more {
    display: none;
}

/* Stylowanie kart produktów w sekcji (nadpisanie motywu) */
.ks-featured-section .product-miniature {
    height: 100%;
}

.ks-featured-section .thumbnail-container {
    border-radius: var(--ks-radius);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ks-featured-section .product-miniature:hover .thumbnail-container {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Brak produktów */
.ks-featured-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--ks-gray-100);
    border-radius: var(--ks-radius);
    color: var(--ks-gray-500);
}

/* ========================================== */
/* RESPONSIVE - SEKCJE PRODUKTÓW */
/* ========================================== */

@media (max-width: 1399px) {
    .ks-featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) {
    .ks-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ks-featured-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 991px) {
    .ks-featured-section {
        padding: 24px 0;
    }

    .ks-featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========================================== */
/* MOBILE - HORIZONTAL SCROLL */
/* ========================================== */

@media (max-width: 767px) {
    /* Zmień grid na horizontal scroll */
    .ks-featured-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 12px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
        scrollbar-width: none;
    }

    .ks-featured-grid::-webkit-scrollbar {
        display: none;
    }

    /* Stała szerokość kart produktów */
    .ks-featured-product {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }

    /* Pokaż kartę "Zobacz więcej" na mobile */
    .ks-featured-more {
        display: flex;
        flex: 0 0 120px;
        scroll-snap-align: start;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--ks-primary), var(--ks-primary-dark));
        border-radius: var(--ks-radius);
        text-decoration: none;
        min-height: 200px;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .ks-featured-more:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
    }

    .ks-featured-more__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: #fff;
        text-align: center;
        padding: 16px;
    }

    .ks-featured-more__icon {
        font-size: 2rem;
        font-weight: 300;
    }

    .ks-featured-more__text {
        font-size: 14px;
        font-weight: 600;
    }

    .ks-featured-more__count {
        font-size: 12px;
        opacity: 0.85;
    }

    /* Ukryj link "Zobacz wszystkie" na mobile - mamy kartę */
    .ks-featured-link {
        display: none;
    }

    .ks-featured-title {
        font-size: 1.125rem;
    }

    .ks-featured-icon {
        font-size: 1.5rem;
    }

    .ks-featured-header {
        flex-direction: row;
        align-items: center;
    }

    .ks-featured-header__left {
        flex: 1;
    }
}

@media (max-width: 479px) {
    .ks-featured-product {
        flex: 0 0 140px;
    }

    .ks-featured-more {
        flex: 0 0 100px;
        min-height: 180px;
    }

    .ks-featured-more__icon {
        font-size: 1.75rem;
    }

    .ks-featured-more__text {
        font-size: 13px;
    }

    .ks-featured-header__left {
        gap: 8px;
    }

    .ks-featured-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ========================================== */
/* SEKCJA SEO - TREŚĆ INFORMACYJNA */
/* ========================================== */

.ks-seo {
    padding: 48px 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    border-top: 1px solid var(--ks-gray-200);
}

.ks-seo__wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Nagłówek sekcji SEO */
.ks-seo__header {
    text-align: center;
    margin-bottom: 40px;
}

.ks-seo__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ks-gray-800);
    margin: 0 0 8px;
}

.ks-seo__subtitle {
    font-size: 1rem;
    color: var(--ks-gray-500);
    margin: 0;
}

/* Treść główna - 3 kolumny */
.ks-seo__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.ks-seo__column h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ks-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ks-primary);
    display: inline-block;
}

.ks-seo__column p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--ks-gray-700);
    margin: 0 0 16px;
    text-align: justify;
}

.ks-seo__column p:last-child {
    margin-bottom: 0;
}

.ks-seo__column strong {
    color: var(--ks-gray-800);
}

.ks-seo__column-subtitle {
    font-size: 0.875rem;
    color: var(--ks-gray-500);
    margin: -8px 0 12px;
    font-style: italic;
}

/* Stopka SEO */
.ks-seo__footer {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: var(--ks-radius);
    border: 1px solid #bbf7d0;
}

.ks-seo__footer p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--ks-gray-700);
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

.ks-seo__footer strong {
    color: var(--ks-primary-dark);
}

/* ========================================== */
/* RESPONSIVE - SEKCJA SEO */
/* ========================================== */

@media (max-width: 991px) {
    .ks-seo__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ks-seo__column h3 {
        font-size: 1rem;
    }

    .ks-seo__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .ks-seo {
        padding: 32px 0;
    }

    .ks-seo__column p {
        font-size: 0.875rem;
        text-align: left;
    }

    .ks-seo__header {
        margin-bottom: 24px;
    }

    .ks-seo__footer {
        padding: 16px;
    }

    .ks-seo__footer p {
        font-size: 0.875rem;
    }
}

@media (max-width: 479px) {
    .ks-seo__title {
        font-size: 1.25rem;
    }

    .ks-seo__subtitle {
        font-size: 0.875rem;
    }
}
