:root {
    --primary-black: #000;
    --secondary-black: #222;
    --primary-blue: #007bff;
    --secondary-blue: #0056b3;
    --primary-purple: #667eea;
    --primary-green: #764ba2;
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #6c757d;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --border-light: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease;
    --border-radius: 6px;
    --header-height-desktop: 164px;
    --header-height-mobile: 116px;
    --danger: #dc3545;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    height: calc(100vh - var(--header-height-desktop));
    color: var(--text-secondary);
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

body.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-size: cover;
}

.bag-notification-wrapper {
    height: 100px;
    overflow-x: hidden;
    overflow-y: auto;
}

.hero-title {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--bg-white);
}

.logo-font {
    text-transform: uppercase;
}

.text-black {
    color: var(--primary-black) !important;
}

.shop-now-button,
.btn-black {
    background: var(--primary-black);
    color: var(--bg-white);
    border: 1px solid var(--primary-black);
    transition: var(--transition-fast);
}

.shop-now-button {
    min-width: 260px;
}

.btn-outline-black {
    background: var(--bg-white);
    color: var(--primary-black) !important;
    border: 1px solid var(--primary-black);
    transition: var(--transition-fast);
}

.btn-outline-black:hover,
.btn-outline-black:active,
.btn-outline-black:focus,
.shop-now-button:hover,
.shop-now-button:active,
.shop-now-button:focus,
.btn-black:hover,
.btn-black:active,
.btn-black:focus {
    background: var(--secondary-black);
    color: var(--bg-white) !important;
    border-color: var(--secondary-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.border-black {
    border: 1px solid var(--primary-black) !important;
}

.bg-black {
    background: var(--primary-black) !important;
}

.overlay {
   background-color: #fff;
}

.icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
}

.main-logo-link {
    width: fit-content;
}

.btt-button {
    height: 42px;
    width: 42px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
}

.btt-link,
.update-link,
.remove-link {
    cursor: pointer;
}

.wishlist-container {
    padding-top: 140px;
    position: relative;
    z-index: 1;
}

input[name='q']::placeholder {
    color: var(--text-muted);
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0;
    border-color: #dc3545;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 0;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}

.message-container {
    position: fixed;
    top: 72px;
    right: 15px;
    z-index: 99999999999;
}

.custom-toast {
    overflow: visible;
}

.toast-capper {
    height: 2px;
}

.arrow-up {
    width: 0; 
    height: 0; 
    border-left: 4px solid transparent;
    border-right: 4px solid transparent; 
    border-bottom: 10px solid var(--primary-black);
    position: absolute;
    top: -10px;
    right: 36px;
}

.arrow-primary { border-bottom-color: var(--primary-blue) !important; }
.arrow-secondary { border-bottom-color: var(--text-muted) !important; }
.arrow-success { border-bottom-color: #28a745 !important; }
.arrow-danger { border-bottom-color: #dc3545 !important; }
.arrow-warning { border-bottom-color: #ffc107 !important; }
.arrow-info { border-bottom-color: #17a2b8 !important; }
.arrow-light { border-bottom-color: var(--bg-light) !important; }
.arrow-dark { border-bottom-color: #343a40 !important; }

a.category-badge > span.badge:hover {
    background: #212529 !important;
    color: var(--bg-white) !important;
}

.allauth-form-inner-content p {
    margin-top: 1.5rem;
    color: var(--text-muted); 
}

.allauth-form-inner-content input {
    border-color: var(--primary-black);
    border-radius: 0;
    transition: var(--transition-fast);
}

.allauth-form-inner-content input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.allauth-form-inner-content label:not([for="id_remember"]) {
    display: none;
}

.allauth-form-inner-content input::placeholder {
    color: #aab7c4;
}

.allauth-form-inner-content button,
.allauth-form-inner-content input[type='submit'] {
    display: inline-block;
    font-weight: 400;
    color: var(--bg-white);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: var(--primary-black);
    border: 1px solid var(--primary-black);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0;
    transition: var(--transition-fast);
}

.allauth-form-inner-content button:hover,
.allauth-form-inner-content input[type='submit']:hover {
    color: var(--bg-white);
    background-color: var(--secondary-black);
    border-color: var(--secondary-black);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1040;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.dropdown-menu {
    z-index: 1050;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
}

.dropdown-item {
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    transform: translateX(5px);
}

.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    background: var(--bg-white);
}

.product-container {
    padding: 2rem 0;
}

.product-item {
    margin-bottom: 2rem;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.hero-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-black), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-section {
    min-height: calc(100vh - var(--header-height-desktop));
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 50%, var(--primary-green) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../media/imprint_hero.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.shop-now-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.shop-now-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.hero-content,
.newsletter-peek {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.hero-content.animate-in,
.newsletter-peek.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.5rem; /* Made larger for better visibility */
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite ease-in-out !important;
    transition: color 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-indicator:hover {
    color: white;
    animation-play-state: paused;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}


.newsletter-peek {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    margin-top: -2px;
    position: relative;
}

.newsletter-peek::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue), var(--primary-green));
}

.newsletter-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-wrapper h2 {
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.newsletter-wrapper h2 i {
    color: var(--primary-blue);
}

.newsletter-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-wrapper .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.newsletter-wrapper .mc-field-group {
    flex: 1;
    margin-bottom: 1rem;
}

.newsletter-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

.newsletter-wrapper .form-control {
    border-radius: 12px;
    border: 2px solid var(--border-light);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-wrapper .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: white;
}

.btn-subscribe {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
}

.indicates-required {
    text-align: center;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.asterisk {
    color: var(--danger);
    font-weight: bold;
}

@media (max-width: 768px) {
    .newsletter-wrapper {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .newsletter-wrapper .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .newsletter-wrapper h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 80%;
    }
}

@media (min-width: 992px) {
    .fixed-top-desktop-only {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }

    .header-container {
        padding-top: var(--header-height-desktop);
    }
}

@media (max-width: 991px) {
    body {
        height: calc(100vh - var(--header-height-mobile));
    }

    .header-container {
        padding-top: var(--header-height-mobile);
    }

    .hero-section {
        min-height: calc(100vh - var(--header-height-mobile));
    }

    .display-4.logo-font.text-black {
        font-size: 2rem;
    }

    .nav-link {
        padding: 0.15rem;
    }

    .nav-link i.fa-lg {
        font-size: 1rem;
    }

    .navbar-toggler {
        padding: 0.6rem 0.6rem;
        font-size: 1rem;
    }

#delivery-banner {
    background: linear-gradient(135deg, var(--primary-black) 0%, #2c3e50 100%);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

#delivery-banner h4 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

    .btn.btn-outline-black.rounded-0,
    .btn.btn-black.rounded-0 {
        padding: 0.375rem 0.375rem;
    }

    .btn.btn-outline-black.rounded-0.btn-lg,
    .btn.btn-black.rounded-0.btn-lg {
        padding: 0.375rem 0.375rem;
        font-size: 0.75rem;
    }

    .increment-qty, 
    .decrement-qty {
        padding: 0.25rem 0.5rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .newsletter-peek {
        animation: none;
    }
}

button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

select.form-control {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    height: auto; /* let it scale naturally */
    min-height: 2.5rem; /* prevents it from being too short */
}