/* ==========================================================================
   #FONTS
   ========================================================================== */
@font-face {
    font-family: 'ProductSans';
    src: url('/assets/fonts/ProductSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   #BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
}

body, html {
    font-family: 'ProductSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix z-index issues */
main {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   #LAYOUT
   ========================================================================== */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* Responsive container adjustments */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem !important;
    }
}

/* Reset any Bootstrap grid conflicts */
.row, .col, .col-*, [class*="col-"] {
    display: initial !important;
    flex: initial !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   #COMPONENTS
   ========================================================================== */

/* Line clamp utilities for text truncation */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Mobile Menu */
.mobile-menu {
    display: none;
}

@media (max-width: 767px) {
    .mobile-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        z-index: 40;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a56b0;
    border-color: #3a56b0;
}

/* Navigation */
.nav-link {
    color: var(--dark-blue);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Header */
.header-gradient {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

/* ==========================================================================
   #UTILITIES
   ========================================================================== */
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

/* ==========================================================================
   #VARIABLES
   ========================================================================== */
:root {
    --primary-color: #5068c2; /* ShiftKey blue */
    --secondary-color: #ff4500; /* ShiftKey orange */
    --dark-blue: #2c3e50;
    --gradient-start: #4776E6;
    --gradient-end: #8E54E9;
}

/* ==========================================================================
   #FORMS
   ========================================================================== */
/* Input field styles */
.input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px; 
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out;
}

/* Input focus styles - only dark gray border */
.input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4b5563; /* Dark gray color */
    box-shadow: none;
}

/* Label styles */
label.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

/* Form item container */
.form-group {
    margin-bottom: 20px;
}

/* Checkbox and radio button styles */
input[type="checkbox"],
input[type="radio"] {
    height: 1.25rem;
    width: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.25rem;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Add any custom styles here */

/* Form button styles */
.form-button {
    width: 100%;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, transform 0.1s;
}

.form-button:hover {
    background-color: #2563eb;
}

.form-button:active {
    transform: translateY(1px);
}

/* Compact form styles (e.g., for admin panel) */
.form-compact .form-group {
    margin-bottom: 12px;
}

.form-compact .input {
    padding: 8px 12px;
    font-size: 14px;
}

.form-compact .form-label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* Global styles migrated from main.twig */
body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Container styles */
.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

 /* Aspect Ratio Classes */
 .aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.aspect-h-9 {
    height: 0;
}
.aspect-w-16 > * {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
/* Line Clamp */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
#cookie-consent-banner.translate-y-0 {
    transform: translateY(0);
}
#cookie-consent-banner.translate-y-full {
    transform: translateY(100%);
}

/* Cart icon styles */
.cart-icon {
    position: relative;
    transition: transform 0.2s ease-in-out;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cartCountPulse 0.3s ease-in-out;
}

@keyframes cartCountPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Cart icon animation */
.cart-icon.animate {
    animation: cartShake 0.5s ease-in-out;
}

@keyframes cartShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}