/* Vega License Custom Styles */

/* WCAG AA Contrast Improvements */
.text-orange-600 {
    color: #1d4ed8; /* Brand blue for emphasis */
}

.text-green-600 {
    color: #059669; /* Darker green for better contrast */
}

.text-soft-500 {
    color: #6b7280; /* Darker gray for better contrast */
}

.text-gray-500 {
    color: #6b7280; /* Darker gray for better contrast */
}

/* Primary brand color improvements */
:root {
    --brand-dark: #252428;
    --brand-dark-hover: #3a3945;
    --brand-light: #f9f8fb;
    --brand-muted: #4b4a58;
    --brand-accent: #f3ce15;
    --brand-accent-hover: #d9b50d;
    --brand-accent-soft: #fdf5c6;
}

/* Class overrides */
.bg-orange-600 {
    background-color: var(--brand-accent);
    color: var(--brand-dark);
}

.border-orange-600 {
    border-color: var(--brand-accent);
}

.bg-orange-600:hover {
    background-color: var(--brand-accent-hover);
    color: var(--brand-dark);
}

.text-orange-600:hover {
    color: #2563eb;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Minimal Product Card Button */
.product-card-btn-minimal {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 400;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.product-card-btn-minimal:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-card-btn-minimal:active {
    transform: translateY(0);
    box-shadow: none;
}

.product-card-btn-minimal i {
    font-size: 12px;
}

/* Disabled state */
.product-card-btn-minimal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f5f9;
}

.product-card-btn-minimal:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-dark), #2f2e33);
    color: var(--brand-light);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 6px 20px -10px rgba(37, 36, 40, 0.8);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2f2e33, #454451);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -15px rgba(37, 36, 40, 0.9), 0 0 0 2px rgba(243, 206, 21, 0.35);
}

/* Pricing */
.regular-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.sale-price {
    color: #dc2626;
    font-weight: bold;
}

.price {
    color: #2563eb;
    font-weight: bold;
}

/* Product Detail Page */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.prose {
    max-width: none;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #374151;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.prose ul, .prose ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.prose th, .prose td {
    border: 1px solid #d1d5db;
    padding: 0.75em;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Tab System */
.tab-button.active {
    border-bottom-color: #2563eb !important;
    color: #2563eb !important;
}

/* Image Gallery */
.image-thumbnail {
    transition: all 0.3s ease;
}

.image-thumbnail:hover {
    transform: scale(1.05);
}

.image-thumbnail.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Variation Selection */
.variation-option {
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variation-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variation-option.selected {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: white !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Variation Info Box */
#variation-info {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mobile First Responsive */
@media (max-width: 640px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Product grid - 2 columns on mobile */
    .grid.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Categories grid - 2 columns on mobile */
    .grid.md\\:grid-cols-3.lg\\:grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Mobile navigation */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 50;
    }
    
    .mobile-menu-panel {
        background: white;
        width: 280px;
        height: 100%;
        padding: 1rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    /* Product cards mobile optimization */
    .product-card {
        min-height: 280px;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .product-card .text-2xl {
        font-size: 0.7rem;
    }
    
    .product-card .text-lg {
        font-size: 0.875rem;
    }
    
    .product-card .text-base {
        font-size: 0.8rem;
    }
    
    /* Mobile product card padding adjustments */
    .product-card .p-5 {
        padding: 1rem !important;
    }
    
    /* Mobile grid gap reduction - 40% smaller */
    .grid.grid-cols-2.md\\:grid-cols-2.lg\\:grid-cols-3.gap-3.md\\:gap-6,
    .grid.grid-cols-2.md\\:grid-cols-3.lg\\:grid-cols-4.gap-4.md\\:gap-6 {
        gap: 0.5rem !important;
    }
    
    .grid.gap-3 {
        gap: 0.5rem !important;
    }
    
    .grid.gap-4 {
        gap: 0.6rem !important;
    }
    
    /* Mobile pricing specific overrides - EXACT TARGET */
    .product-card .mb-4 > div > span.text-2xl,
    .product-card .mb-4 span.text-2xl.font-bold,
    .grid .product-card .p-5 .mb-4 span {
        font-size: 0.75rem !important;
        line-height: 1.1 !important;
    }
    
    /* BALANCED MOBILE PRICING - NOT TOO SMALL */
    .mb-4 div.flex.items-baseline.gap-2 span.text-2xl.font-bold,
    div.mb-4 > div.flex > span.text-2xl.font-bold.text-slate-800,
    .product-card .mb-4 .flex.items-baseline span.text-2xl,
    section.py-12 .grid .product-card .mb-4 span.text-2xl.font-bold {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .product-card .text-sm {
        font-size: 0.75rem !important;
    }
    
    .product-card .text-xs {
        font-size: 0.625rem !important;
    }
    
    .product-card-cta-btn, 
    .product-card button {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
        background: #f8fafc !important;
        color: #475569 !important;
        font-weight: 500 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 0.375rem !important;
        transition: all 0.2s ease !important;
        min-height: 40px !important;
        gap: 0.375rem !important;
    }
    
    .product-card-cta-btn i,
    .product-card button i {
        font-size: 0.75rem !important;
    }
    
    .product-card-cta-btn span,
    .product-card button span {
        font-size: 0.75rem !important;
    }
    
    .product-card-cta-btn:hover,
    .product-card button:hover {
        background: #f1f5f9 !important;
        color: #334155 !important;
        border-color: var(--brand-accent) !important;
        box-shadow: 0 2px 4px rgba(243, 206, 21, 0.18) !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    /* Tablet styles */
    .hero h1 {
        font-size: 3rem;
    }
    
    .grid.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid.md\\:grid-cols-3.lg\\:grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Small desktop styles */
    .grid.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid.md\\:grid-cols-3.lg\\:grid-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card Button Styles - Slate Grey with Orange accent */
.product-card-cta-btn {
    background: #f8fafc;
    color: #475569;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    min-height: 48px;
}

.product-card-cta-btn:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: var(--brand-accent);
    box-shadow: 0 2px 4px rgba(243, 206, 21, 0.18);
}

.product-card-cta-btn-disabled {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 48px;
}

/* Fallback for any remaining .product-card button */
.product-card button {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 500 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    min-height: 48px !important;
}

.product-card button:hover {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: var(--brand-accent) !important;
    box-shadow: 0 2px 4px rgba(243, 206, 21, 0.18) !important;
}

.product-card button:disabled {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    border: 2px solid #e2e8f0 !important;
    cursor: not-allowed !important;
}

/* Touch-friendly buttons */
@media (max-width: 768px) {
    button, .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Improved mobile navigation */
.mobile-menu-toggle {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hepsiburada Navigation Styles */
.hepsi-navigation {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.hepsi-nav-container {
    display: flex;
    max-width: 1200px;
    height: 56px;
    margin: 0 auto;
}

.hepsi-category-section {
    position: relative;
    width: 200px;
    border-right: 1px solid #e5e7eb;
    display: flex;
}

.hepsi-category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    gap: 8px;
}

.hepsi-category-btn:hover {
    color: var(--brand-accent);
}

.hepsi-menu-section {
    flex: 1;
    display: flex;
}

.hepsi-menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hepsi-menu-item {
    flex: 1;
    text-align: center;
    display: block;
}

.hepsi-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hepsi-menu-link:hover {
    color: var(--brand-accent);
}

.hepsi-menu-link-active {
    color: var(--brand-accent) !important;
    font-weight: 600 !important;
}
