@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --bg-pink: #fce4ec; --soft-pink: #f8bbd0; --deep-pink: #ff85a2; --dark-pink: #f06292;
    --text-dark: #5a4a4d; --nav-height: 80px;
}

/* --- CORE & NAV (DESKTOP) --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg-pink); color: var(--text-dark); padding-top: var(--nav-height); overflow-x: hidden; }

.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 0 5%;
    height: var(--nav-height); background: rgba(255,255,255,0.9); backdrop-filter: blur(15px);
    position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--soft-pink);
}
#company-name-trigger { font-family: 'Dancing Script', cursive; color: var(--dark-pink); font-size: 1.8rem; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a { text-decoration: none; color: var(--text-dark); margin-left: 25px; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.nav-shop-link { background: var(--deep-pink); color: white !important; padding: 12px 28px; border-radius: 50px; }
body.page-shop .nav-shop-link.hide-on-shop-page { display: none !important; }

/* Hamburger - hidden on desktop */
.nav-toggle { display: none; background: none; border: none; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark-pink); border-radius: 1px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --- HERO SECTION (DESKTOP) --- */
.hero { height: 85vh; display: flex; align-items: center; justify-content: center; }
.hero-mobile { display: none; }
.hero-layout { display: flex; align-items: center; justify-content: center; gap: 30px; }
.hero-slider { width: 300px; height: 450px; border-radius: 20px; overflow: hidden; background: white; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.center-focus { width: 380px; height: 500px; border: 2px solid var(--soft-pink); }
.slider-track { display: flex; flex-direction: column; transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
.slide-item { width: 100%; height: 450px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.center-focus .slide-item { height: 500px; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }
.mobile-only { display: none; }
.text-slide { background: white; flex-direction: column; padding: 20px; text-align: center; }

/* --- SIDEBAR & OVERLAYS (RESTORED) --- */
.sidebar { position: fixed; top: 0; right: -450px; width: 350px; height: 100vh; background: white; z-index: 3000; transition: 0.5s ease; padding: 60px; border-left: 1px solid var(--soft-pink); }
.sidebar.active { right: 0; }
.sidebar .contact-section p { margin-bottom: 10px; }
.sidebar .contact-section a { color: var(--dark-pink); text-decoration: none; }
.sidebar .contact-section a:hover { text-decoration: underline; }
.sidebar-hr { border: 0; border-top: 1px solid var(--soft-pink); margin: 20px 0; }
.sidebar-social-title { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-dark); }
.sidebar-social-list { list-style: none; padding: 0; line-height: 2; }
.sidebar-social-list a { color: var(--dark-pink); text-decoration: none; }
.sidebar-social-list a:hover { text-decoration: underline; }
.full-overlay { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85%; max-width: 500px; background: white; padding: 40px; border-radius: 25px; z-index: 4000; box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5); }
/* About overlay: centered popup with X */
.about-overlay { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); padding: 20px; }
.about-overlay[style*="flex"] { display: flex !important; }
.about-overlay-card { position: relative; max-width: 560px; width: 100%; background: white; border-radius: 24px; padding: 40px 36px 36px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); border: 1px solid var(--soft-pink); }
.about-overlay-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: none; background: none; font-size: 2rem; line-height: 1; color: var(--dark-pink); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent; }
.about-overlay-close:hover { background: var(--bg-pink); color: var(--deep-pink); }
.about-overlay-title { font-size: 2.2rem; margin-bottom: 20px; text-align: center; }
.about-overlay-body { line-height: 1.75; font-size: 1rem; color: var(--text-dark); text-align: center; }
.about-overlay-body p { margin-bottom: 16px; }
.about-overlay-body p:last-child { margin-bottom: 0; }
.about-overlay-quote { font-style: italic; color: var(--dark-pink); font-weight: 600; font-size: 1.15rem; margin-top: 24px !important; }

