html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f2f3f5;
    color: #222;
    display: flex;
    flex-direction: column;
}

/* ---------------- HEADER ---------------- */

.site-header {
    background: #202124;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.main-nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 10px 20px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    padding: 18px 0;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

/* decentní underline efekt */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 2px;
    background: #ff9800;
    opacity: 0;
    transform: scaleX(0.3);
    transition: 0.2s ease;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.main-nav .cart-link {
    padding: 0;
    position: relative;
    display: inline-block;
}

/* košík bez podtržení */
.main-nav .cart-link::after {
    display: none !important;
}


/* ---------------- IKONY ---------------- */

.user-icon,
.cart-icon {
    width: 28px;
    height: 28px;
    filter: invert(1);
    cursor: pointer;
    transition: 0.2s ease;
}

.user-icon:hover,
.cart-icon:hover {
    transform: scale(1.12);
}

/* Počet položek v košíku */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------- HERO ---------------- */

.hero-3d {
    position: relative;
    width: 100%;
    height: 70vh;
    background: url("../img/background1.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 3px solid #ff6600;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #ff6600;
    color: #fff;
    font-size: 1.1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.hero-btn:hover {
    background: #ff7b00;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* ---------------- OBSAH / KARTIČKA MAIN ---------------- */

main {
    flex: 1;
}

/* karta pod hero – používá se jen na main.php */
.main-wrapper {
    max-width: 1100px;
    margin: -40px auto 40px;
    padding: 30px 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 5;
}

.main-wrapper section {
    margin-bottom: 35px;
}

.main-wrapper h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.7rem;
}

.main-wrapper p {
    text-align: center;
    line-height: 1.6;
}

/* univerzální container – pro ostatní stránky (produkty, košík…) */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.container h2 {
    margin-bottom: 18px;
    text-align: center;
    font-size: 1.6rem;
}

.container p {
    text-align: center;
    line-height: 1.5;
}

.container section {
    margin-bottom: 30px;
}

/* ---------------- BOX – CO NABÍZÍME ---------------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 30px;
    text-align: center;
    padding: 10px 0;
}

.box {
    background: linear-gradient(145deg, #ffffff, #f4f4f4);
    padding: 32px 24px;
    border-radius: 16px;
    border-top: 4px solid #ff6600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
    text-align: center;
}

.box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

/* kulatý badge s ikonou */
.icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: #fff;
    font-size: 1.9rem;
}

.box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
    font-weight: 650;
}

.box p {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #444;
}

/* ---------------- PRODUKTY ---------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.15s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card h3 {
    margin: 10px 0 5px;
    font-size: 1.3rem;
}

.product-price {
    font-weight: bold;
    font-size: 1.25rem;
    color: #ff6600;
}

.product-bottom {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* malé + tlačítko – přidat do košíku z kartičky */

.small-add-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff6600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 600;
    transition: 0.15s ease;
}

.small-add-cart:hover {
    transform: scale(1.1);
    background: #ff7f00;
}

/* ---------------- KOŠÍK ---------------- */

.cart-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-item-main {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 15px;
}

.cart-item-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.no-image {
    font-size: 0.8rem;
    color: #aaa;
}

.cart-item-qty {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    background: #ff9800;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.cart-item-qty button:hover {
    background: #ff7f00;
}

.cart-item-subtotal {
    text-align: right;
}

.cart-item-remove button {
    border: none;
    background: #e53935;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-remove button:hover {
    background: #c62828;
}

/* ---------------- FOOTER ---------------- */

.site-footer {
    text-align: center;
    padding: 18px;
    background: #202124;
    color: #ccc;
    margin-top: auto;
    font-size: 0.9rem;
}