/* CSS Variables & Reset */
:root {
    --brand-pink: #ff66c4;
    --brand-yellow: #fef5ac;
    --brand-light-pink: #ffb7bc;
    --brand-dark: #373a41;
    --brand-white: #ffffff;

    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --container-width: 1200px;
    --gutter: 20px;
}

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

body {
    font-family: var(--font-body);
    color: var(--brand-dark);
    background-color: var(--brand-white);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Typography Tools */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--brand-pink);
    text-shadow: 2px 2px 0px var(--brand-yellow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--brand-pink);
    color: white;
    box-shadow: 0 4px 0 #d955a7;
    /* Darker pink shadow */
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: var(--brand-pink);
}

.logo-img {
    height: 300px;
    width: auto;
    display: block;
}

.cart-btn {
    background: var(--brand-yellow);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: transform 0.2s;
}

.cart-btn:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fff0f5 0%, #fff 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--brand-pink);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #666;
}

/* Shop Section */
.shop-section {
    padding: 4rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-yellow);
}

.product-img-wrapper {
    height: 250px;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.product-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--brand-pink);
    display: block;
    margin-bottom: 1rem;
}

/* Newsletter Card */
.newsletter-card {
    background-color: var(--brand-light-pink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.newsletter-card h3 {
    margin-bottom: 1rem;
    color: white;
}

.newsletter-form input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
    width: 100%;
}

/* About Section */
.about-section {
    background-color: var(--brand-yellow);
    padding: 4rem 0;
}

.safety-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.safety-box h3 {
    margin-bottom: 1rem;
}

.safety-box ul {
    list-style-position: inside;
}

.safety-box li {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item h3 {
    color: var(--brand-pink);
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--brand-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity 0.3s;
    visibility: visible;
}

.cart-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cart-container {
    width: 100%;
    max-width: 400px;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-overlay.hidden .cart-container {
    transform: translateX(100%);
}

.cart-header {
    background: var(--brand-pink);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    font-size: 2rem;
    color: white;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.cart-item-price {
    color: var(--brand-pink);
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.remove-item {
    font-size: 0.8rem;
    color: #999;
    margin-left: auto;
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}