/* ==========================================================================
   1. GLOBAL RESET & CONFIGURATION (MINIMALISTIC APPROACH)
   ========================================================================== */
:root {
    --color-bg: #ffffff;
    --color-surface: #fafafa;
    --color-text-main: #111111;
    --color-text-muted: #767676;
    --color-border: #e5e5e5;
    --color-accent: #000000;
    --color-success-bg: #f4fbf7;
    --color-success-text: #137333;
    
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1400px;
    --header-height: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--color-text-main);
}

.site-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.site-nav a:hover, .site-nav a.active {
    color: var(--color-text-main);
}

/* ==========================================================================
   3. TWO-COLUMN LAYOUT STRUCTURE
   ========================================================================== */
.layout-container {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Typography elements */
.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* ==========================================================================
   4. PRODUCT GRID & CARD STYLING
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}

.product-card {
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    background-color: var(--color-surface);
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.product-card:hover .product-image-wrapper {
    border-color: var(--color-border);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-meta {
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-country {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.product-name {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-main);
}

.product-price {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-add-to-cart, .btn-submit, .btn-checkout {
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-family: var(--font-base);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    text-transform: uppercase;
    text-align: center;
}

.btn-add-to-cart:hover, .btn-submit:hover, .btn-checkout:not(:disabled):hover {
    background-color: #333333;
}

/* ==========================================================================
   5. PERMANENT SIDEBAR CART STYLING
   ========================================================================== */
.sidebar-cart {
    border-left: 1px solid var(--color-border);
    padding-left: 40px;
}

.cart-sticky-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 40px);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 120px);
}

.cart-title {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 10px;
}

.empty-cart-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Individual item row inside the cart list */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--color-border);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.cart-qty-input {
    width: 45px;
    padding: 4px;
    border: 1px solid var(--color-border);
    font-family: var(--font-base);
    font-size: 0.8rem;
    text-align: center;
}

.btn-remove-item {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: #cc0000;
    cursor: pointer;
    text-decoration: underline;
}

.cart-item-total {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

/* Cart summary and checkout section at the bottom */
.cart-summary {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.total-price {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-checkout {
    width: 100%;
}

.btn-checkout:disabled {
    background-color: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

/* ==========================================================================
   6. INTERACTION & NOTIFICATIONS
   ========================================================================== */
.notification {
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 3px solid;
}

.success-notification {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
    border-left-color: var(--color-success-text);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   7. MINIMALISTIC FEEDBACK FORM
   ========================================================================== */
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.minimal-form input, .minimal-form textarea {
    padding: 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-base);
    font-size: 0.9rem;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    transition: border-color 0.2s ease;
}

.minimal-form input:focus, .minimal-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ==========================================================================
   8. FOOTER STYLING
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: 100px;
    padding: 40px 0;
    background-color: var(--color-surface);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES (MOBILE DESIGN FALLBACK)
   ========================================================================== */
@media (max-width: 1024px) {
    .layout-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sidebar-cart {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 40px;
    }
    
    .cart-sticky-wrapper {
        height: auto;
    }
}

@media (max-width: 640px) {
    .header-container, .layout-container, .footer-container {
        padding: 0 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}
