/* Vaekst.com Inspired CSS for Sallys.dk */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties for Vaekst.com Design */
:root {
    /* Colors inspired by vaekst.com */
    --vaekst-white: #FFFFFF;
    --vaekst-orange: #00D4AA;
    --vaekst-cyan: #00D4AA;
    --vaekst-blue: #4A90E2;
    --vaekst-darkblue: #041121;
    --vaekst-purple: #8B5CF6;
    --vaekst-pink: #EC4899;
    --vaekst-green: #10B981;
    --vaekst-yellow: #FFB800;
    --dark-gray: #1F2937;
    --light-gray: #F9FAFB;
    --border-gray: #E5E7EB;
    --error-red: #EF4444;
    --just-black: #000000;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-body: 1rem;
    --font-size-small: 0.875rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Border radius */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Base styles */
body {
    font-family: var(--font-family);
    background-color: var(--vaekst-white);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: #6B7280;
}

/* Vaekst Header/Navbar */
.nordic-navbar {
    background-color: var(--vaekst-white);
    border-bottom: 1px solid var(--border-gray);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-sm);
}

/* Logo with Seahorse */
.nordic-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--just-black);
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.nordic-logo:hover {
    color: var(--vaekst-orange);
    text-decoration: none;
    transform: scale(1.05);
}

.nordic-logo img {
   /* border-radius: 50%;*/
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nordic-logo:hover img {
    transform: rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--vaekst-orange);
    background-color: var(--light-gray);
}

.navbar-nav .nav-link i {
    color: var(--vaekst-cyan);
}

/* Vaekst Buttons */
.btn-nordic-primary {
    background-color: var(--vaekst-orange);
    border-color: var(--vaekst-orange);
    color: var(--vaekst-white);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.btn-nordic-primary:hover {
    background-color: #E55A2B;
    border-color: #E55A2B;
    color: var(--vaekst-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-nordic-secondary {
    background-color: var(--vaekst-white);
    border: 1px solid var(--border-gray);
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.btn-nordic-secondary:hover {
    background-color: var(--light-gray);
    border-color: var(--vaekst-cyan);
    color: var(--vaekst-cyan);
}

/* Vaekst Search Bar */
.nordic-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.nordic-search-input {
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    padding: 0.875rem 1rem;
    font-size: var(--font-size-body);
    background-color: var(--light-gray);
    transition: all 0.2s ease;
}

.nordic-search-input:focus {
    border-color: var(--vaekst-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    background-color: var(--vaekst-white);
    outline: none;
}

.nordic-search-input::placeholder {
    color: #9CA3AF;
}

/* Vaekst Cards - FIXED FOR BUTTON ALIGNMENT */
.nordic-card {
    background-color: var(--vaekst-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nordic-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--vaekst-cyan);
}

.nordic-card-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nordic-card-title {
    font-weight: 600;
    font-size: var(--font-size-body);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    /* Limit title to 2 lines to maintain consistency */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem; /* Ensures consistent height for 2 lines */
}

.nordic-card-text {
    color: #6B7280;
    font-size: var(--font-size-small);
    margin-bottom: var(--spacing-xs);
}

.nordic-card-price {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

/* Flex spacer to push buttons to bottom */
.flex-grow-1 {
    flex-grow: 1;
}

/* Product Images */
.nordic-product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-gray);
    flex-shrink: 0; /* Prevent image from shrinking */
}

/* Vaekst Badges */
.nordic-badge-sale {
    background-color: var(--vaekst-green);
    color: var(--vaekst-white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    position: absolute;
    top: var(--spacing-xs);
    left: var(--spacing-xs);
    z-index: 10;
}

/* SHOPS LIST TOGGLE FUNCTIONALITY */
.toggle-shops-btn {
    transition: all 0.2s ease;
}

.toggle-shops-btn.active {
    background-color: var(--vaekst-purple);
    border-color: var(--vaekst-purple);
    color: var(--vaekst-white);
}

.toggle-shops-btn.active:hover {
    background-color: #7C3AED;
    border-color: #7C3AED;
    color: var(--vaekst-white);
}

.shops-list {
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

.shops-list.d-none {
    display: none !important;
}

.shops-table-container {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    border: 1px solid var(--border-gray);
}

.shops-table-container .table {
    margin-bottom: 0;
    background-color: transparent;
}

.shops-table-container .table th {
    border-top: none;
    border-bottom: 1px solid var(--border-gray);
    background-color: transparent;
    color: #6B7280;
    font-weight: 600;
    padding: 0.5rem 0.25rem;
}

.shops-table-container .table td {
    border-top: 1px solid var(--border-gray);
    background-color: transparent;
    padding: 0.5rem 0.25rem;
    vertical-align: middle;
}

.best-price-row {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.best-price-row td {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}

/* Vaekst Filters */
.nordic-filter-container {
    background-color: var(--vaekst-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.nordic-filter-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

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

.nordic-filter-section:last-child {
    margin-bottom: 0;
}

/* Welcome Section */
.nordic-welcome {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    /*background: linear-gradient(135deg, var(--nordic-white) 0%, var(--light-gray) 100%);*/
    background: var(--vaekst-darkblue);
}

.nordic-welcome h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-gray);
    margin-bottom: var(--spacing-sm);
}

.nordic-welcome .lead {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: var(--spacing-lg);
}

/* Section Headers */
.nordic-section-header {
    color: var(--vaekst-cyan);
    font-weight: 600;
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* Footer with Seahorse */
.nordic-footer {
    background-color: var(--vaekst-white);
    border-top: 1px solid var(--border-gray);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.nordic-footer img {
    border-radius: 50%;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.nordic-footer p {
    color: #6B7280;
    font-size: var(--font-size-small);
    margin-bottom: 0;
}

.nordic-footer a {
    color: var(--vaekst-orange);
    transition: color 0.2s ease;
}

.nordic-footer a:hover {
    color: var(--vaekst-cyan);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nordic-welcome h1 {
        font-size: 2rem;
    }
    
    .nordic-welcome .lead {
        font-size: 1.125rem;
    }
    
    .nordic-card-body {
        padding: var(--spacing-sm);
    }
    
    .nordic-product-image {
        height: 160px;
    }
    
    .nordic-card-title {
        min-height: 2.4rem; /* Slightly smaller on mobile */
    }
    
    .nordic-logo {
        font-size: 1.1rem;
    }
    
    .nordic-logo img {
        width: 28px;
        height: 28px;
    }
    
    .shops-table-container {
        padding: 0.25rem;
    }
    
    .shops-table-container .table th,
    .shops-table-container .table td {
        padding: 0.25rem 0.125rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Seahorse Logo Animation */
@keyframes seahorseFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.nordic-logo:hover img {
    animation: seahorseFloat 1s ease-in-out infinite;
}

/* Utility Classes */
.nordic-text-muted {
    color: #6B7280;
}

.nordic-text-primary {
    color: var(--vaekst-orange);
}

.nordic-text-success {
    color: var(--vaekst-green);
}

.nordic-bg-light {
    background-color: var(--light-gray);
}

.nordic-border {
    border: 1px solid var(--border-gray);
}

.nordic-rounded {
    border-radius: var(--border-radius-md);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vaekst-orange);
}

/* Additional fixes for consistent card heights */
.row-cols-2 .col,
.row-cols-sm-3 .col,
.row-cols-md-4 .col,
.row-cols-lg-5 .col {
    display: flex;
}

.row-cols-2 .col > .nordic-card,
.row-cols-sm-3 .col > .nordic-card,
.row-cols-md-4 .col > .nordic-card,
.row-cols-lg-5 .col > .nordic-card {
    width: 100%;
}

