/* ========================================= */
/* 1. GLOBAL SETTINGS & TYPOGRAPHY           */
/* ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f0f4f8; 
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #4a6670;
}

/* ========================================= */
/* 2. NAVIGATION & FOOTER                    */
/* ========================================= */
.shop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: white;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.mini-logo { 
    max-width: 80px; 
    height: auto; 
}

.shop-title { 
    margin: 0; 
    font-size: 1.8rem; 
    color: #6b8ead; 
}

.trust-footer {
    margin: 40px auto; 
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.85rem;
    color: #7f8c8d;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4); 
    border-radius: 50px;
    width: fit-content;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #6b8ead;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5a7a96;
    text-decoration: underline;
}

/* ========================================= */
/* 3. UNIFIED BUTTONS                        */
/* ========================================= */
.shop-button, .mission-button, .buy-btn {
    width: 160px;             
    height: 45px;             
    display: flex;            
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    background-color: #6b8ead; 
    color: white; 
}

.shop-button:hover, .mission-button:hover, .buy-btn:hover { 
    background-color: #5a7a96; 
    transform: translateY(-2px);
}

.btn-primary, .btn-form {
    background-color: #6b8ead;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-form { width: 100%; }

.btn-primary:hover, .btn-form:hover {
    background-color: #5a7a96;
}

.btn-secondary {
    background-color: #b2bec3;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #a0adb4;
}

/* ========================================= */
/* 4. LAYOUT WRAPPERS & GRIDS                */
/* ========================================= */
.main-wrapper, .mission-page, .shop-page main {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    padding-top: 60px; 
    padding-bottom: 50px;
}

.maker-grid, .mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 30px;
}

/* Brings back the white cards for the homepage! */
.info-card, .combined-maker-box, .mission-card, .product-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #e1e8ed;
    box-sizing: border-box;
    text-align: left;
}

/* ========================================= */
/* 5. HOME PAGE                              */
/* ========================================= */
.main-logo { 
    max-width: 400px; 
    width: 100%;
    height: auto;
    margin: 40px auto 20px auto;
    display: block;
}

.slogan { 
    font-size: 1.8rem; 
    color: #6b8ead; 
    margin-bottom: 30px; 
    text-align: center; 
}

.button-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

/* ========================================= */
/* 6. SHOP & PRODUCT CARDS                   */
/* ========================================= */
.product-card-wrapper {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.placeholder-img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #f1f2f6;
    border: 1px dashed #b2bec3;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.image-placeholder span {
    color: #b2bec3;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-card-title {
    margin: 0 0 10px 0;
    color: #636e72;
    font-size: 1.1rem;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 10px 0;
}

.product-card-desc {
    color: #636e72;
    margin: 0 0 20px 0;
    font-size: 0.9rem;
}

