/* My Buddy's Books - Main Stylesheet */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #E85D75;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #E85D75;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #E85D75;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #888;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF4E6 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '📚 ✨ ❤️ 📖 💛 ⭐';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    font-size: 30px;
    opacity: 0.15;
    letter-spacing: 40px;
}

.hero h1 {
    font-size: 3rem;
    color: #E85D75;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero .tagline {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.hero .description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    margin: 10px;
    background: #E85D75;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 93, 117, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #D64E66;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 117, 0.4);
}

.btn-secondary {
    background: #6B9BD1;
    box-shadow: 0 4px 15px rgba(107, 155, 209, 0.3);
}

.btn-secondary:hover {
    background: #5A8AC0;
    box-shadow: 0 6px 20px rgba(107, 155, 209, 0.4);
}

/* Section Styling */
section {
    padding: 60px 20px;
}

section:nth-child(even) {
    background: #FAFAFA;
}

h2 {
    font-size: 2.5rem;
    color: #E85D75;
    text-align: center;
    margin-bottom: 40px;
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1.1rem;
    color: #555;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
}

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

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #E85D75 0%, #FFA5BA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

/* About Section */
.about-section {
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 1.8rem;
    color: #6B9BD1;
    margin: 30px 0 15px 0;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 40px auto;
    max-width: 1000px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #E85D75;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.step h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.step p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: #E85D75;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #6B9BD1 0%, #8BB5E3 100%);
    color: white;
    text-align: center;
}

.contact-section h2 {
    color: white;
}

.contact-form-container {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-form-container h3 {
    color: #333;
    margin-bottom: 10px;
}

.contact-form-container p {
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6B9BD1;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-info {
    margin-top: 30px;
    font-size: 1.3rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    display: inline-block;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* Shopping Cart */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #E85D75;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 93, 117, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #333;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.cart-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
}

.cart-close:hover {
    color: #333;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.cart-item-image {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E85D75 0%, #FFA5BA 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-item-option {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: bold;
    color: #E85D75;
    margin-top: 5px;
}

.cart-item-remove {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-item-remove:hover {
    background: #cc0000;
}

.cart-total {
    padding: 30px 20px 20px 20px;
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2rem;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.product-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    background: white;
    border: none;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

.product-modal-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #E85D75 0%, #FFA5BA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.gallery-thumbnail.active {
    border-color: #E85D75;
}

.gallery-thumbnail:hover {
    border-color: #6B9BD1;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-details {
    padding: 40px;
}

.product-modal-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.product-modal-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-options {
    margin-bottom: 30px;
}

.product-options label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-options select {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

.product-options select:focus {
    border-color: #E85D75;
    outline: none;
}

.product-price {
    font-size: 2rem;
    color: #E85D75;
    font-weight: bold;
    margin-bottom: 30px;
}

.product-add-to-cart {
    width: 100%;
    background: #E85D75;
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-add-to-cart:hover {
    background: #D64E66;
    transform: translateY(-2px);
}

.product-includes {
    background: #FFF8F0;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.product-includes h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.product-includes ul {
    list-style: none;
    padding: 0;
}

.product-includes li {
    padding: 8px 0;
    color: #666;
    font-size: 1rem;
}

.product-includes li::before {
    content: '✓ ';
    color: #E85D75;
    font-weight: bold;
    margin-right: 8px;
}

/* Checkout Button */
.submit-order-btn {
    width: 100%;
    background: #6B9BD1;
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-order-btn:hover {
    background: #5A8AC0;
    transform: translateY(-2px);
}

.submit-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Order Form */
.order-form {
    margin-top: 30px;
    padding: 30px;
    background: #FFF8F0;
    border-radius: 10px;
}

.order-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .features-grid,
    .product-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .cart-content,
    .product-modal-content {
        padding: 20px;
    }

    .product-modal-details {
        padding: 20px;
    }

    .cart-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
