html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
    --brand-primary: #0056b3;
    --brand-primary-hover: #004494;
    --brand-primary-border-hover: #003575;
    --brand-accent: #d9534f;
    --brand-accent-hover: #c9302c;
    --brand-accent-border-hover: #ac2925;
    --brand-dark: #1a1a1a;
    --brand-light: #f4f4f4;
    --brand-hero: url("https://images.unsplash.com/photo-1558981806-ec527fa84c39?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
}

body {
    background-color: var(--brand-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-shop {
    background-color: var(--brand-dark) !important;
    border-bottom: 3px solid var(--brand-accent);
}

.navbar-shop .navbar-brand,
.navbar-shop .nav-link {
    color: white !important;
}

.navbar-shop .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-shop .nav-link:hover {
    color: var(--brand-accent) !important;
}

.btn-accent {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

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

.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-brand:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-border-hover);
    color: white;
}

.card-shop {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background-color: white;
}

.card-shop:hover {
    transform: translateY(-5px);
}

.header-hero {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), var(--brand-hero);
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--brand-primary);
}

footer.shop-footer {
    background-color: var(--brand-dark) !important;
    border-top: 3px solid var(--brand-primary);
}

.hover-white:hover {
    color: white !important;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.98);
    z-index: 10000;
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--brand-accent);
}

.cookie-banner .btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.cookie-banner .btn-primary:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
}

.cookie-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.badge-accent {
    background-color: var(--brand-accent) !important;
}

.list-group-item.active {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.category-description, .product-page-top-panel {
    text-align: justify;
    line-height: 1.8;
    color: #222;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01rem;
}

.category-description::after, .product-page-top-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, transparent, color-mix(in srgb, var(--brand-primary) 3%, transparent));
    pointer-events: none;
}

.border-brand {
    border-color: var(--brand-primary) !important;
}

.rich-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.rich-content img {
    max-width: 100%;
    height: auto;
}

.rich-content blockquote {
    border-left: 4px solid var(--brand-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.rich-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.rich-quote {
    border-left: 4px solid var(--brand-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.rich-code {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    white-space: pre-wrap;
}

.rich-figure {
    margin: 1.5rem 0;
}

.rich-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.rich-figure figcaption {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.category-description p, .product-page-top-panel p {
    margin-bottom: 1rem;
}

.category-description p:last-child, .product-page-top-panel p:last-child {
    margin-bottom: 0;
}