/* Newsletter / email signup overlay (after ~10s on site) */
.newsletter-overlay { display: none; position: fixed; inset: 0; z-index: 9998; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); padding: 20px; }
.newsletter-overlay.show { display: flex !important; }
.newsletter-overlay-card { position: relative; max-width: 520px; width: 100%; background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.2); border: 1px solid var(--soft-pink); }
.newsletter-overlay-close { position: absolute; top: 12px; right: 16px; z-index: 2; }
.newsletter-overlay-inner { display: flex; flex-wrap: wrap; }
.newsletter-overlay-image { width: 100%; max-height: 200px; overflow: hidden; background: var(--bg-pink); }
.newsletter-overlay-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.newsletter-overlay-form-wrap { padding: 28px 24px 24px; width: 100%; }
.newsletter-overlay-title { font-size: 1.8rem; margin-bottom: 10px; }
.newsletter-overlay-text { font-size: 0.95rem; color: var(--text-dark); line-height: 1.5; margin-bottom: 20px; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form input { padding: 12px 16px; border: 1px solid var(--soft-pink); border-radius: 12px; font-family: inherit; font-size: 0.95rem; }
.newsletter-form input:focus { outline: none; border-color: var(--dark-pink); }
.newsletter-form button { padding: 12px 20px; cursor: pointer; }
.newsletter-success { color: var(--dark-pink); font-weight: 600; margin: 0; }
@media (min-width: 500px) {
    .newsletter-overlay-image { width: 42%; max-height: none; min-height: 280px; }
    .newsletter-overlay-form-wrap { width: 58%; padding: 32px 28px 28px; }
}

.close-btn { cursor: pointer; float: right; font-size: 1.5rem; color: var(--dark-pink); }
.barbie-font-style { font-family: 'Dancing Script', cursive; color: var(--dark-pink); font-size: 3rem !important; }
.barbie-btn-style { background: var(--dark-pink); color: white; padding: 10px 25px; border-radius: 50px; text-decoration: none; margin-top: 15px; display: inline-block; }

/* --- SHOP GRID --- */
.shop-container { max-width: 1200px; margin: auto; padding: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: white; padding: 20px; border-radius: 20px; text-align: center; border: 1px solid var(--soft-pink); }
.main-img-wrap { width: 100%; height: 250px; overflow: hidden; border-radius: 15px; margin-bottom: 15px; }
.shop-main-img { width: 100%; height: 100%; object-fit: cover; }
.product-card-slider { position: relative; touch-action: manipulation; }
.card-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.92); border: 2px solid var(--soft-pink); color: var(--dark-pink); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s, opacity 0.2s; -webkit-tap-highlight-color: transparent; }
.card-arrow:hover { background: var(--dark-pink); color: white; border-color: var(--dark-pink); }
.card-arrow.prev { left: 10px; }
.card-arrow.next { right: 10px; }
.card-arrow.hidden { opacity: 0; pointer-events: none; }
.quantity-selector { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 10px; }
.quantity-selector button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--soft-pink); background: white; color: var(--dark-pink); font-size: 1.2rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent; }
.quantity-selector button:hover { background: var(--dark-pink); color: white; border-color: var(--dark-pink); }
.quantity-selector button:disabled { opacity: 0.5; cursor: not-allowed; }
.quantity-selector span { min-width: 36px; text-align: center; font-weight: 700; font-size: 1rem; }
.product-size-wrap { margin-bottom: 10px; text-align: left; }
.product-size-wrap label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.product-size-select { width: 100%; padding: 8px 12px; border: 1px solid var(--soft-pink); border-radius: 10px; font-family: inherit; font-size: 0.9rem; color: var(--text-dark); }
.detail-size-wrap { margin-bottom: 16px; }
.detail-size-wrap .product-size-select { padding: 10px 14px; font-size: 1rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; justify-content: center; align-items: center; }
.view-btn { background: var(--dark-pink); color: white; padding: 10px 20px; border-radius: 50px; text-decoration: none; display: inline-block; font-size: 0.85rem; font-weight: 600; text-align: center; flex: 1; min-width: 100px; }
.add-to-cart-btn { background: white; color: var(--dark-pink); padding: 10px 20px; border-radius: 50px; border: 2px solid var(--dark-pink); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; flex: 1; min-width: 100px; }
.add-to-cart-btn:hover { background: var(--dark-pink); color: white; }
.nav-bag-link { display: flex; align-items: center; margin-left: 0; color: var(--dark-pink) !important; position: relative; }
.nav-bag-link svg { width: 24px; height: 24px; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--dark-pink); color: white; font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-bag-link.has-items { animation: bag-jump 3s ease-in-out infinite; }
@keyframes bag-jump { 0%, 90%, 100% { transform: translateY(0); } 92%, 96% { transform: translateY(-5px); } 94% { transform: translateY(0); } }

