@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --primary: #E27D60; /* Terracotta */
    --primary-hover: #C66B50;
    --secondary: #085F63; /* Deep Teal */
    --secondary-hover: #064A4D;
    --accent: #85CDCB; /* Soft Sage */
    --accent-light: #E8F5F5;
    --bg-color: #FDF8F5; /* Cream */
    --surface: #FFFFFF;
    --text-main: #2D3A3A; /* Charcoal */
    --text-muted: #6B7B7B;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-pill: 100px;
    --shadow-sm: 0 4px 12px rgba(8, 95, 99, 0.05);
    --shadow-md: 0 8px 24px rgba(8, 95, 99, 0.08);
    --shadow-lg: 0 16px 48px rgba(8, 95, 99, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    color: var(--secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(8, 95, 99, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.logo span {
    color: var(--secondary);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 1001;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(226, 125, 96, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(226, 125, 96, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
}

/* Typography Enhancements */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Common Layouts */
.section-padding {
    padding: 80px 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background-color: var(--accent-light);
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-top: auto;
    margin-bottom: 16px;
}

/* Organic Shapes & Hero */
.hero {
    padding: 60px 0 100px;
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-pill) var(--radius-lg) var(--radius-pill);
    box-shadow: var(--shadow-lg);
}

.blob {
    position: absolute;
    z-index: -1;
    fill: var(--accent-light);
}

/* Custom organic sections */
.organic-bg {
    background-color: var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 60px;
    position: relative;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 80px 0 40px;
    margin-top: auto;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--bg-color);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: var(--accent);
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { max-width: 100%; margin: 0 auto 32px; }
    .hero-img { height: 400px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-links a:hover { padding-left: 0; }
    
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 2rem; }
    
    .organic-bg { padding: 40px 20px; border-radius: var(--radius-md); }
}

@media (max-width: 480px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-img { height: 300px; border-radius: var(--radius-md); }
}

/* Blog styles */
.blog-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.blog-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.blog-content {
    padding: 24px;
}
.blog-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.blog-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}
.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(8, 95, 99, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 125, 96, 0.2);
}

/* Cart & Checkout */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.cart-table th, .cart-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(8, 95, 99, 0.1);
    text-align: left;
}
.cart-table th {
    font-family: 'Fraunces', serif;
    color: var(--secondary);
    background: var(--accent-light);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-new { background: var(--primary); color: white; }
.badge-eco { background: var(--accent); color: var(--secondary); }

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

/* specific pet pages */
.pet-category-header {
    text-align: center;
    padding: 60px 0;
    background: var(--secondary);
    color: var(--bg-color);
    border-radius: var(--radius-lg);
    margin-top: 20px;
    margin-bottom: 60px;
}
.pet-category-header h1 {
    color: var(--bg-color);
    font-size: 3rem;
    margin-bottom: 16px;
}
.pet-category-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--accent);
}
