/* GALOPI PRO CSS V3 - Premium Minimalist Scaling */
:root {
    --bg-main: #f5f5f7;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --border: #d2d2d7;
    --card-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg-main); color: var(--text-main); margin: 0; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: 'Outfit', -apple-system, sans-serif; margin: 0; }

/* Header - Apple/Premium Style */
.site-header { 
    background: rgba(255,255,255,0.72); 
    backdrop-filter: saturate(180%) blur(20px); 
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    position: sticky; top: 0; z-index: 9999; 
    padding: 0; 
}
.header-container { 
    height: 56px; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 22px; 
}
.site-branding { flex-shrink: 0; display: flex; align-items: center; }
/* VITAL LOGO SCALING FIX */
.site-branding img.custom-logo, .site-branding img { 
    max-height: 28px !important; 
    width: auto !important; 
    display: block; 
    object-fit: contain;
}
.site-title { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.5px; color: #000; }

.main-navigation ul { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.main-navigation a { color: rgba(0,0,0,0.8); font-size: 12px; font-weight: 500; letter-spacing: -0.01em; transition: color 0.2s ease; }
.main-navigation a:hover { color: #000; }

/* Cart Nav */
.cart-container-nav { position: relative; display: flex; align-items: center; height: 100%; }
.cart-customlocation {
    font-size: 12px; font-weight: 500; color: rgba(0,0,0,0.8) !important;
    display: flex; align-items: center; gap: 6px; padding: 6px 0;
}
.cart-customlocation:hover { color: #000 !important; }
.cart-count { background: #000; color: #fff; border-radius: 10px; padding: 2px 7px; font-size: 11px; font-weight: 600; }

/* Hover Dropdown Mini Cart */
.header-mini-cart-dropdown {
    position: absolute; right: -10px; top: 56px; width: 320px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    padding: 20px; border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98); 
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.05);
}
.cart-container-nav:hover .header-mini-cart-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Shop Hero & Search */
.shop-hero-section {
    background: #fff;
    padding: 60px 20px 50px;
    text-align: center;
}
.shop-hero-section h2 { font-size: 40px; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 30px; color: #1d1d1f; }
.shop-search-wrapper { max-width: 580px; margin: 0 auto; position: relative; }
.shop-search-wrapper form { display: flex; background: #f5f5f7; border-radius: 12px; overflow: hidden; }
.shop-search-wrapper input[type="search"] { 
    flex: 1; border: none; background: transparent; padding: 18px 24px; 
    font-size: 17px; font-family: inherit; outline: none; color: #1d1d1f;
}
.shop-search-wrapper input[type="search"]::placeholder { color: #86868b; }
.shop-search-wrapper button { 
    background: transparent; color: var(--primary); border: none; 
    padding: 0 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.shop-search-wrapper button:hover { opacity: 0.8; }

/* Categories Grid */
.shop-top-categories { margin-top: 60px; }
.shop-top-categories h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; color: #1d1d1f; margin-bottom: 24px; }
.categories-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
    max-width: 1000px; margin: 0 auto;
}
.cat-card {
    background: transparent;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    transition: transform 0.2s ease; width: 110px;
}
.cat-card:hover { transform: scale(1.05); }
.cat-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06)); }
.cat-card span { font-weight: 500; font-size: 13px; color: #1d1d1f; text-align: center; line-height: 1.2; }

/* Grid of Products */
.site-main .content-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; }
ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; gap: 24px !important; margin-top: 0 !important; }
ul.products li.product {
    background: #fff !important; border-radius: 18px !important; padding: 20px !important; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    text-align: center !important; 
    transition: box-shadow 0.3s ease, transform 0.3s ease !important; 
    border: none !important; margin: 0 !important;
}
ul.products li.product:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important; }
ul.products li.product img { width: 100% !important; border-radius: 14px !important; margin-bottom: 16px !important; }
ul.products li.product h2.woocommerce-loop-product__title { 
    font-size: 15px !important; font-weight: 500 !important; color: #1d1d1f !important; 
    height: 40px; overflow: hidden; margin-bottom: 8px; line-height: 1.3 !important;
}
ul.products li.product .price { color: #1d1d1f !important; font-weight: 600 !important; font-size: 17px !important; margin-bottom: 16px !important; display: block; }

/* Add To Cart Button */
ul.products li.product .button {
    display: inline-block !important; width: auto !important; background: #f5f5f7 !important; color: #1d1d1f !important;
    font-weight: 500 !important; padding: 10px 20px !important; border-radius: 100px !important; border: none !important;
    font-size: 13px !important; transition: all 0.2s ease !important;
}
ul.products li.product .button:hover { background: #000 !important; color: #fff !important; }