/* --- NEW: PRODUCT DETAIL "SIDE-SLIDE" GALLERY --- */
.detail-container { max-width: 1100px; margin: 50px auto; padding: 0 20px; }
.detail-layout { display: flex; gap: 50px; align-items: flex-start; }
.gallery-wrapper { flex: 1; min-width: 0; position: relative; }

.product-slider-wrap { position: relative; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 2px solid var(--soft-pink); color: var(--dark-pink); font-size: 2rem; line-height: 1; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; -webkit-tap-highlight-color: transparent; }
.slider-arrow:hover { background: var(--dark-pink); color: white; border-color: var(--dark-pink); }
.slider-arrow-prev { left: 16px; }
.slider-arrow-next { right: 16px; }

/* THE FIX: Controlled gallery sizing */
.main-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 25px;
    background: white;
    border: 1px solid var(--soft-pink);
}
.main-slider-container::-webkit-scrollbar { display: none; }
.snap-slide { flex: 0 0 100%; scroll-snap-align: start; }
.snap-slide img { width: 100%; height: 550px; object-fit: cover; display: block; }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--soft-pink); cursor: pointer; transition: 0.3s; }
.dot:hover { background: var(--deep-pink); }

/* --- PRODUCT DETAIL --- */
.detail-info-section { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.detail-back { display: inline-block; color: var(--dark-pink); text-decoration: none; font-weight: 600; font-size: 0.85rem; margin-bottom: 16px; transition: color 0.2s; flex-shrink: 0; }
.detail-back:hover { color: var(--deep-pink); }
.breadcrumb { display: inline-block; font-size: 0.8rem; color: var(--text-dark); opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; flex-shrink: 0; }
.price-tag { font-size: 1.6rem; font-weight: 700; color: var(--dark-pink); margin-bottom: 20px; flex-shrink: 0; }
.description-block { margin-bottom: 16px; flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.description-block .description-text { line-height: 1.7; color: var(--text-dark); }
.description-block .description-text.truncated { max-height: 6.8em; overflow: hidden; }
.description-inner.description-scroll-wrap { max-height: 220px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; margin-bottom: 8px; }
.detail-actions-wrap { flex-shrink: 0; margin-top: auto; padding-top: 8px; }
.detail-placeholder { aspect-ratio: 1; background: var(--soft-pink); border-radius: 25px; display: flex; align-items: center; justify-content: center; color: var(--text-dark); opacity: 0.6; font-size: 1rem; }
.quantity-selector-large button { width: 44px; height: 44px; font-size: 1.4rem; }
.quantity-selector-large span { min-width: 44px; font-size: 1.2rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.detail-actions-wrap .quantity-selector-large { margin-bottom: 12px; }
.detail-actions-wrap .detail-actions { margin-top: 12px; }
.add-to-cart-btn-large { padding: 14px 32px; font-size: 1rem; background: var(--dark-pink); color: white; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.add-to-cart-btn-large:hover { background: var(--deep-pink); transform: translateY(-2px); }
.view-cart-link { display: inline-block; padding: 14px 28px; text-align: center; }
.slider-dots .dot.active { background: var(--dark-pink); transform: scale(1.2); }

.product-title-neat {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    margin-bottom: 10px;
    font-size: 2.8rem !important;
}
.description-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    color: #666;
}
#read-more-btn { background: none; border: none; color: var(--dark-pink); font-weight: 700; cursor: pointer; margin-top: 8px; font-size: 0.9rem; }

/* --- REVIEWS SECTION --- */
.reviews-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--soft-pink); }
.reviews-heading { font-size: 1.6rem; margin-bottom: 16px; }
.reviews-list { list-style: none; padding: 0; margin: 0 0 20px; }
.review-item { background: var(--bg-pink); padding: 14px 18px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--soft-pink); }
.review-author { font-weight: 700; color: var(--dark-pink); font-size: 0.9rem; }
.review-date { font-size: 0.8rem; color: var(--text-dark); opacity: 0.8; margin-left: 10px; }
.review-comment { margin: 8px 0 0; line-height: 1.5; font-size: 0.95rem; color: var(--text-dark); }
.reviews-empty { color: var(--text-dark); opacity: 0.85; font-size: 0.95rem; margin-bottom: 16px; }
.review-form-wrap { margin-top: 16px; }
.review-form-wrap label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-dark); }
.review-form-wrap textarea { width: 100%; padding: 12px; border: 1px solid var(--soft-pink); border-radius: 12px; font-family: inherit; font-size: 0.95rem; resize: vertical; margin-bottom: 12px; }
.reviews-login-prompt { font-size: 0.9rem; color: var(--text-dark); margin-top: 12px; }
.reviews-login-prompt a { color: var(--dark-pink); font-weight: 600; text-decoration: none; }
.reviews-login-prompt a:hover { text-decoration: underline; }

