/* 
   UniqueFinds Store - Professional HD Stylesheet
   Color Palette: 
   - Primary: #e94560 (Crimson)
   - Secondary: #1a1a2e (Deep Navy)
   - Background: #f8fafc (Light Slate)
   - Text: #0f172a (Dark Slate)
*/

:root {
    --primary: #e94560;
    --primary-hover: #c73652;
    --secondary: #1a1a2e;
    --bg: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; color: var(--text); }
a { text-decoration: none; color: inherit; transition: all 0.2s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.2s; border: none; gap: 8px; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* Hero Section - FIXED VISIBILITY & ALIGNMENT */
.hero-section { 
    position: relative;
    height: 600px; 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white);
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.hero-content { 
    position: relative;
    z-index: 2;
    max-width: 900px; 
    padding: 0 24px;
}

.hero-content h1 { 
    font-size: 64px; 
    font-weight: 900; 
    margin-bottom: 24px; 
    letter-spacing: -2px;
    color: #ffffff; /* Explicitly white */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 span { 
    color: var(--primary); 
    background: linear-gradient(to right, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p { 
    font-size: 20px; 
    color: rgba(255, 255, 255, 0.9); /* High contrast */
    margin-bottom: 40px; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto;
    font-weight: 500;
}

/* Category Cards */
.cat-section { margin-bottom: 80px; }
.cat-section-title { font-size: 28px; font-weight: 800; margin-bottom: 30px; display: flex; align-items: center; gap: 20px; }
.cat-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.subcat-card { background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); transition: all 0.3s; box-shadow: var(--shadow); }
.subcat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.subcat-card-img { height: 220px; overflow: hidden; background: #f1f5f9; }
.subcat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.subcat-card:hover .subcat-card-img img { transform: scale(1.1); }
.subcat-card-body { padding: 24px; }
.subcat-card-body h4 { font-size: 20px; margin-bottom: 12px; }
.subcat-items { display: flex; flex-wrap: wrap; gap: 8px; }
.subcat-item-tag { font-size: 12px; background: #f1f5f9; color: var(--text-muted); padding: 5px 12px; border-radius: 20px; font-weight: 600; }

/* Product Cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); transition: all 0.3s; box-shadow: var(--shadow); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-image-wrapper { aspect-ratio: 1; overflow: hidden; background: #f8fafc; position: relative; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-info { padding: 20px; }
.product-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; height: 48px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.product-actions { padding: 0 20px 20px; display: flex; gap: 10px; }

/* Footer */
.footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding: 80px 0 40px; margin-top: 100px; }
.footer h4 { color: var(--white); margin-bottom: 25px; font-size: 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; }
.footer-links a { display: block; margin-bottom: 12px; color: inherit; font-size: 15px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero-content h1 { font-size: 48px; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 36px; }
}
