/* Tailwind Base */
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Base Styles */
@layer base {
    html {
        font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        -moz-tab-size: 4;
        tab-size: 4;
    }
    body {
        margin: 0;
        line-height: inherit;
        background-color: #f7fafc;
        color: #1a202c;
        min-height: 100vh;
    }
    .dark body {
        background-color: #1a202c;
        color: #f7fafc;
    }
    h1, h2, h3 {
        font-weight: 700;
        line-height: 1.2;
        color: #1a202c;
    }
    .dark h1, .dark h2, .dark h3 {
        color: #f7fafc;
    }
    a {
        color: #2b6cb0;
        text-decoration: none;
    }
    a:hover {
        color: #1a4971;
        text-decoration: underline;
    }
    .dark a {
        color: #63b3ed;
    }
    .dark a:hover {
        color: #4299e1;
    }
    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    p {
        margin: 0.5rem 0;
        color: #1a202c;
    }
    .dark p {
        color: #f7fafc;
    }
}
/* Custom Components */
@layer components {
    /* Container */
    .container {
        width: 100%;
        max-width: 1280px;
        margin-right: auto;
        margin-left: auto;
        padding-right: 1rem;
        padding-left: 1rem;
    }
    /* Intro Text Section */
    .intro-text {
        position: relative !important;
        z-index: 10 !important;
        display: block !important;
        visibility: visible !important;
        text-align: center;
        padding: 0.5rem !important;
        max-width: 800px;
        margin: 1rem auto 0 auto !important;
        background-color: transparent;
    }
    .intro-text h1 {
        font-size: 1.388rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 0.5rem;
    }
    .intro-text p {
        font-size: 1.112rem;
        color: #ffffff;
    }
    .dark .intro-text h1 {
        color: #e5e7eb;
    }
    .dark .intro-text p {
        color: #e5e7eb;
    }
    @media (min-width: 640px) {
        .intro-text h1 {
            font-size: 1.667rem;
        }
        .intro-text p {
            font-size: 1.25rem;
        }
    }
    @media (min-width: 768px) {
        .intro-text h1 {
            font-size: 1.945rem;
        }
        .intro-text p {
            font-size: 1.388rem;
        }
    }
    /* Hero Section */
    .hero-section {
        position: relative;
        height: 22vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #1a202c;
        color: #ffffff;
        padding: 2rem;
        filter: brightness(1.5);
    }
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }
    @media (max-width: 640px) {
        .hero-section {
            height: 11vh;
            padding: 1rem;
        }
    }
    /* Navigation */
    .nav-bar {
        padding: 0;
        background-color: transparent;
        border-bottom: none;
        position: sticky;
        top: 0;
        z-index: 50;
        width: 100%;
        text-align: center;
    }
    .dark .nav-bar {
        background-color: transparent;
        border-color: transparent;
    }
    .nav-item {
        font-weight: bold;
        font-size: 1rem;
        padding: 0.5rem 1rem;
        transition: color 0.3s ease, background-color: 0.3s ease;
    }
    @media (min-width: 640px) {
        .nav-item {
            font-size: 1.125rem;
        }
    }
    @media (min-width: 768px) {
        .nav-item {
            font-size: 1.25rem;
        }
    }
    .nav-item:hover {
        color: #2b6cb0;
        background-color: #f7fafc;
        border-radius: 0.25rem;
    }
    .dark .nav-item {
        color: #f7fafc;
    }
    .dark .nav-item:hover {
        color: #63b3ed;
        background-color: #2d3748;
    }
    .welcome-text {
        font-size: 1.5rem;
        font-weight: 900;
    }
    @media (min-width: 640px) {
        .welcome-text {
            font-size: 1.875rem;
        }
    }
    @media (min-width: 768px) {
        .welcome-text {
            font-size: 2.25rem;
        }
    }
    .header-title {
        text-align: center;
        margin: 0 auto;
    }
    /* Galleries Section */
    #galleries h2 {
        text-align: center;
        margin: 0 auto;
        max-width: 800px;
    }
    /* Gallery Grid */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
        justify-content: center;
        max-width: 1024px;
        margin: 0 auto;
    }
    @media (max-width: 1024px) {
        .gallery-grid {
            grid-template-columns: repeat(3, minmax(200px, 1fr));
        }
    }
    @media (max-width: 768px) {
        .gallery-grid {
            grid-template-columns: repeat(2, minmax(150px, 1fr));
        }
    }
    @media (max-width: 640px) {
        .gallery-grid {
            grid-template-columns: 1fr;
        }
    }
    .gallery-item {
        text-align: center;
        padding: 1rem;
        background-color: #ffffff;
        border: 2px solid #e2e8f0;
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        max-width: 250px;
        margin: 0 auto;
    }
    .gallery-item:hover {
        transform: translateY(-2px);
    }
    .dark .gallery-item {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    .gallery-item h3 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #1a202c;
        margin: 0.5rem 0;
    }
    .dark .gallery-item h3 {
        color: #f7fafc;
    }
    .lytebox-img {
        width: 100%;
        max-width: 150px;
        height: auto;
        border-radius: 0.25rem;
        margin: 0 auto;
        transition: transform 0.3s ease, box-shadow: 0.3s ease;
        border: 2px solid white;
    }
    .lytebox-img:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    .frame-wrapper {
        border: 4px solid #000000;
        padding: 8px;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
    }
    .dark .frame-wrapper {
        border-color: #000000;
        background: #2d3748;
    }
    /* Gallery Selection Links */
    .gallery-selection {
        text-align: center;
        max-width: 1024px;
        margin: 0 auto;
        padding: 1rem;
    }
    .gallery-link {
        display: inline-block;
        margin: 0.5rem;
        padding: 1rem;
        background-color: #ffffff;
        border: 2px solid #e2e8f0;
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        min-width: 200px;
    }
    .gallery-link img {
        width: 100%;
        max-width: 100px;
        height: auto;
        border-radius: 0.25rem;
        margin-bottom: 0.5rem;
    }
    .gallery-link:hover {
        transform: translateY(-2px);
    }
    .dark .gallery-link {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    /* Cart Images */
    .cart-img {
        width: 100%;
        max-width: 75px; /* Reduced from 150px by half */
        height: auto;
        border-radius: 0.25rem;
        margin: 0 auto;
        border: 2px solid white;
    }
    .dark .cart-img {
        border-color: #ffffff;
    }
    /* Buttons */
    .btn-primary, .add-to-cart-btn {
        display: block;
        margin: 0 auto;
        padding: 0.75rem 1.5rem;
        background-color: #2b6cb0;
        color: #ffffff;
        border-radius: 0.5rem;
        font-weight: 600;
        text-align: center;
        transition: background-color 0.3s ease, transform 0.2s ease;
        cursor: pointer;
    }
    .btn-primary:hover, .add-to-cart-btn:hover {
        background-color: #1a4971;
        transform: translateY(-1px);
    }
    .dark .btn-primary, .dark .add-to-cart-btn {
        background-color: #4299e1;
    }
    .dark .btn-primary:hover, .dark .add-to-cart-btn:hover {
        background-color: #3182ce;
    }
    /* Social Buttons */
    .social-btn {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        background-color: #2b6cb0;
        color: #ffffff;
        border-radius: 0.5rem;
        font-weight: 500;
        font-size: 0.875rem;
        text-align: center;
        transition: background-color 0.3s ease, transform 0.2s ease;
        cursor: pointer;
        width: 140px;
    }
    .social-btn:hover {
        background-color: #1a4971;
        transform: translateY(-1px);
    }
    .dark .social-btn {
        background-color: #4299e1;
    }
    .dark .social-btn:hover {
        background-color: #3182ce;
    }
    .social-share {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        max-width: 450px;
        margin: 1rem auto;
    }
    /* Footer */
    .footer {
        padding: 2rem 0;
        background-color: #2d3748;
        text-align: center;
    }
    .dark .footer {
        background-color: #1a202c;
    }
    .footer a {
        margin: 0 0.5rem;
        color: #1a202c;
        font-weight: 500;
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
        transition: color 0.3s ease;
    }
    .footer a:hover {
        color: #2b6cb0;
    }
    .dark .footer a {
        color: #f7fafc;
    }
    .dark .footer a:hover {
        color: #63b3ed;
    }
    .footer p {
        color: #1a202c;
        font-size: 0.875rem;
        margin-top: 1rem;
    }
    .dark .footer p {
        color: #f7fafc;
    }
    /* Form Elements */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #e2e8f0;
        border-radius: 0.5rem;
        background-color: #ffffff;
        color: #1a202c;
        font-size: 1rem;
        line-height: 1.5;
        box-sizing: border-box;
        text-align: center;
    }
    .dark input[type="text"],
    .dark input[type="email"],
    .dark textarea,
    .dark select {
        border-color: #4a5568;
        background-color: #2d3748;
        color: #f7fafc;
        text-align: center;
    }
    input[type="text"]:focus,
    input[type="email"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: #2b6cb0;
        box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
    }
    .dark input[type="text"]:focus,
    .dark input[type="email"]:focus,
    .dark textarea:focus,
    .dark select:focus {
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    }
    select option {
        text-align: center;
    }
    label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #1a202c;
    }
    .dark label {
        color: #f7fafc;
    }
    /* Scroll to Top */
    .scrollToTop {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        background-color: #2b6cb0;
        color: #ffffff;
        padding: 0.5rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        text-align: center;
        transition: background-color 0.3s ease;
    }
    .scrollToTop:hover {
        background-color: #1a4971;
    }
    .dark .scrollToTop {
        background-color: #4299e1;
    }
    .scrollToTop:hover {
        background-color: #3182ce;
    }
    /* Cart-specific styles */
    .remove-item {
        cursor: pointer;
        pointer-events: auto;
        display: inline-block;
        padding: 0.5rem 1rem;
        min-width: 80px;
        text-align: center;
    }
    #promo-code {
        max-width: 200px;
        margin-right: 1rem;
    }
    #apply-promo {
        background-color: #2b6cb0;
        color: #ffffff;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
        font-weight: 600;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    #apply-promo:hover {
        background-color: #1a4971;
        transform: translateY(-1px);
    }
    .dark #apply-promo {
        background-color: #4299e1;
    }
    .dark #apply-promo:hover {
        background-color: #3182ce;
    }
}
/* Custom Utilities */
@layer utilities {
    .dark .text-gray-600 {
        color: #a0aec0;
    }
    .dark .text-gray-500 {
        color: #cbd5e0;
    }
}