* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Natálka highlight box */
.natalka-highlight-box {
    background: #fff3e0;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.natalka-highlight-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.natalka-highlight-text {
    font-size: 1.1rem;
    color: #333;
    flex: 1;
    min-width: 200px;
}

.natalka-highlight-text strong {
    color: #ff9800;
    font-weight: 700;
    font-size: 1.15em;
}

.natalka-info-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff9800;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.natalka-info-badge:hover {
    background: #f57c00;
    color: white;
}

.natalka-question-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: white;
    color: #ff9800;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.natalka-badge-text {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .natalka-highlight-content {
        flex-direction: column;
        align-items: center;
    }
    
    .natalka-highlight-text {
        text-align: center;
        width: 100%;
    }
    
    .natalka-info-badge {
        align-self: center;
    }
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
}

.header-row {
    padding: 1rem 0;
}

.header-row:first-child {
    border-bottom: 1px solid #eee;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-filter-row {
    padding: 0.75rem 0;
    background-color: #fafafa;
}

.category-filter-row .container {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.category-filter-checkbox-label {
    display: inline-block;
    cursor: pointer;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.category-filter-checkbox {
    display: none;
}

.category-filter-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 50px;
    box-sizing: border-box;
    position: relative;
}

.category-filter-card:hover {
    border-color: #30C0A4;
    box-shadow: 0 2px 8px rgba(48, 192, 164, 0.2);
}

.category-filter-checkbox:checked + .category-filter-card {
    border-color: #30C0A4;
    background-color: rgba(48, 192, 164, 0.1);
}

.category-filter-checkbox:checked + .category-filter-card .category-filter-title {
    color: #30C0A4;
    font-weight: 600;
}

.category-filter-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.category-filter-icon {
    width: auto;
    height: 32px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    filter: brightness(0); /* Black by default */
}

.category-filter-checkbox:checked + .category-filter-card .category-filter-icon {
    filter: brightness(0) saturate(100%) invert(64%) sepia(58%) saturate(3298%) hue-rotate(129deg) brightness(95%) contrast(84%); /* #30C0A4 green */
}

.category-filter-icon-placeholder {
    width: auto;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999;
    font-size: 0.6rem;
    border-radius: 6px;
    text-align: center;
    line-height: 1.1;
    padding: 2px;
}

.category-filter-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: left;
    line-height: 1.3;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
}

header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.pre-natalku-image {
    position: absolute;
    height: 36px;
    width: auto;
    bottom: -24px;
    right: -24px;
}

/* Natalka logo - container maintains original size, image overflows by 50% in height */
.logo-link-natalka {
    height: 50px;
    width: 50px; /* Fixed width to match original logo container size */
    overflow: visible;
    position: relative;
    display: inline-block;
}

.logo-natalka {
    height: 75px; /* 50px + 50% = 75px (50% overflow) */
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.cart-icon {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
    background-color: #ec8c1e;
    color: white;
    border-radius: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-icon-image {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1); /* Makes SVG white */
    position: relative;
}

.cart-icon #cart-count {
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    font-weight: 600;
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.cart-total-value {
    font-weight: 600;
    font-size: 0.95rem;
}

main {
    flex: 1 0 auto;
    padding-top: 0;
    padding-bottom: 2rem;
    margin-top: 0.75rem;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}

.footer-top {
    background-color: #d6f7f0;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: 75%;
    height: auto;
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    color: #222;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.social-link {
    color: #222;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #30C0A4;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #30C0A4;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #555;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.footer-contact a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #30C0A4;
}

.footer-bottom {
    background-color: white;
    padding: 1.5rem 0;
    text-align: center;
    color: #333;
}

.footer-bottom p {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-top {
        padding: 2rem 0;
    }
}

main.container {
    margin-top: 0.75rem;
    padding-top: 0;
    padding-bottom: 0;
}

h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.products-count {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.products-sort label {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    color: #2c3e50;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.sort-select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #95a5a6;
    font-size: 0.9rem;
    background-color: #000000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-info h3 {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #2c3e50;
    font-weight: 300;
    text-align: center;
    text-decoration: underline;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 0;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-materials {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.material-card-small {
    width: 30px;
    height: 30px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.material-card-small:hover {
    border-color: #30C0A4;
    transform: scale(1.1);
}

.material-card-small.selected {
    border-color: #30C0A4;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(48, 192, 164, 0.2);
}

.material-card-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.material-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: #999;
    text-align: center;
    padding: 2px;
    box-sizing: border-box;
}

.product-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 60px;
}

.product-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
}

.add-to-cart-btn {
    background-color: #30C0A4;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover:not(:disabled) {
    background-color: #28a88c;
}

.add-to-cart-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    color: #95a5a6;
    padding: 2rem;
}

.cart-item {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cart-item-row a {
    text-decoration: none;
    display: block;
}

.cart-item-thumbnail {
    width: 102px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
    transition: opacity 0.2s;
}

.cart-item-row a:hover .cart-item-thumbnail {
    opacity: 0.8;
}

.cart-item-thumbnail-placeholder {
    width: 102px;
    height: 102px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #999;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: underline;
    transition: color 0.2s;
}

.cart-item-title:hover {
    color: #30C0A4;
}

.cart-item-material {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.cart-item-row-second {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: #30C0A4;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #28a88c;
}

.quantity-value {
    font-size: 1rem;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

.cart-item-total {
    font-weight: bold;
    font-size: 1rem;
    color: #2c3e50;
    white-space: nowrap;
}

.cart-item-remove {
    background-color: transparent;
    color: #e74c3c;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}

.cart-item-remove:hover {
    color: #c0392b;
    transform: scale(1.2);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.free-shipping-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: white;
    color: #30C0A4;
    border: 2px solid #30C0A4;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.free-shipping-message svg {
    flex-shrink: 0;
    stroke: #30C0A4;
}

.cart-total {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #ec8c1e;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover:not(:disabled) {
    background-color: #b26a18;
}

.checkout-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Checkout Section */
.checkout-section {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Order Success */
.order-success {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-success h2 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.order-success p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .logo {
        height: 35px;
    }
    
    .pre-natalku-image {
        height: 28px;
        bottom: -18px;
        right: -18px;
    }
    
    .logo-link-natalka {
        height: 35px;
        width: 35px; /* Match mobile logo size */
    }
    
    .logo-natalka {
        height: 52.5px; /* 35px + 50% = 52.5px (50% overflow on mobile) */
    }

    .cart-icon {
        padding: 8px;
        font-size: 1.2rem;
    }

    .cart-icon-image {
        width: 24px;
        height: 24px;
    }

    .cart-icon #cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }

    .cart-total-value {
        font-size: 0.85rem;
    }

    .category-filter-row {
        padding: 0.5rem 0;
    }

    .categories-filter {
        gap: 0.4rem;
    }

    .category-filter-card {
        height: 45px;
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }

    .category-filter-icon {
        height: 28px;
    }

    .category-filter-icon-placeholder {
        height: 28px;
        min-width: 28px;
    }

    .category-filter-title {
        font-size: 0.75rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .products-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .products-sort {
        width: 100%;
    }

    .products-sort label {
        display: none;
    }

    .sort-select {
        width: 100%;
        min-width: auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .cart-total-value {
        display: none;
    }
}

