/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray: #666666;
    --color-light-gray: #f5f5f5;
    --color-dark-blue: #1a237e;
    --color-accent: #283593;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--color-white);
    z-index: 1001;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

nav {
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 0.95rem;
    display: block;
    padding: 0.5rem 0;
}

nav a:hover {
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 1001;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.lang-switcher button.active {
    background: var(--color-white);
    color: var(--color-black);
}

.cart-link {
    position: relative;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-badge {
    background: var(--color-dark-blue);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-blue) 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--color-accent);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    background: var(--color-light-gray);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
}

.feature-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: var(--spacing-sm);
}

/* Category Section */
.category-section {
    margin-bottom: var(--spacing-xl);
    width: 100%;
    box-sizing: border-box;
}

.category-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark-blue);
}

/* Products Grid */
.products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
    margin-bottom: var(--spacing-xl) !important;
    width: 100% !important;
    box-sizing: border-box;
}

.category-section .products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
    margin-bottom: var(--spacing-xl) !important;
    width: 100% !important;
}

.product-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    width: 100% !important;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    object-position: center !important;
    background: var(--color-light-gray);
    display: block !important;
    flex-shrink: 0 !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

.product-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--color-black);
    font-size: 1.1rem;
    font-weight: 600;
}

.product-info p {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-dark-blue);
    margin-bottom: var(--spacing-sm);
}

.add-to-cart-btn {
    width: 100%;
    padding: var(--spacing-sm);
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background-color: var(--color-gray);
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.category-card {
    background: var(--color-light-gray);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--color-black);
    transition: background-color 0.3s;
}

.category-card:hover {
    background: var(--color-dark-blue);
    color: var(--color-white);
}

.category-card h3 {
    font-size: 1.25rem;
}

/* Cart */
.cart-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 200px;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-end;
}

.cart-item-controls input {
    width: 60px;
    padding: 0.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.cart-item-controls button {
    padding: 0.5rem 1rem;
    background-color: #d32f2f;
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: var(--color-light-gray);
    border-radius: 8px;
}

.empty-cart {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-gray);
}

/* Forms */
form {
    max-width: 600px;
    margin: var(--spacing-lg) auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

footer a {
    color: var(--color-white);
    text-decoration: none;
    margin: 0 var(--spacing-xs);
}

footer a:hover {
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 10000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.cookie-banner p {
    flex: 1;
    min-width: 200px;
}

.cookie-banner button {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-dark-blue);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-dark-blue);
    color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
    z-index: 10001;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.legal-content h1 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-dark-blue);
}

.legal-content h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-black);
}

.legal-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.legal-content ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.legal-content li {
    margin-bottom: var(--spacing-xs);
}

/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-card {
    background: var(--color-light-gray);
    padding: var(--spacing-md);
    border-radius: 8px;
}

.contact-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin: var(--spacing-lg) 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* About Page */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: var(--spacing-xl);
}

.about-section h2 {
    color: var(--color-dark-blue);
    margin-bottom: var(--spacing-md);
}

/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
    .header-container {
        flex-wrap: nowrap;
    }
    
    .logo {
        font-size: 1.1rem;
        flex: 1;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    nav {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    nav.active {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm) 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm) 0;
    }
    
    nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav a {
        padding: var(--spacing-sm) 0;
        font-size: 1rem;
    }
    
    .header-right {
        order: 3;
        gap: var(--spacing-xs);
    }
    
    .lang-switcher button {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .cart-link span:first-child {
        display: none;
    }
    
    .cart-link {
        padding: 0.5rem;
    }
    
    main {
        padding: var(--spacing-sm);
    }
    
    .hero {
        padding: var(--spacing-md) var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm) !important;
        width: 100% !important;
    }
    
    .category-section .products-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm) !important;
        width: 100% !important;
    }
    
    .product-card {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-image {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .product-info {
        padding: var(--spacing-sm);
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .categories {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .category-card {
        padding: var(--spacing-md);
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item img {
        width: 100%;
        height: 200px;
    }
    
    .cart-item-controls {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-total {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-sm);
    }
    
    .cookie-banner p {
        margin-bottom: var(--spacing-xs);
        font-size: 0.9rem;
    }
    
    .cookie-banner button {
        width: 100%;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }
    
    .legal-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .legal-content h1 {
        font-size: 1.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
    
    .legal-content ul {
        margin-left: var(--spacing-md);
    }
    
    .map-container {
        height: 300px;
        margin: var(--spacing-md) 0;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .contact-card a {
        word-break: break-all;
        display: inline-block;
        max-width: 100%;
    }
    
    .legal-content p,
    .legal-content li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .about-section ul li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    footer {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    footer a {
        display: block;
        margin: var(--spacing-xs) 0;
    }
}

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    nav {
        width: auto;
        max-height: none;
        overflow: visible;
    }
    
    nav ul {
        flex-direction: row;
        gap: var(--spacing-md);
        padding: 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-md) !important;
        width: 100% !important;
    }
    
    .category-section .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-md) !important;
        width: 100% !important;
    }
    
    .category-section .product-card {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .category-section .product-image {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .product-card {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-image {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .categories {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card p {
        font-size: 0.95rem;
    }
    
    .map-container {
        height: 350px;
    }
    
    .about-section ul li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cart-item {
        flex-wrap: nowrap;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    main {
        padding: var(--spacing-lg);
        max-width: 1400px;
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
        margin-bottom: var(--spacing-xl) !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .category-section .products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
        margin-bottom: var(--spacing-xl) !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .product-card {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 520px;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box;
    }
    
    .product-image {
        height: 320px !important;
        width: 100% !important;
        min-height: 320px !important;
        max-height: 320px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
        box-sizing: border-box;
    }
    
    .product-info {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        flex-grow: 1;
    }
    
    .product-price {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .add-to-cart-btn {
        padding: 0.75rem;
        font-size: 1rem;
        margin-top: auto;
    }
    
    .categories {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-section {
        margin-bottom: 3rem;
        width: 100%;
    }
    
    .category-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }
    
    .category-section .products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    .category-section .product-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .category-section .product-image {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
        width: 100% !important;
    }
}

