/* 
 * Best Pet Supplies - Main Stylesheet
 * Fun but professional modern design
 */

:root {
    /* Color Palette */
    --primary-color: #fca311; /* Vibrant orange/yellow for "fun" pet vibe */
    --secondary-color: #14213d; /* Deep professional navy blue */
    --accent-color: #2a9d8f; /* Fresh teal accent */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    
    /* Typography */
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --transition: 0.3s ease-in-out;
}

/* ================= Reset & Base ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= Layout Utilities ================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.align-center { align-items: center; }
.bg-light { background-color: var(--bg-light); }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ================= Buttons and Badges ================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #e5930c;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #0f182c;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-full { width: 100%; text-align: center; }

.badge {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.badge-accent {
    background-color: var(--accent-color);
    color: white;
}

/* ================= Navigation ================= */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.cart-icon {
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* ================= Hero Section ================= */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #29385c 100%);
    color: white;
    overflow: hidden;
}
.hero::before {
    content: '🐾 🦴';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    right: -50px;
    bottom: -50px;
    transform: rotate(-15deg);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(252, 163, 17, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.highlight {
    color: var(--primary-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ================= Features Section ================= */
.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* ================= Featured Product / Placeholders ================= */
.image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.gradient-bg {
    background: linear-gradient(45deg, #a8edea 0%, #fed6e3 100%);
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
}

/* ================= Testimonials ================= */
.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.testimonial-slider::-webkit-scrollbar {
    height: 8px;
}

.testimonial-slider::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.testimonial-card {
    min-width: 350px;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    scroll-snap-align: start;
    border-top: 4px solid var(--primary-color);
}

.quote-icon {
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--bg-light);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.placeholder-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-info h4 { margin-bottom: 2px; }
.author-info span { font-size: 0.9rem; color: var(--text-light); }

/* ================= Page Headers ================= */
.page-header {
    padding: 80px 0;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}

.icehaven-bg {
    background: linear-gradient(rgba(20, 33, 61, 0.8), rgba(20, 33, 61, 0.8)), url('https://placehold.co/1200x400/2a9d8f/ffffff?text=IceHaven+Banner') no-repeat center/cover;
}

.pattern-bg {
    background: var(--secondary-color);
    position: relative;
}
.pattern-bg::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: radial-gradient(var(--text-light) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
}

.shop-bg { background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%); }
.contact-bg { background: linear-gradient(45deg, #fca311 0%, #ffb703 100%); color: var(--secondary-color); }
.contact-bg h1, .contact-bg p { color: var(--secondary-color); }

/* ================= Products Page ================= */
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.icehaven-placeholder {
    height: 250px;
    background: linear-gradient(to bottom right, #e0fbfc, #98c1d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-info { padding: 25px; }

.brand-tag {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
}

.product-desc { margin-bottom: 20px; font-size: 0.95rem; color: var(--text-light); }

/* ================= Shop Layout ================= */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.category-list li { margin-bottom: 10px; }
.category-list a {
    color: var(--text-light);
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
}
.category-list a:hover, .category-list a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.shop-controls select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
}

.shop-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.shop-card:hover { border-color: var(--primary-color); }

.placeholder-item {
    height: 180px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.shop-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.price { display: block; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; font-size: 1.2rem; }

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    margin: 0 5px;
    border-radius: 4px;
    color: var(--text-main);
}
.pagination a.active, .pagination a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* ================= Where To Buy / Locations ================= */
.store-card {
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: var(--transition);
}
.store-card:hover { border-left: 4px solid var(--accent-color); box-shadow: var(--shadow-sm); }
.store-card h3 { color: var(--accent-color); margin-bottom: 10px; }
.store-link { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: underline; }

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #e9ecef;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* ================= Contact ================= */
.info-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-item { display: flex; gap: 15px; }
.info-item h4 { margin-bottom: 2px; }

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary-color); }
label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.95rem; }

.alert { padding: 15px; border-radius: 6px; font-weight: 600; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.hidden { display: none; }

/* ================= Footer ================= */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo { color: white; margin-bottom: 20px; }
.footer-logo .logo-icon { color: var(--primary-color); }

.brand-col p { color: #a0aec0; }

.footer h4 { color: white; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #a0aec0; }
.footer ul a:hover { color: var(--primary-color); padding-left: 5px; }

.social-links { display: flex; gap: 15px; }
.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.social-link:hover { background-color: var(--primary-color); color: var(--secondary-color); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        gap: 20px;
    }
    
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* ================= Auth & Cart Forms ================= */
.form-container { max-width: 500px; margin: 0 auto; }
.auth-card { background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-md); text-align: center; }
.auth-form { margin-top: 20px; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 6px; font-family: var(--font-body); }
.btn-block { width: 100%; margin-top: 10px; }
.auth-redirect { margin-top: 20px; text-align: center; font-size: 0.95rem; }
.form-error { color: #e63946; background-color: #fdeaea; padding: 10px; border-radius: 6px; margin-bottom: 15px; font-size: 0.9rem; text-align: center; }

/* ================= Cart Layout ================= */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.cart-items { background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.cart-item:last-child { border-bottom: none; }
.cart-item-info h4 { margin-bottom: 5px; }
.cart-item-info p { color: var(--text-light); font-size: 0.9rem; }
.cart-item-price { font-weight: 700; color: var(--primary-color); }
.cart-summary { background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); height: fit-content; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; }
.summary-total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px; }
.empty-cart-msg { text-align: center; padding: 40px 0; color: var(--text-light); font-style: italic; }

@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
}

/* ================= Animations ================= */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.feature-card, .product-card, .shop-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .product-card:hover, .shop-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

