:root {
    /* Colors - ValorPro Palette */
    --primary-color: #D4111E;
    /* Bright Red */
    --primary-hover: #6A0D16;
    /* Dark Red */
    --secondary-color: #000000;
    /* Black */
    --accent-color: #8EA4A5;
    /* Industrial Green-Grey */

    --text-dark: #000000;
    /* Black */
    --text-light: #FFFFFF;
    /* White */

    --bg-light: #E9E5E4;
    /* Neutral Light Grey */
    --bg-white: #FFFFFF;
    /* Keep white for cards/contrast */
    --bg-metallic: #D1CDCC;
    /* Light Metallic Grey */

    --border-color: #D1CDCC;
    /* Light Metallic Grey */

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #D4111E 0%, #6A0D16 100%);
    --gradient-soft: linear-gradient(135deg, #EEDFE8 0%, #9A5C78 100%);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Typography */
    --font-main: 'Roboto', 'Arial', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--gradient-main);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header & Nav */
header {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: var(--spacing-md) 0;
    position: static;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--primary-color);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.search-bar {
    display: flex;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    outline: none;
    color: var(--text-dark);
}

.search-bar button {
    background: var(--bg-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    color: var(--secondary-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.icon-link {
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.icon-link:hover {
    color: var(--primary-color);
}

.cart-info {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.1;
    margin-left: var(--spacing-xs);
}

.cart-total {
    font-weight: bold;
    color: var(--accent-color);
}

.lang-selector {
    color: var(--text-light);
    font-size: 0.9rem;
}

.lang-selector .active {
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

nav a {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--text-light);
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(79, 88, 89, 0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    background-color: var(--secondary-color);
}

.hero h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Shop Section & Layout */
.shop-section {
    padding: var(--spacing-xl) 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
}

/* Sidebar */
.shop-sidebar {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: var(--spacing-lg);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.sidebar-widget ul li {
    margin-bottom: var(--spacing-sm);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.price-inputs {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    margin-top: var(--spacing-sm);
}

.price-inputs input {
    width: 60px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

/* Shop Main Content */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.sort-options select {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* Indicate clickable */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
}

.badge.sale {
    background-color: var(--accent-color);
}

.product-image {
    width: 115%;
    height: 250px;
    object-fit: contain;
    background-color: #fff;
    padding: var(--spacing-md);
}

.product-info {
    padding: var(--spacing-md);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.price-box {
    margin-bottom: var(--spacing-md);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: var(--spacing-sm);
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Availability Indicators */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: help;
    position: relative;
    flex-shrink: 0;
    margin-left: 8px;
    margin-top: 4px;
}

.status-available {
    background-color: #2ECC71;
    /* Bright Green */
}

.status-unavailable {
    background-color: #1A1A1A;
    /* Black */
}

.status-green {
    background-color: #2ECC71;
    /* Bright Green - Available */
}

.status-red {
    background-color: #1A1A1A;
    /* Black - Unavailable */
}

/* Tooltip */
.status-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    margin-bottom: 6px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-dot:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Notification Toast */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Brands Section */
.brands-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
    text-align: center;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    opacity: 0.6;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ccc;
    border: 2px solid #eee;
    padding: 10px 20px;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    margin-top: auto;
}

.footer-content {
    padding: var(--spacing-xl) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-col h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col p {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #111;
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
}

/* Overlay */
.cart-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal box */
.cart-modal {
    background: #fff;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* Close button */
.close-cart {
    align-self: flex-end;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-available {
    background-color: #2ECC71;
    /* Bright Green */
}

.status-unavailable {
    background-color: #1A1A1A;
    /* Black */
}

.status-green {
    background-color: #2ECC71;
    /* Bright Green - Available */
}

.status-red {
    background-color: #1A1A1A;
    /* Black - Unavailable */
}

/* Tooltip */
.status-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    margin-bottom: 6px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-dot:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Notification Toast */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Brands Section */
.brands-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
    text-align: center;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    opacity: 0.6;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ccc;
    border: 2px solid #eee;
    padding: 10px 20px;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    margin-top: auto;
}

.footer-content {
    padding: var(--spacing-xl) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-col h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col p {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #111;
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
}

/* Overlay */
.cart-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal box */
.cart-modal {
    background: #fff;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* Close button */
.close-cart {
    align-self: flex-end;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Disable body scroll */
body.no-scroll {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Product Details Modal Styles (Large) */
#productDetailsOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.product-details-modal {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.modal-product-image {
    width: 50%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.modal-product-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.modal-product-title {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.modal-product-price {
    font-size: 1.5rem;
    color: #000;
    font-weight: normal;
}

.modal-product-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.close-details-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #000;
    z-index: 10;
}

/* Quick Add Modal Styles (Small) */
#quickAddOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.quick-add-modal {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    text-align: center;
}

.quick-product-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
}

.quick-product-stock {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.quantity-selector label {
    font-weight: bold;
    color: #000;
}

.quantity-selector input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.quick-product-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.quick-product-price {
    font-size: 1.2rem;
    color: #D4111E;
    font-weight: bold;
    margin: 0;
}

.close-quick-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

/* Shared Modal Button Styles */
.modal-add-to-cart-btn,
.quick-add-btn {
    width: 100%;
    padding: 12px;
    background: #D4111E;
    /* Primary Red */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
}

.modal-add-to-cart-btn:disabled,
.quick-add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-add-to-cart-btn:not(:disabled):hover,
.quick-add-btn:not(:disabled):hover {
    background: #a50d17;
}

/* Select Styles */
#productSizeSelector,
#quickSizeSelector {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    background-color: #fff;
    cursor: pointer;
}

/* Product Card Updates */
.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: auto;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
}

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

/* Responsive adjustments for large modal */
@media (max-width: 768px) {
    .modal-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .modal-product-image {
        max-width: 200px;
        width: 100%;
    }

    .modal-product-info {
        width: 100%;
    }
}

/* ======================================================
   DAUDZUMA IZVĒLĒTĀJS — pievienot style.css beigās
   ====================================================== */

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.qty-label {
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.2em;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    line-height: 1;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    padding: 0 8px;
    user-select: none;
}