/* --- PRODUCT VIDEOS --- */
.videos-section { margin-top: 24px; }
.video-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.product-video { width: 220px; height: 360px; border-radius: 14px; border: 1px solid var(--soft-pink); background: #000; scroll-snap-align: start; flex-shrink: 0; }
@media (max-width: 768px) { .product-video { width: 180px; height: 320px; } }

.delivery-card {
    margin: 24px 0; padding: 20px; background: white;
    border: 1px solid var(--soft-pink); border-radius: 16px;
}
.delivery-card label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; color: var(--text-dark); }
.delivery-card select { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--soft-pink); font-family: inherit; font-size: 0.95rem; color: var(--text-dark); }

/* --- ADMIN DASHBOARD --- */
.admin-container { max-width: 1200px; margin: 40px auto; padding: 0 24px; display: flex; flex-direction: column; gap: 36px; }
.admin-header { text-align: center; margin-bottom: 8px; }
.admin-header h1 { font-family: 'Dancing Script', cursive; color: var(--dark-pink); font-size: 2.5rem; }
.admin-header p { color: var(--text-dark); font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }
.admin-card { background: white; border-radius: 20px; padding: 32px; border: 1px solid var(--soft-pink); box-shadow: 0 4px 20px rgba(240, 98, 146, 0.06); }
.admin-card h2 { font-family: 'Dancing Script', cursive; color: var(--dark-pink); font-size: 1.85rem; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--soft-pink); }
.admin-form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-weight: 600; font-size: 0.85rem; color: var(--text-dark); }
.input-group input, .input-group textarea { padding: 12px 16px; border: 1px solid var(--soft-pink); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text-dark); transition: border-color 0.2s; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--dark-pink); }
.input-group textarea { resize: vertical; min-height: 80px; }
.admin-file-zone { border: 2px dashed var(--soft-pink); border-radius: 16px; padding: 24px; text-align: center; background: var(--bg-pink); transition: border-color 0.2s, background 0.2s; }
.admin-file-zone:hover, .admin-file-zone.has-files { border-color: var(--dark-pink); background: rgba(240, 98, 146, 0.06); }
.admin-file-zone input[type="file"] { display: block; margin: 0 auto 8px; font-size: 0.85rem; cursor: pointer; }
.admin-file-zone .hint { font-size: 0.8rem; color: var(--text-dark); opacity: 0.7; }
.admin-btn { background: var(--dark-pink); color: white; padding: 14px 32px; border: none; border-radius: 50px; font-family: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.2s, transform 0.15s; align-self: flex-start; }
.admin-btn:hover { background: var(--deep-pink); transform: translateY(-1px); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-table th { border-bottom: 2px solid var(--soft-pink); padding: 14px 16px; text-align: left; color: var(--dark-pink); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(248, 187, 208, 0.4); font-size: 0.9rem; }
.admin-table tr:hover td { background: rgba(252, 228, 236, 0.3); }
.admin-table select { padding: 8px 12px; border: 1px solid var(--soft-pink); border-radius: 10px; font-family: inherit; font-size: 0.85rem; cursor: pointer; }
.status-pill { padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.status-pill.paid { background: rgba(240, 98, 146, 0.2); color: var(--dark-pink); }
.status-pill.shipped { background: rgba(100, 181, 246, 0.3); color: #1565c0; }
.status-pill.delivered { background: rgba(129, 199, 132, 0.35); color: #2e7d32; }
.status-pill.refunded { background: rgba(255, 152, 0, 0.3); color: #e65100; }
.status-pill.cancelled { background: rgba(244, 67, 54, 0.2); color: #c62828; }
.admin-section-hint { font-size: 0.85rem; color: var(--text-dark); opacity: 0.85; margin: -8px 0 16px; }
.admin-customers-table td a { color: var(--dark-pink); text-decoration: none; }
.admin-customers-table td a:hover { text-decoration: underline; }
.admin-mini-btn { background: rgba(240, 98, 146, 0.12); border: 1px solid var(--soft-pink); color: var(--dark-pink); padding: 8px 12px; border-radius: 10px; font-family: inherit; font-weight: 700; font-size: 0.75rem; cursor: pointer; margin: 8px 0; width: 100%; }
.admin-mini-btn:hover { background: rgba(240, 98, 146, 0.2); }
.admin-edit-wrap { padding: 14px; border-top: 1px solid var(--soft-pink); background: rgba(252, 228, 236, 0.35); }
.admin-edit-form { display: flex; flex-direction: column; gap: 14px; }
.admin-edit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-edit-actions .admin-btn { flex: 1; }
.admin-edit-actions .add-image-btn { flex: 1; margin-top: 0; }
.admin-media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.admin-media-item { display: flex; flex-direction: column; gap: 8px; background: white; border: 1px solid var(--soft-pink); border-radius: 12px; padding: 10px; }
.admin-media-item img { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; }
.admin-media-item video { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; background: #000; }
.admin-media-item span { font-size: 0.8rem; color: var(--text-dark); }
@media (max-width: 768px) { .admin-media-grid { grid-template-columns: 1fr; } }
.admin-inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.inventory-item { background: white; border: 1px solid var(--soft-pink); border-radius: 16px; overflow: hidden; transition: box-shadow 0.2s; }
.inventory-item:hover { box-shadow: 0 6px 20px rgba(240, 98, 146, 0.12); }
.inventory-img-wrap { position: relative; height: 160px; overflow: hidden; }
.inventory-item .inventory-main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-count-badge { position: absolute; top: 8px; right: 8px; background: var(--dark-pink); color: white; font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 10px; z-index: 2; }
.inv-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 2px solid var(--soft-pink); color: var(--dark-pink); font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; -webkit-tap-highlight-color: transparent; }
.inv-slider-arrow:hover { background: var(--dark-pink); color: white; border-color: var(--dark-pink); }
.inv-prev { left: 6px; }
.inv-next { right: 6px; }
.file-input-row { margin-bottom: 8px; }
.file-input-row input { display: block; margin: 0 auto; }
.add-image-btn { background: none; border: 2px dashed var(--soft-pink); color: var(--dark-pink); padding: 10px 20px; border-radius: 12px; font-family: inherit; font-weight: 600; cursor: pointer; margin-top: 8px; transition: background 0.2s, border-color 0.2s; }
.add-image-btn:hover { background: var(--bg-pink); border-color: var(--dark-pink); }
.admin-size-options { margin-top: 8px; }
.size-checkbox-group { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.size-cb { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.size-cb input { margin: 0; }
.size-price-grid { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.size-row { display: grid; grid-template-columns: 22px 70px 1fr; align-items: center; gap: 12px; cursor: pointer; }
.size-row input[type="checkbox"] { margin: 0; }
.size-label { font-weight: 600; color: var(--text-dark); }
.size-price-input { width: 100%; padding: 10px 12px; border: 1px solid var(--soft-pink); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text-dark); }
.size-price-input:disabled { opacity: 0.6; background: #fafafa; }
.item-details { padding: 14px; text-align: center; }
.item-details p { font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; line-height: 1.3; }
.inventory-item select { width: 100%; padding: 8px 10px; border: 1px solid var(--soft-pink); border-radius: 10px; font-size: 0.8rem; cursor: pointer; margin-bottom: 8px; }
.delete-link { color: var(--deep-pink); text-decoration: none; font-size: 0.75rem; font-weight: 600; transition: color 0.2s; }
.delete-link:hover { color: #c62828; }
.admin-empty { text-align: center; padding: 40px 20px; color: var(--text-dark); opacity: 0.7; font-size: 0.95rem; }
.admin-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--soft-pink); }

/* --- AUTH PAGES (signup / login) --- */
.auth-page { max-width: 440px; margin: 60px auto; padding: 0 20px; }
.auth-card { background: white; border-radius: 20px; padding: 36px; border: 1px solid var(--soft-pink); box-shadow: 0 4px 20px rgba(240, 98, 146, 0.08); }
.auth-title { font-size: 2rem; margin-bottom: 8px; text-align: center; }
.auth-subtitle { text-align: center; font-size: 0.9rem; color: var(--text-dark); opacity: 0.9; margin-bottom: 24px; }
.auth-error { background: rgba(255, 133, 162, 0.15); color: var(--deep-pink); padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 20px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-btn { width: 100%; text-align: center; margin-top: 8px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-dark); }
.auth-footer a { color: var(--dark-pink); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* --- CART --- */
.cart-container { max-width: 700px; margin: 50px auto; padding: 0 24px; }
@media (max-width: 768px) {
    .cart-container { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
}
.cart-title { text-align: center; margin-bottom: 32px; font-size: 2.5rem; }
.cart-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.cart-item { display: flex; gap: 20px; background: white; padding: 20px; border-radius: 20px; border: 1px solid var(--soft-pink); align-items: flex-start; }
.cart-item-img { width: 100px; height: 100px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--bg-pink); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cart-item-price { font-size: 0.9rem; color: var(--text-dark); opacity: 0.9; margin-bottom: 4px; }
.cart-item-subtotal { font-weight: 700; color: var(--dark-pink); margin-bottom: 10px; }
.cart-remove-btn { background: none; border: none; color: var(--deep-pink); font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 0; }
.cart-remove-btn:hover { text-decoration: underline; }
.cart-checkout-block { background: white; padding: 28px; border-radius: 20px; border: 1px solid var(--soft-pink); }
.cart-subtotal { font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; }
.cart-total { font-size: 1.5rem; font-weight: 700; color: var(--dark-pink); margin-bottom: 6px; }
.cart-usd-note { font-size: 1rem; color: var(--text-dark); margin-bottom: 6px; }
.cart-usd-note strong { color: var(--dark-pink); }
.cart-delivery-note { font-size: 0.85rem; color: var(--text-dark); opacity: 0.85; margin-bottom: 20px; }
.admin-order-items { max-width: 280px; word-break: break-word; }
.cart-delivery { margin-bottom: 20px; }
.cart-delivery label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-dark); }
.cart-delivery select { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--soft-pink); font-family: inherit; font-size: 0.95rem; }
.cart-continue { display: inline-block; margin-top: 20px; color: var(--dark-pink); font-weight: 600; text-decoration: none; }
.cart-continue:hover { text-decoration: underline; }
.cart-empty { text-align: center; padding: 60px 20px; background: white; border-radius: 20px; border: 1px solid var(--soft-pink); }
.cart-empty p { margin-bottom: 20px; font-size: 1.1rem; }

/* --- ADD TO CART TOAST --- */
.add-to-cart-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: white; padding: 18px 28px; border-radius: 50px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 2px solid var(--soft-pink); z-index: 5000; display: flex; align-items: center; gap: 12px; opacity: 0; visibility: hidden; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; }
.add-to-cart-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.add-to-cart-toast span { font-weight: 600; color: var(--text-dark); }
.add-to-cart-toast a { color: var(--dark-pink); font-weight: 700; text-decoration: none; }
.add-to-cart-toast a:hover { text-decoration: underline; }

/* --- CLAP POPUP (add to cart) --- */
.clap-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 6000; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.clap-popup.show { opacity: 1; }
.clap-popup.done { opacity: 0; transition: opacity 0.4s; }
.clap-emoji { font-size: 4rem; display: block; transform: scale(1); transition: transform 0.15s ease-out; }
.clap-popup.clap .clap-emoji { transform: scale(1.35); }

/* --- MOBILE RESPONSIVENESS (< 768px) --- */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    body { padding-top: 64px; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
    .navbar { padding-left: max(5%, env(safe-area-inset-left)); padding-right: max(5%, env(safe-area-inset-right)); }

    /* Navbar actions (Shop Now + bag always visible) */
    .nav-actions { gap: 10px; }
    .nav-actions .nav-shop-link { padding: 10px 16px; font-size: 0.75rem; }
    .nav-actions .nav-bag-link svg { width: 22px; height: 22px; }

    /* Hamburger visible, nav links in dropdown */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 64px; left: 0; right: 0; background: rgba(255,255,255,0.98);
        flex-direction: column; align-items: stretch; padding: 20px; gap: 0; margin: 0;
        border-bottom: 1px solid var(--soft-pink); box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: max-height 0.3s, opacity 0.3s;
        z-index: 999;
    }
    .nav-links.open { max-height: 320px; opacity: 1; pointer-events: auto; }
    .nav-links a { margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(248,187,208,0.5); font-size: 0.95rem; }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .nav-shop-link { text-align: center; margin-top: 8px; }

    /* Hero / Index — desktop hero hidden on mobile; mobile hero shown */
    .hero.hero-desktop { display: none !important; }
    .hero-mobile { display: block !important; }
    .hero-mobile { min-height: calc(100vh - 64px); padding: 0 20px 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
    .hero-mobile-welcome { margin-bottom: 24px; }
    .hero-mobile-welcome h1 { font-family: 'Dancing Script', cursive; color: var(--dark-pink); font-size: 2.5rem; margin-bottom: 8px; }
    .hero-mobile-welcome p { font-size: 1rem; color: var(--text-dark); line-height: 1.5; max-width: 280px; margin: 0 auto 20px; }
    .hero-mobile-visual { width: 100%; max-width: 320px; border-radius: 24px; overflow: hidden; border: 2px solid var(--soft-pink); box-shadow: 0 12px 40px rgba(240, 98, 146, 0.15); margin-bottom: 28px; }
    .hero-mobile-visual img { width: 100%; height: auto; display: block; object-fit: cover; }
    .hero-mobile-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 28px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
    .hero-mobile-strip img { width: 100px; height: 100px; object-fit: cover; border-radius: 16px; flex-shrink: 0; scroll-snap-align: start; border: 2px solid var(--soft-pink); }
    .hero-mobile-cta { padding: 16px 36px; background: var(--dark-pink); color: white; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1rem; }
    .hero-mobile-cta:hover { background: var(--deep-pink); }

    /* Shop */
    .shop-container { padding: 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .product-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .product-card { padding: 14px; border-radius: 16px; }
    .main-img-wrap { height: 140px; border-radius: 12px; }
    .card-arrow { width: 34px; height: 34px; font-size: 1.4rem; }
    .barbie-font-style { font-size: 2rem !important; }

    /* Product detail */
    .detail-container { padding: 0 16px; margin: 24px auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .detail-layout { flex-direction: column; gap: 24px; }
    .snap-slide img { height: 280px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 1.6rem; }
    .product-title-neat { font-size: 1.75rem !important; -webkit-line-clamp: 3; }
    .price-tag { font-size: 1.4rem; }
    .detail-info-section { min-height: 0; }
    .description-inner.description-scroll-wrap { max-height: 180px; }
    .delivery-card { padding: 16px; }
    .delivery-card select { padding: 12px; font-size: 16px; } /* Prevents zoom on iOS */

    /* Sidebar - full width on mobile */
    .sidebar { width: 100%; right: -100%; max-width: 100%; padding: 24px 24px 80px; }
    .sidebar.active { right: 0; }

    /* Admin */
    .admin-container { padding: 0 16px; margin: 24px auto; gap: 24px; }
    .admin-card { padding: 20px; border-radius: 16px; }
    .admin-header h1 { font-size: 2rem; }
    .admin-header p { font-size: 0.85rem; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-file-zone { padding: 16px; }
    .admin-btn { width: 100%; text-align: center; align-self: stretch; padding: 14px; }
    .admin-inventory-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .inventory-img-wrap { height: 120px; }
    .inv-slider-arrow { width: 28px; height: 28px; font-size: 1.1rem; }
    .inv-prev { left: 4px; }
    .inv-next { right: 4px; }
    .item-details p { font-size: 0.8rem; }
    .admin-table-wrap { margin: 0 -4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 480px; }
    .admin-table th, .admin-table td { padding: 10px 8px; font-size: 0.8rem; white-space: nowrap; }
    .admin-table th:nth-child(3), .admin-table td:nth-child(3) { white-space: normal; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
}

/* --- SMALL PHONES (< 400px) --- */
@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr !important; }
    .admin-inventory-grid { grid-template-columns: 1fr; }
    .admin-table th, .admin-table td { font-size: 0.75rem; padding: 8px 6px; }
}