/* ===================================================
   SPODEK – HLAVNÍ STYLESHEET
   =================================================== */

:root {
    --bg-main: #ffffff;
    --bg-soft: #f5f5f7;
    --bg-ui: #f2f2f7;
    --text-primary: #1c1c1e;
    --text-secondary: #6e6e73;
    --accent: #007aff;
    --accent-hover: #0066d6;
    --border-soft: #e5e5ea;
    --btn-gradient: linear-gradient(135deg, #007aff, #5856d6);
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
.site-header {
    padding: 6px 0 !important;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
}
.site-header .header-top { min-height: 64px; }
.site-header .logo img { max-height: 42px; }
.site-header .header-top .header-top-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}
.site-header .header-top .header-top-item:hover { background: var(--bg-ui); }

/* === NAVIGACE & SEARCH === */
#navigation { border-radius: 22px; }
.search-form {
    border-radius: 22px !important;
    overflow: hidden;
    background: var(--bg-ui);
    border: 1px solid var(--border-soft);
}
.search-form input[type="search"] {
    border: none !important;
    background: transparent;
    padding-left: 18px;
    height: 44px;
}
.search-form button {
    border: none !important;
    background: var(--accent);
    color: #fff;
    height: 44px;
    padding: 0 18px;
    transition: background 0.2s ease;
}
.search-form button:hover { background: var(--accent-hover); }

.navigation-buttons .btn.btn-icon {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.navigation-buttons .btn.btn-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

/* === TLAČÍTKA === */
.btn, button, .button, #cart-confirm, .add-to-cart-button {
    border-radius: 22px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}
.btn-primary, .add-to-cart-button, #cart-confirm {
    background: var(--btn-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 6px 11px !important;
    box-shadow: 0 6px 18px rgba(0,122,255,0.25);
}
.btn-primary:hover, .add-to-cart-button:hover, #cart-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,122,255,0.35);
}
.btn-primary:active, .add-to-cart-button:active, #cart-confirm:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(0,122,255,0.25);
}
.btn-secondary {
    background: #f2f2f7 !important;
    color: #1c1c1e !important;
    border: 1px solid #e5e5ea !important;
}
.btn-secondary:hover { background: #e5e5ea !important; }

:where(.ums_forms_redesign--off) .compact-form { position: relative !important; }
:where(.ums_forms_redesign--off) .compact-form .btn {
    border-radius: 22px !important; /* OPRAVA: chybělo px */
    height: 44px !important;
    padding: 5px 10px !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
}

/* === PRODUKTOVÉ KARTY === */
.product, .p-main, .box {
    background: var(--bg-main) !important;
    border: 1px solid var(--border-soft);
    border-radius: 20px !important;
    padding: 15px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}
.price-final, .p-final-price {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px;
}
p, .p-detail-info { color: var(--text-secondary); }
.flag {
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    text-transform: uppercase;
    font-weight: 600;
}
.availability {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--bg-ui);
    display: inline-block;
}

/* === MNOŽSTVÍ === */
.quantity-discounts-table { font-size: 0.9rem !important; margin: 10px 0 !important; }
.quantity-discounts-table td, .quantity-discounts-table th {
    padding: 5px 10px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}
