/**
 * Merch By Styles Custom Styles
 * Complete CSS with built-in utilities (no CDN dependency)
 */

:root {
    --primary-color: #0d6cf2;
    --background-light: #f5f7f8;
    --background-dark: #101722;
    --foreground-light: #111827;
    --foreground-dark: #f9fafb;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #111827;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.md\:grid-cols-2 {
    grid-template-columns: 1fr;
}

.md\:grid-cols-3 {
    grid-template-columns: 1fr;
}

.lg\:grid-cols-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .md\:flex {
        display: flex !important;
    }
    .md\:block {
        display: block !important;
    }
    .hidden.md\:block {
        display: block !important;
    }
    .md\:hidden {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-col {
    flex-direction: column;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Text Utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-blue-600 { color: #0d6cf2; }
.text-yellow-400 { color: #fbbf24; }

.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-600 { background-color: #0d6cf2; }

/* Gradient Backgrounds */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-600 {
    --tw-gradient-from: #2563eb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-black {
    --tw-gradient-to: #000000;
}

/* Collection Card Gradients */
.collection-card-1 {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.collection-card-2 {
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
}

.collection-card-3 {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
}

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Size */
.w-full { width: 100%; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.min-h-\[600px\] { min-height: 600px; }

/* Aspect Ratio */
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
    position: relative;
}

/* Border */
.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-800 { border-color: #1f2937; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Opacity */
.bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.4);
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

/* Backdrop */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Hover Effects */
.hover\:text-blue-600:hover {
    color: #0d6cf2;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Group Hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Carousel */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Material Icons */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.text-2xl .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Max Width */
.max-w-none { max-width: none; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Prose (for content) */
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose h1, .prose h2, .prose h3 {
    color: #111827;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #0b5dd4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 108, 242, 0.3);
}

/* WooCommerce Overrides */
.woocommerce .button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
}

.woocommerce .button:hover {
    background-color: #0b5dd4 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3rem;
    }
    
    .md\:text-2xl {
        font-size: 1.25rem;
    }
    
    .md\:text-5xl {
        font-size: 2.5rem;
    }
    
    .md\:text-7xl {
        font-size: 3rem;
    }
    
    .carousel-item {
        width: 100%;
    }
    
    .md\:w-1\/2 {
        width: 100%;
    }
    
    .lg\:w-1\/3 {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .md\:text-2xl {
        font-size: 1.5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-7xl {
        font-size: 4.5rem;
    }
    
    .md\:w-1\/2 {
        width: 50%;
    }
    
    .md\:mb-0 {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 1024px) {
    .lg\:w-1\/3 {
        width: 33.333333%;
    }
}

/* Utility Classes */
.object-cover {
    object-fit: cover;
}

.h-auto {
    height: auto;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

