:root { --main-bg: #faf6f4; --text: #222; --accent: #d4b2a7; --white: #fff; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; background-color: var(--main-bg); color: var(--text); margin: 0; padding: 0; }

/* Pasek komunikatu */
#announcement-bar { background: var(--accent); color: #fff; text-align: center; padding: 9px 16px; font-size: 13px; font-weight: bold; letter-spacing: 0.3px; line-height: 1.4; }
@media (max-width: 600px) { #announcement-bar { font-size: 12px; padding: 8px 12px; } }

.navbar { background: var(--white); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-size: 24px; font-weight: bold; letter-spacing: 1px; }

#cart-navbar-btn { background: var(--accent); color: var(--white); padding: 8px 16px; border-radius: 20px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; transition: background 0.2s, transform 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
#cart-navbar-btn:hover { background: var(--text); }
@media (max-width: 600px) { #cart-navbar-btn { font-size: 12px; padding: 7px 12px; gap: 4px; } }

.hero { background: #efe6e1; text-align: center; padding: 40px 20px; margin-bottom: 20px; }
.hero h1 { margin: 0; font-size: 28px; text-transform: uppercase; letter-spacing: 2px; }
.hero p { color: #555; margin-top: 10px; }

.controls-section { max-width: 500px; margin: 0 auto 30px auto; padding: 0 15px; text-align: center; }
.search-container { position: relative; width: 100%; margin-bottom: 12px; color: #a0a0a0; transition: color 0.2s; }
.search-icon-box { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.search-icon-svg { width: 100%; height: 100%; }
.search-container:focus-within { color: var(--accent); }
.search-box { width: 100%; padding: 12px 20px 12px 48px; border: 1px solid var(--accent); border-radius: 25px; font-size: 15px; outline: none; box-sizing: border-box; transition: box-shadow 0.2s; background: var(--white); color: var(--text); }
.search-box:focus { box-shadow: 0 0 8px rgba(212, 178, 167, 0.6); }

/* =========================================================================
   PRZYCISKI KATEGORII – mniejsze, ciaśniejsze
   ========================================================================= */
.filters { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }

.filter-btn {
    background: var(--white);
    border: 1px solid var(--accent);
    padding: 6px 13px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: var(--white); }

/* ── Split button: [Biustonosze | ›] ─────────────────────────────────── */
.filter-split-wrap {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--accent);
    border-radius: 20px;
    overflow: hidden;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3;
}
.filter-split-main {
    background: transparent;
    border: none;
    padding: 6px 6px 6px 13px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    color: inherit;
    transition: 0.2s;
}
.filter-split-div {
    width: 1px;
    background: rgba(212, 178, 167, 0.45);
    margin: 5px 0;
    flex-shrink: 0;
}
.filter-split-arrow {
    background: transparent;
    border: none;
    padding: 5px 11px 5px 6px;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-icon {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.25s ease;
}
.filter-split-arrow.rozwiniety .arrow-icon { transform: rotate(90deg); }

.filter-split-wrap:hover,
.filter-split-wrap.active-wrap {
    background: var(--accent);
    color: var(--white);
}
.filter-split-wrap.active-wrap .filter-split-div { background: rgba(255,255,255,0.3); }

/* ── Panel filtrów biustonoszy ───────────────────────────────────────── */
.filtry-panel {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    animation: filtryShow 0.18s ease;
}
@keyframes filtryShow {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.filtr-reset-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #aaa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1.3;
}
.filtr-reset-btn:hover { border-color: #bbb; color: var(--text); background: #f5f0ee; }

.filtr-wybor-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--white);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1.3;
}
.filtr-wybor-btn:hover { background: #fdf3f0; }
.filtr-wybor-btn.aktywny { background: var(--accent); color: var(--white); border-color: var(--accent); }

.filtr-strzalka { font-size: 10px; opacity: 0.6; margin-left: 1px; }

/* =========================================================================
   POPUP – zaokrąglone okienko wyboru filtra
   ========================================================================= */
.filtr-popup {
    position: fixed;
    display: none;
    flex-direction: column;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.13), 0 3px 12px rgba(0,0,0,0.07);
    border: 1px solid #f0ebe8;
    z-index: 600;
    min-width: 190px;
    max-width: 260px;
    max-height: 290px;
    overflow: hidden;
    animation: popupShow 0.14s ease;
}
@keyframes popupShow {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.filtr-popup-nagl {
    padding: 13px 16px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #c5aaa4;
    font-weight: 700;
    border-bottom: 1px solid #f5eeed;
    flex-shrink: 0;
}

.filtr-popup-opcje {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
}
.filtr-popup-opcje::-webkit-scrollbar { width: 4px; }
.filtr-popup-opcje::-webkit-scrollbar-track { background: transparent; }
.filtr-popup-opcje::-webkit-scrollbar-thumb { background: #ede6e3; border-radius: 4px; }

.filtr-opcja {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text);
    transition: background 0.1s;
    gap: 5px;
}
.filtr-opcja:hover { background: #faf6f4; }
.filtr-opcja.aktywna { color: var(--accent); font-weight: 600; }

.fop-check {
    width: 14px;
    font-size: 11px;
    color: var(--accent);
    flex-shrink: 0;
    text-align: center;
}

.filtr-opcja-reset {
    font-size: 12.5px;
    color: #bbb;
    border-bottom: 1px solid #f5eeed;
    margin-bottom: 2px;
}
.filtr-opcja-reset:hover { background: #f9f5f3; }
.filtr-opcja-reset.aktywna { color: #bbb; font-weight: normal; }

/* =========================================================================
   RESZTA STYLI (bez zmian)
   ========================================================================= */
.loading-status { text-align: center; font-size: 18px; color: #888; padding: 50px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; max-width: 1000px; margin: 0 auto; padding: 0 15px 50px 15px; }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.product-card { background: var(--white); padding: 12px; border-radius: 8px; text-align: center; transition: transform 0.2s; display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.product-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; cursor: pointer; background: #fff; display: block; }

.product-card .title { font-size: 14px; font-weight: bold; margin: 10px 0; cursor: pointer; min-height: 34px; display: flex; align-items: center; justify-content: center; line-height: 1.3; }
.product-card .title:hover { color: var(--accent); }
.price { color: var(--accent); font-weight: bold; font-size: 16px; margin-bottom: 10px; }

.size-select { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #eee; border-radius: 4px; background: white; font-size: 14px; }
.add-btn { background: var(--text); color: var(--white); border: none; padding: 11px; width: 100%; border-radius: 4px; cursor: pointer; text-transform: uppercase; font-size: 12px; font-weight: bold; letter-spacing: 0.5px; }
.add-btn:hover { background: var(--accent); }
.add-btn:disabled { background: #ccc; cursor: not-allowed; }

.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); z-index: 300; display: none; justify-content: center; align-items: center; padding: 15px; box-sizing: border-box; }
.modal-overlay.open { display: flex; }
.modal-content { background: var(--white); width: 100%; max-width: 480px; border-radius: 12px; overflow: hidden; position: relative; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.close-modal { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9); border: none; font-size: 22px; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.modal-body { overflow-y: auto; padding: 20px; }

.modal-img { width: 100%; height: auto; max-height: 380px; object-fit: contain; border-radius: 8px; margin-bottom: 10px; background: #fff; display: block; margin-left: auto; margin-right: auto; }
.modal-gallery-thumbs { display: flex; gap: 8px; margin-bottom: 15px; justify-content: center; flex-wrap: wrap; }
.thumb-img { width: 55px; height: 55px; object-fit: cover; border-radius: 6px; border: 2px solid #eee; cursor: pointer; transition: 0.2s; background: #fff; }
.thumb-img:hover, .thumb-img.active { border-color: var(--accent); }

.modal-title { font-size: 18px; font-weight: bold; margin-bottom: 5px; line-height: 1.4; }
.modal-sku { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.modal-price { font-size: 22px; color: var(--accent); font-weight: bold; margin-bottom: 15px; }
.modal-description { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 20px; background: var(--main-bg); padding: 12px; border-radius: 6px; white-space: pre-line; }

.size-tiles-label { font-size: 13px; font-weight: bold; text-transform: uppercase; margin-bottom: 8px; display: block; }
.size-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.size-tile { border: 1px solid #ddd; background: #fff; padding: 10px 15px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: bold; transition: 0.2s; min-width: 45px; text-align: center; }
.size-tile:hover { border-color: var(--accent); color: var(--accent); }
.size-tile.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.size-tile.disabled { background: #f5f5f5; color: #ccc; border-color: #eee; cursor: not-allowed; text-decoration: line-through; }

.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding: 12px 0; font-size: 14px; }
.cart-item-info { flex-grow: 1; padding-right: 10px; }
.cart-item-price { font-weight: bold; color: var(--accent); white-space: nowrap; }
.cart-item-remove { color: #ff4d4d; cursor: pointer; font-weight: bold; margin-left: 15px; font-size: 18px; transition: 0.2s; }
.cart-item-remove:hover { color: #cc0000; }
.form-input { width: 100%; padding: 12px 15px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.2s; background: #fafafa; }
.form-input:focus { border-color: var(--accent); background: white; }

.cart-summary-box { background: #fdfaf8; padding: 12px; border-radius: 6px; border: 1px dashed var(--accent); margin-top: 15px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; color: #555; }
.total-row { font-size: 18px; font-weight: bold; color: var(--text); border-top: 1px solid #ddd; padding-top: 8px; margin-top: 4px; }
.shipping-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; text-align: left; }
.shipping-radio { display: flex; align-items: center; gap: 8px; background: #f9f9f9; padding: 10px; border-radius: 6px; border: 1px solid #eee; cursor: pointer; font-size: 14px; }
.shipping-radio input { margin: 0; }
.terms-container { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0; font-size: 13px; text-align: left; }
.terms-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.terms-link-btn { font-size: 11px; background: #eee; padding: 4px 8px; border-radius: 4px; color: #555; text-decoration: none; white-space: nowrap; }
.terms-link-btn:hover { background: var(--accent); color: white; }

/* =========================================================================
   BELKA INFORMACYJNA
   ========================================================================= */
.info-bar { background: var(--white); border-top: 1px solid #ede6e2; border-bottom: 1px solid #ede6e2; display: flex; justify-content: center; flex-wrap: wrap; padding: 2px 0; }
.info-bar a { color: #888; text-decoration: none !important; font-size: 12px; font-family: 'Helvetica Neue', Arial, sans-serif; padding: 4px 16px; transition: color 0.2s; white-space: nowrap; border-right: 1px solid #ede6e2; }
.info-bar a:last-child { border-right: none; }
.info-bar a:hover { color: var(--accent); }
@media (max-width: 600px) { .info-bar a { font-size: 11px; padding: 4px 7px; } }
@media (max-width: 380px) { .info-bar a { font-size: 10px; padding: 4px 5px; } }

/* =========================================================================
   PAGINACJA
   ========================================================================= */
.pagination-bar { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 30px 15px 10px 15px; }
.page-btn { background: var(--white); border: 1px solid var(--accent); color: var(--text); padding: 10px 22px; border-radius: 25px; cursor: pointer; font-size: 14px; font-weight: bold; transition: 0.2s; }
.page-btn:hover:not(:disabled) { background: var(--accent); color: var(--white); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-info { font-size: 14px; color: #888; }

/* =========================================================================
   STOPKA
   ========================================================================= */
.site-footer { background: var(--white); border-top: 1px solid #ede6e2; margin-top: 50px; padding: 30px 20px 25px; }
.footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.footer-logo { font-size: 18px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; color: var(--text); }
.footer-logo span { color: var(--accent); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-nav a { color: #888; text-decoration: none !important; font-size: 12px; padding: 4px 16px; transition: color 0.2s; white-space: nowrap; border-right: 1px solid #ede6e2; }
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: #bbb; margin: 0; }
.footer-copy a { color: var(--accent); text-decoration: none; }
@media (max-width: 600px) { .footer-nav a { font-size: 11px; padding: 4px 9px; } }
@media (max-width: 600px) { .product-card .title { font-size: 15px; } }