.quantity input.amount {
    width: 60px; height: 40px; font-size: 16px;
    text-align: center; border-radius: 12px;
    border: 1px solid var(--border-soft); padding: 0; background: #fff;
}
.quantity, .p-detail .add-to-cart .quantity, .cart-table .p-quantity .quantity { border: none; }
.quantity button.increase, .quantity button.decrease {
    width: 26px; height: 26px; border-radius: 50%; border: none;
    background: var(--bg-ui); font-size: 18px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.quantity button.increase:hover, .quantity button.decrease:hover { background: var(--border-soft); }
.quantity input[type=number]::-webkit-inner-spin-button,
.quantity input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.quantity input[type=number] { -moz-appearance: textfield; }

/* === BANNERY === */
.banners-row { display: flex; gap: 20px; padding: 20px; }
.banners-row, .banners-row a, .banners-row .col-lg-8,
.banners-row .col-lg-4, .banners-row img {
    border-radius: 22px !important;
    overflow: hidden;
}
.banners-row img { display: block; }
@media (max-width: 768px) {
    .banners-row { flex-direction: column; padding: 10px; gap: 15px; }
}

/* === MINI KOŠÍK – skrytý === */
#cart-widget, .cart-widget, .cart-hover,
.cart-widget .cart-content, .cart-widget .dropdown-menu {
    display: none !important;
}

/* === KOŠÍK – STRÁNKA === */
.cart-table {
    background: #ffffff; border-radius: 22px;
    padding: 20px; border: 1px solid var(--border-soft);
}
.cart-table .p-name { font-weight: 600; }
.cart-table .price-final { font-size: 18px; font-weight: 700; }
.cart-summary .btn-primary { font-size: 18px; padding: 16px 24px; }
.cart-related-products { margin-top: 30px; }
.cart-related-products .product { box-shadow: none; border: 1px solid var(--border-soft); padding: 14px; }
.cart-related-products .btn { font-size: 14px; padding: 8px 14px; }

/* === DOPRAVA / PLATBA === */
.shipping-billing-methods { gap: 16px; }
.shipping-billing-methods label {
    border-radius: 16px; padding: 14px;
    border: 1px solid var(--border-soft);
    background: #fff; transition: all 0.2s ease;
}
.shipping-billing-methods input:checked + label {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
}

/* === RECENZE === */
.reviews-preview { padding: 20px; background: #fff; text-align: center; }
.reviews-preview h3 {
    font-size: 22px; font-weight: 700;
    color: var(--text-primary); margin: 0 0 20px 0; letter-spacing: -0.3px;
}
.reviews-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.reviews-grid blockquote {
    font-size: 13.5px; line-height: 1.5;
    padding: 14px 16px; background: #f9f9fc;
    border-radius: 22px; border: none; margin: 0;
    box-shadow: 0 6px 14px rgba(2,6,23,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reviews-grid blockquote::before {
    content: "\201C";
    font-size: 22px; line-height: 1;
    color: rgba(0,0,0,0.18);
    display: block; margin-bottom: 4px;
}
.reviews-grid blockquote:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(2,6,23,0.12);
}
@media (max-width: 768px) {
    .reviews-grid { gap: 14px; grid-template-columns: 1fr; }
    .reviews-grid blockquote { padding: 12px 14px; font-size: 13px; border-radius: 16px; }
}

/* === SPODNÍ CTA === */
.bottom-cta {
    text-align: center; padding: 30px 0;
    background: #ffffff; border-radius: 22px;
}
.bottom-cta .btn, .bottom-cta .btn-primary {
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bottom-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* === HOMEPAGE === */
.homepage-box { margin-bottom: 80px; }

/* === FOOTER – Shoptet === */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border-soft); }
.footer a { color: var(--text-primary); opacity: 0.8; }
.footer a:hover { opacity: 1; }

/* === FOOTER – improved === */
.footer-improved { background: #010101; color: #ffffff; padding: 25px; border-radius: 22px; }
.footer-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.footer-column { text-align: center; line-height: 1.4; }
.footer-column h4 {
    font-size: 18px; font-weight: 700; color: #ffffff;
    letter-spacing: 0.3px; margin: 0 0 10px 0;
}
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 6px; }
.footer-column p { margin: 2px 0; }
.footer-column a { color: #ffffff; text-decoration: none; transition: color 0.2s ease; }
.footer-column a:hover { color: #cccccc; }

.footer-newsletter input {
    width: 100%; padding: 6px; margin-bottom: 10px;
    border-radius: 22px; color: #000; border: none; text-align: center;
}
.footer-newsletter input:focus { outline: none; box-shadow: none; }
.footer-newsletter button {
    width: 100%; padding: 10px; border-radius: 22px;
    background: #f2f2f7; color: #000000; border: none;
    font-weight: 700; cursor: pointer; transition: background 0.2s ease;
}
.footer-newsletter button:hover { background: #e0e0e8; }

@media (max-width: 768px) {
    .footer-wrap { gap: 20px; }
    .footer-column h4 { font-size: 16px; margin-bottom: 8px; }
    .footer-column li { margin-bottom: 4px; }
    .footer-column p { margin: 1px 0; }
}