/* Non-critical CSS styles moved from index.html */
/* Responsive adjustments */
@media (max-width: 640px) {
    .category-card .absolute p {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Mobile specific header adjustments */
@media (max-width: 767px) {
    .header-transparent {
        top: 35px; /* Smaller height for mobile announcement bar */
    }
    
    /* Fix alignment issues on small screens */
    .header-transparent .container,
    .header-solid .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Logo animation on hover */
header svg {
    transition: transform 0.3s ease;
}

header a:hover svg {
    transform: scale(1.05);
}

/* Enhanced logo styling */
header img.logo, 
footer img.logo {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

header img.logo:hover, 
footer img.logo:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    transform: scale(1.02);
}

/* Ensure proper logo sizing on small screens */
@media (max-width: 640px) {
    header img.logo {
        max-width: 140px;
        height: auto !important;
    }
    
    footer img.logo {
        max-width: 200px;
        height: auto !important;
    }
}

/* Additional mobile-specific adjustment for homepage */
@media (max-width: 480px) {
    header img.logo {
        max-width: 120px;
    }
}

/* Header navigation links (enhanced) */
.nav-link {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.hidden {
    max-height: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 100vh;
}

/* Hero section - adjust for header and announcement bar */
.hero-section {
    height: 100vh;
    position: relative;
    background-position: center;
    background-size: cover;
    margin-top: 0;
    padding-top: 71px; /* Combined height of announcement bar and header */
    overflow: hidden; /* Prevent any potential overflow */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

/* Category cards - Enhanced styling for better hover effects */
.category-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Product cards */
.product-card {
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.product-image {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s;
}

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

/* Footer styles */
.footer-section {
    background-color: #000;
    color: white;
}
.footer-link {
    color: #ccc;
    transition: color 0.2s;
}
.footer-link:hover {
    color: white;
}

/* Features section */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* YouTube background video styles */
#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    #youtube-player {
        height: 56.25vw; /* 9/16 * 100 */
    }
}

@media (max-aspect-ratio: 16/9) {
    #youtube-player {
        width: 177.78vh; /* 16/9 * 100 */
    }
}

/* Video background styles */
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Cart notification styling */
.cart-notification {
    width: 300px;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.5s ease, opacity 0.3s ease;
    position: fixed;
    right: 0;
    top: 100px; /* Position below header */
    z-index: 1000;
}

.cart-notification.translate-x-full {
    transform: translateX(100%); /* Slide from right */
    opacity: 0;
}

.cart-notification.translate-x-0 {
    transform: translateX(0);
    opacity: 1;
}

/* Mobile adjustments for cart notification */
@media (max-width: 640px) {
    .cart-notification {
        width: 250px;
        top: 80px;
    }
    
    /* Fix for the header elements spacing */
    #header .container {
        max-width: 100%;
    }
    
    /* Ensure the mobile menu button is properly spaced */
    #mobile-menu-button {
        margin-right: 0.5rem;
    }
}

/* Image Modal styles */
#image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#image-modal.active {
    display: flex;
    opacity: 1;
}

#modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

#image-modal.active #modal-image {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-modal:hover {
    transform: scale(1.1);
    color: #ff9c00;
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Add loading indicator for the modal */
#image-modal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid #fff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#image-modal.loading::before {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Media queries for responsive modal */
@media (max-width: 768px) {
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 32px;
        width: 44px;
        height: 44px;
    }
    
    #modal-image {
        max-width: 95%;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    
    #modal-image {
        max-width: 98%;
        max-height: 80vh;
    }
} 