.button-group {
    display: flex; 
    flex-direction: column; 
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

/* ========================================= */
/* 7. FLOATING CART SYSTEM                   */
/* ========================================= */
.cart-summary-box {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #6b8ead;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(107, 142, 173, 0.3);
    cursor: pointer;
}

.cart-header {
    padding: 15px 25px;
    font-weight: bold;
    margin: 0;
    color: white;
}

.cart-dropdown {
    display: none; 
    position: absolute;         
    bottom: calc(100% + 15px);  
    right: 0;                   
    background: white;
    border: 2px solid #6b8ead;
    border-radius: 20px;
    padding: 20px;
    width: 260px;               
    color: #2d3436;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    cursor: default;            
}

.cart-dropdown::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.cart-summary-box:hover .cart-dropdown,
.cart-summary-box.active .cart-dropdown {
    display: block;
}

.cart-item-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info, .cart-item-price { color: #2d3436; }
.cart-item-price { font-weight: bold; }

.cart-remove-btn {
    color: #ff7675;
    text-decoration: none;
    font-weight: bold;
    padding: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #6b8ead;
    text-align: right;
}

.checkout-inline-btn {
    background: #55efc4;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: bold;
    cursor: pointer;
}

.empty-cart-msg {
    color: #636e72;
    font-size: 0.95rem;
}

/* ========================================= */
/* 8. DESIGN STUDIO                          */
/* ========================================= */
.studio-container {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(360px, 1fr);
    gap: 20px;
    padding-top: 30px;
    max-width: 1080px;
    margin: 0 auto;
}

.preview-window {
    background: white;
    padding: 30px;
    border-radius: 30px;
    border: 3px dashed #6b8ead;
    display: flex;
    justify-content: center;
    align-self: start; 
    position: sticky;  
    top: 100px;        
    z-index: 10;       
}

.controls {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #e1e8ed;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booboo-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-blurb {
    background: #f8f9fa;
    border-left: 4px solid #6b8ead;
    border-radius: 15px;
    padding: 18px;
    margin: 0;
}

.special-request-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 15px;
    padding: 18px;
    margin: 0;
}

.stuffie-placeholder {
    width: 320px;
    height: 320px;
    background: #eee;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.8s ease;
}

.draggable-booboo {
    font-size: 60px;
    position: absolute;
    z-index: 100;
    cursor: grab;
}

#head-bandage { top: 15%; left: 50%; transform: translateX(-50%); }
#left-arm-cast { top: 45%; left: 15%; }
#right-arm-cast { top: 45%; right: 15%; }
#left-leg-cast { bottom: 15%; left: 25%; }
#right-leg-cast { bottom: 15%; right: 25%; }

/* Color Picker Dots */
.color-picker .color-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: 2px solid #ddd !important; 
    display: inline-block !important;
    transition: 0.2s;
}

.color-btn.red { background-color: #ff6b6b !important; }
.color-btn.blue { background-color: #6b8ead !important; }
.color-btn.purple { background-color: #a29bfe !important; }
.color-btn.green { background-color: #55efc4 !important; }
.color-btn:hover { transform: scale(1.2); }

/* ========================================= */
/* 9. CONTACT & COMING SOON PAGES            */
/* ========================================= */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-card {
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(91, 112, 141, 0.16);
    text-align: center;
}

.contact-card h2 {
    color: #2f4858;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-intro {
    color: #4d6371;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 15px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.contact-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

/* Coming Soon */
.coming-soon-page .coming-soon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 720px;
    margin: 80px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(91, 112, 141, 0.16);
}

/* ========================================= */
/* 10. MASTER RESPONSIVE REPAIR (MOBILE)     */
/* ========================================= */

/* Table/Small Desktop (Max 1000px) */
@media (max-width: 1000px) {
    .maker-grid, .mission-grid, .product-grid { 
        flex-direction: column; 
        grid-template-columns: 1fr; 
    }
    
    .studio-container {
        display: flex;
        flex-direction: column;
        padding-top: 20px;
        gap: 20px;
    }
    
    .preview-window { position: relative !important; top: 0 !important; }
}

/* Phones (Max 768px) */
@media (max-width: 768px) {
    
    /* Global Fixes */
    .main-wrapper, .contact-container {
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; 
    }

    input, textarea, select {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Navigation Stacking */
    nav.shop-nav {
        flex-direction: column !important;
        height: auto !important;
        align-items: center !important;
        padding: 15px 0 !important;
        gap: 10px !important;
    }

    .nav-left, .nav-middle, .nav-right {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* Home Hero Button Stacker */
    .button-row {
        flex-direction: column !important;
        align-items: center !important;
    }

    .button-row a {
        width: 100% !important;
        max-width: 280px !important; 
        margin: 0 auto !important;
    }

    /* Contact Success Button Stacker */
    .contact-card, .contact-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px !important;
    }

    .contact-card a, .contact-info + a, .contact-info + div {
        width: 100% !important;
        max-width: 280px !important;
    }

    /* Our Story Bento Box Mobile Fixes */
    .intro-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px 20px !important;
    }
    
    .dino-row {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .dino-image-wrapper {
        margin-top: 25px;
    }

    .mission-grid {
        grid-template-columns: 1fr !important; 
    }
    
    .story-card, .impact-banner, .mission-card {
        padding: 30px 20px !important;
    }
}