/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: rgb(245, 151, 155);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* === Menu Bar Top === */
.menu-bar-top {
    width: 100%;
    max-width: 1805px;
    margin: 20px auto 0;
    line-height: 0;
    font-size: 0;
    padding: 0 20px;
}

.menu-bar-top img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Top Navigation Menu === */
.top-menu {
    width: 100%;
    max-width: 1805px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: transparent;
    /* 120px at 1805px wide = 6.648% */
    height: clamp(60px, 6.648vw, 120px);
}

.top-menu-inner {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: #fff;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    padding: 10px;
}

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

.nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    flex: 1;
    height: 100%;
}

.nav-btn {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    justify-content: center;
}

.nav-btn-img {
    height: 50%;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* === Menu Bar Bottom === */
.menu-bar-bottom {
    width: 100%;
    max-width: 1805px;
    margin: 0 auto;
    line-height: 0;
    font-size: 0;
    padding: 0 20px;
}

.menu-bar-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Main Content - Middle Images === */
.main-content {
    width: 100%;
    max-width: 1805px;
    margin: 0 auto;
    line-height: 0;
    font-size: 0;
    padding: 0 20px;
}

.middle-images {
    display: flex;
    width: 100%;
    line-height: 0;
    font-size: 0;
    align-items: stretch;
}

.middle-img-left,
.middle-img-right {
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    height: auto;
}

.middle-img-left {
    flex: 1042;
    display: flex;
    flex-direction: column;
    background-color: rgb(242, 109, 125);
}

.middle-img-left .middle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    display: block;
}

.middle-img-right {
    flex: 763;
}

.middle-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* === Friends Grid (Meet My Friends page) === */
.friends-grid {
    width: 100%;
    line-height: 0;
    font-size: 0;
}

.friends-row.friends-header {
    width: 100%;
}

