/* assets/css/style.css - COMPLETE FILE */

/* =========================================
   1. GLOBAL RESET & FONTS
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: #121212; 
    color: #FFFFFF; 
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    overflow-x: hidden; 
}

/* GLOBAL LINK STYLE */
a { text-decoration: none !important; color: inherit; transition: 0.3s; }
a:hover { color: #FFD700; }

/* =========================================
   2. HEADER
   ========================================= */
header { 
    background-color: #1E1E1E; 
    padding: 12px 0; 
    position: sticky; top: 0; z-index: 1000; 
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
}

.header-container { 
    display: flex; align-items: center; justify-content: space-between; 
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; gap: 20px;
}

.logo { display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.logo-icon { font-size: 1.4rem; color: #FFD700; }
.logo h1 { margin-left: 8px; line-height: 1; }
.logo h1 a { color: #FFD700; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.search-container { flex-grow: 1; max-width: 500px; position: relative; }
#globalSearch {
    width: 100%; padding: 0 20px; height: 40px; border-radius: 50px;
    border: 1px solid #333; background: #2D2D2D; color: #fff; outline: none; font-size: 0.9rem;
}
#globalSearch:focus { border-color: #FFD700; }

.search-dropdown {
    position: absolute; top: 45px; left: 0; width: 100%;
    background: #1E1E1E; border: 1px solid #333; border-radius: 8px;
    display: none; z-index: 200; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.search-result-item {
    display: flex; justify-content: space-between; padding: 10px 15px;
    border-bottom: 1px solid #333; font-size: 0.85rem; color: #ccc;
}
.search-result-item:hover { background: #333; color: #FFD700; }

nav ul { display: flex; align-items: center; gap: 20px; list-style: none; }
nav ul li a { font-size: 0.95rem; font-weight: 500; color: #fff; }

#cart-count { 
    background: #FFD700; color: #000; border-radius: 50%; 
    padding: 2px 6px; font-size: 11px; font-weight: bold; 
    position: relative; top: -8px; right: -5px;
}

.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* =========================================
   3. SECTIONS & GRID
   ========================================= */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: #FFD700; font-size: 2.2rem; font-weight: 700; text-transform: uppercase; }

.services-grid, .shop-grid, .portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; padding: 20px 0;
}

/* --- ADDED: Desktop Definition for 2-Col Logic --- */
.mobile-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Desktop behavior */
    gap: 20px;
}

.service-card, .product-card {
    background-color: #1E1E1E; border-radius: 8px; overflow: hidden;
    transition: transform 0.3s; border: 1px solid #333;
}
.service-card:hover, .product-card:hover { transform: translateY(-5px); border-color: #FFD700; }

.service-img, .product-img {
    height: 180px; background-color: #2D2D2D; display: flex;
    align-items: center; justify-content: center; color: #FFD700; font-size: 2.5rem;
}
.service-content, .product-content { padding: 15px; }
.service-content h3, .product-content h3 { color: #FFD700; margin-bottom: 8px; font-size: 1.1rem; }
.product-price { font-size: 1.2rem; font-weight: bold; color: #fff; margin: 10px 0; }

.btn-highlight { color: #FFD700 !important; border: 1px solid #FFD700; padding: 4px 12px; border-radius: 4px; }
.btn-highlight:hover { background: #FFD700; color: #000 !important; }

/* =========================================
   4. NEW: DRAGGABLE PLAYER BUTTON
   ========================================= */
#floatingPlayBtn {
    position: fixed;
    bottom: 30px; left: 30px; /* Default Position */
    width: 60px; height: 60px;
    background: #FFD700; color: #000;
    border: none; border-radius: 50%;
    font-size: 1.5rem;
    cursor: grab; /* Shows hand icon */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    touch-action: none; /* Crucial for mobile dragging */
}
#floatingPlayBtn:active { cursor: grabbing; }
#floatingPlayBtn.playing { animation: pulse-gold 2s infinite; }

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* =========================================
   5. MOBILE RESPONSIVENESS (Font & Layout Fixes)
   ========================================= */
@media (max-width: 900px) {
    header { padding: 10px 0; }
    .header-container { padding: 0 10px; gap: 10px; }
    
    .logo h1 { display: none; }
    .logo-icon { font-size: 1.6rem; }
    #globalSearch { height: 38px; font-size: 13px; }

    /* Nav Dropdown */
    nav ul { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: #1E1E1E; flex-direction: column; padding: 0;
        border-top: 1px solid #333; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    nav ul.active { display: flex; }
    nav ul li { width: 100%; border-bottom: 1px solid #333; text-align: center; margin: 0; }
    nav ul li a { display: block; padding: 15px 0; font-size: 1rem; }
    .mobile-menu-btn { display: block; }

    /* --- FONT SIZE FIXES FOR MOBILE --- */
    /* Hero Title */
    .hero h1 { font-size: 1.8rem !important; line-height: 1.2 !important; } 
    /* Hero Text */
    .hero p { font-size: 0.95rem !important; line-height: 1.5 !important; }
    /* Section Titles */
    .section-title h2 { font-size: 1.6rem !important; }
    /* Card Titles */
    .service-content h3, .product-content h3 { font-size: 1.1rem !important; }
    /* CTA Section */
    .producer-cta h2 { font-size: 1.5rem !important; }
}

/* --- ADDED: FORCE 2 COLUMNS ON MOBILE (Your Request) --- */
@media (max-width: 768px) {
    /* Mobile Override: Force 2 columns */
    .mobile-two-col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important; /* Smaller gap for mobile */
    }

    /* Adjust cards to fit 2 columns nicely */
    .product-card .product-content {
        padding: 10px !important;
    }
    .product-card h3 {
        font-size: 0.9rem !important;
    }
    .portfolio-item {
        height: 150px !important; /* Smaller height for mobile portfolio */
    }
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background-color: #1E1E1E; padding: 15px 0; text-align: center;
    border-top: 1px solid #333; margin-top: 40px; width: 100%;
}
.footer-content { max-width: 100%; margin: 0 auto; padding: 0 15px; }
.social-icons { margin-bottom: 8px; }
.social-icons a { margin: 0 10px; color: #888; font-size: 1rem; }
.social-icons a:hover { color: #FFD700; }
.copyright { font-size: 0.8rem; color: #666; margin: 0; }
.copyright a { color: #FFD700; font-weight: 500; }

.producer-cta {
    background: #121212; padding: 60px 20px; text-align: center;
    margin-top: 40px; border-top: 2px solid #FFD700;
}
.producer-cta h2 { font-size: 2.5rem; color: #FFD700; margin-bottom: 15px; }
.producer-cta p { font-size: 1.1rem; color: #ddd; max-width: 600px; margin: 0 auto 30px; }