.friends-row.friends-characters {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.friends-col {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.friend-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* === Bottom Menu === */
.bottom-menu {
    width: 100%;
    max-width: 1805px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: transparent;
    position: relative;
}

.bottom-menu-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background-color: #fff;
    padding: 2% 3%;
    gap: 2%;
    position: relative;
    z-index: 1;
}

.bottom-btn {
    display: block;
    line-height: 0;
    font-size: 0;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.bottom-btn-img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Bottom Image === */
.bottom-image {
    width: 100%;
    max-width: 1805px;
    margin: 0 auto;
    line-height: 0;
    font-size: 0;
    padding: 0 20px;
}

.bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Video Modal === */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    z-index: 1;
}

.video-modal-content video {
    width: 100%;
    max-height: 85vh;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

.video-modal-close {
    position: absolute;
    top: -30px;
    right: -10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.video-modal-close:hover {
    opacity: 0.7;
}

/* === Footer === */
.site-footer {
    width: 100%;
    max-width: 1805px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.footer-inner {
    background-color: rgb(135, 129, 189);
    padding: 8px 40px 5px;
    position: relative;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 5px;
    position: relative;
}

.footer-social a {
    color: #fff;
    font-size: 32px;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-hover-img {
    position: absolute;
    top: 0;
    height: 100%;
    width: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.footer-hover-instagram {
    right: calc(50% + 100px);
}

.footer-hover-youtube {
    left: calc(50% + 100px);
}

.footer-hover-img.visible {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-policies {
    color: #fff;
    font-size: 14px;
    margin-top: 8px;
}

.footer-policies .policies-link {
    margin: 0 5px;
}

.copyright {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

.policies-link {
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.policies-link:hover {
    opacity: 0.7;
    color: #fff;
}


/* === Cart UI === */
.cart-button {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgb(135, 129, 189);
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.2s ease;
}

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

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: rgb(242, 109, 125);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-notification {
    position: fixed;
    top: 85px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.cart-notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-notification.success {
    background-color: rgb(135, 129, 189);
    color: #fff;
}

.cart-notification.error {
    background-color: rgb(242, 109, 125);
    color: #fff;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-panel.open {
    right: 0;
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-panel-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: rgb(135, 129, 189);
}

.cart-panel-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

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

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    color: #999;
    text-align: center;
    font-size: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.cart-item-qty {
    font-size: 14px;
    color: #666;
    margin: 0 12px;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgb(242, 109, 125);
    line-height: 1;
}

.cart-item-remove:hover {
    color: #c0392b;
}

.cart-panel-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: rgb(135, 129, 189);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-checkout-btn:hover {
    background-color: rgb(115, 109, 169);
}


/* === Product Detail Modal === */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.product-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    z-index: 2;
}

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

.product-modal-body {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.product-modal-image {
    flex: 1;
    min-width: 0;
}

.product-modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.product-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-modal-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: rgb(135, 129, 189);
    margin: 0;
}

.product-modal-price {
    font-size: 22px;
    font-weight: 700;
    color: rgb(242, 109, 125);
    margin: 0;
}

.product-modal-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    flex: 1;
}

.product-modal-add-btn {
    padding: 14px 24px;
    background-color: rgb(135, 129, 189);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 12px;
}

.product-modal-add-btn:hover {
    background-color: rgb(115, 109, 169);
}

@media (max-width: 600px) {
    .product-modal-body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
}


/* === Product Modal Quantity === */
.product-modal-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.product-modal-qty-row label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.product-modal-qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

/* === Cart Total === */
.cart-total {
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 2px solid rgb(135, 129, 189);
    text-align: right;
    font-size: 16px;
    color: #333;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
    margin: 0 8px;
    white-space: nowrap;
}


/* === Thank You Page === */
.thank-you-image {
    width: 100%;
    line-height: 0;
    font-size: 0;
}

.thank-you-container {
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border: 2px solid rgb(135, 129, 189);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thank-you-title {
    font-size: 28px;
    font-weight: 700;
    color: rgb(135, 129, 189);
    margin: 0 0 16px;
}

.thank-you-message {
    font-size: 16px;
    color: #555;
    margin: 0 0 30px;
    line-height: 1.5;
}

.order-summary {
    width: 100%;
    max-width: 500px;
    text-align: left;
}

.order-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.order-items {
    margin-bottom: 16px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.order-item-qty {
    font-size: 14px;
    color: #666;
    margin: 0 16px;
}

.order-item-price {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.order-total {
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: rgb(135, 129, 189);
    padding-top: 12px;
    border-top: 2px solid rgb(135, 129, 189);
}

.thank-you-back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 32px;
    background-color: rgb(135, 129, 189);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.thank-you-back-btn:hover {
    background-color: rgb(115, 109, 169);
    color: #fff;
}


/* === Downloads Grid === */
.downloads-grid {
    display: grid;
    grid-template-columns: 177fr 221fr 210fr 207fr 207fr 205fr 210fr 213fr 155fr;
    grid-template-rows: 90fr 329fr 342fr;
    max-width: 1805px;
    width: 100%;
    aspect-ratio: 1805 / 761;
    margin: 0 auto;
    line-height: 0;
    font-size: 0;
}

.downloads-grid > * {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.downloads-grid > .downloads-header {
    overflow: visible;
}

.downloads-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

.downloads-left-bar {
    grid-row: 1 / 4;
    grid-column: 1;
}

.downloads-right-bar {
    grid-row: 2 / 4;
    grid-column: 9;
}

.downloads-header {
    grid-row: 1;
    grid-column: 2 / 10;
    display: flex;
    overflow: visible;
}

.downloads-header .copilot-icon {
    flex: 305;
    min-width: 0;
    overflow: visible;
    display: block;
    line-height: 0;
    position: relative;
    cursor: pointer;
}

.downloads-header .copilot-icon::after {
    content: 'Always have a "Grown-Up Co-Pilot" nearby!';
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(245, 151, 155);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    line-height: 1.4;
}

.downloads-header .copilot-icon:hover::after {
    opacity: 1;
}

.downloads-header .header-center {
    flex: 1018;
    min-width: 0;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.downloads-header img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

.download-btn {
    display: block;
}

/* === Order Complete Banner === */
.order-complete-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    background-color: rgb(135, 129, 189);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 3000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.order-complete-banner p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.order-complete-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

.order-complete-banner a:hover {
    opacity: 0.8;
}

.order-complete-banner button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.order-complete-banner button:hover {
    opacity: 0.7;
}

/* === PDF Preview Modal === */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.pdf-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.pdf-modal-close:hover {
    opacity: 0.7;
}

.pdf-modal-iframe {
    width: 100%;
    flex: 1;
    border: none;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.pdf-modal-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: rgb(135, 129, 189);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
}

.pdf-modal-download:hover {
    background-color: rgb(115, 109, 169);
    color: #fff;
}
