@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #01b8c6;
    --primary-soft: rgba(1, 184, 198, 0.1);
    --primary-soft-hover: rgba(1, 184, 198, 0.05);
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #111827;
    --text-soft: #1f2937;
    --muted: #64748b;
    --shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
    --shadow-shell: 0 30px 70px -15px rgb(0 0 0 / 0.3);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    height: 100vh;
    overflow: hidden;
    color: var(--text);
}

.main-container {
    max-width: 768px;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    background: var(--card-bg);
    box-shadow: var(--shadow-shell);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background-color: var(--primary);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1.5px;
    color: white;
}

.header-right {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: left;
    gap: 16px;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 32px 40px;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
}

/* IMAGE */
.image-container {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    height: 280px;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.03);
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    cursor: zoom-out;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.lightbox-close:hover {
    opacity: 1;
}

/* SHOP GALLERY (LEGACY) */
.shop-gallery-section {
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    padding: 4px;
    margin-bottom: 40px;
}

.shop-gallery-inner {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 6px 0;
}

.shop-gallery-title {
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    text-align: center;
}

.shop-gallery-grid {
    padding: 0 24px 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.shop-gallery-inner:hover {
    background-color: rgba(1, 184, 198, 0.02);
}

.shop-gallery-link {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.shop-gallery-link:hover {
    transform: scale(1.08);
}

.shop-gallery-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px;
    background: white;
}

.shop-subsection {
    margin-bottom: 18px;
}

.shop-subsection:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 14px;
}

.shop-subheader {
    padding: 12px 24px 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
}

/* NEW STORE LOGO GALLERY */
.store-logo-gallery-section {
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    padding: 4px;
    margin-bottom: 40px;
}

.store-logo-gallery-inner {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 8px 0 10px;
    transition: background 0.2s ease;
}

.store-logo-gallery-inner:hover {
    background-color: rgba(1, 184, 198, 0.02);
}

.store-logo-gallery-title {
    padding: 18px 24px 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    text-align: center;
}

.store-logo-gallery-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px 18px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.store-logo-gallery-grid {
    padding: 0 24px 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.store-logo-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border-radius: var(--radius-md);
    min-height: 138px;
    padding: 14px 12px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid rgba(1, 184, 198, 0.12);
}

.store-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.35);
    background: rgba(1, 184, 198, 0.025);
}

.store-logo-image-wrap {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.store-logo-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.store-logo-placeholder {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--muted);
    text-align: center;
    word-break: break-word;
}

.store-logo-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-soft);
    text-align: center;
    word-break: break-word;
}

/* DATA CARD */
.data-card {
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    padding: 4px;
    margin-bottom: 40px;
}

.data-inner {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 6px 0;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 18px 24px;
    transition: background 0.2s;
    gap: 16px;
}

.data-row:hover {
    background-color: var(--primary-soft-hover);
}

.label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    flex-shrink: 0;
}

.value {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-soft);
    text-align: right;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.flag {
    font-size: 42px;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
    line-height: 1;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    min-height: 34px;
    line-height: 1.1;
    transition: all 0.2s;
    white-space: nowrap;
}

.version-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.version-tag-plain {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    line-height: 1.1;
    background: transparent;
    color: var(--text-soft);
}

.safety-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.safety-item {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-soft);
    padding: 8px 14px;
    border-radius: 9999px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
}

.safety-tag {
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    min-height: 34px;
    line-height: 1.1;
    transition: all 0.2s;
    white-space: nowrap;
}

.safety-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* STANDALONE VIDEO */
.standalone-video {
    width: 100%;
    margin: 60px 0 40px;
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.standalone-video-emoji-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.standalone-video-emoji-link:hover {
    transform: scale(1.1);
}

.standalone-video-emoji {
    font-size: 100px;
    line-height: 1;
}

.standalone-video-text {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

/* LEGACY VIDEO LINK STYLE */
.video-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.2s;
    margin-bottom: 40px;
}

.video-link:hover {
    transform: scale(1.08);
}

.video-link .icon {
    font-size: 78px;
    margin-bottom: 8px;
}

.video-link span {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 10px 0 14px;
    opacity: 0.9;
}

.footer-logos img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logos img:hover {
    transform: scale(1.06);
    opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .title {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .content {
        padding: 24px 20px 32px;
    }

    .image-container {
        height: 220px;
        margin-bottom: 24px;
    }

    .shop-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 18px 18px;
        gap: 12px;
    }

    .store-logo-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 18px 18px;
        gap: 12px;
    }

    .shop-gallery-title,
    .shop-subheader,
    .store-logo-gallery-title {
        padding-left: 18px;
        padding-right: 18px;
    }

    .store-logo-gallery-country {
        padding: 0 18px 16px;
        font-size: 14px;
    }

    .store-logo-card {
        min-height: 120px;
        padding: 12px 10px 10px;
        border-radius: 14px;
    }

    .store-logo-image-wrap {
        height: 58px;
        margin-bottom: 8px;
    }

    .store-logo-name {
        font-size: 12px;
    }

    .data-card,
    .store-logo-gallery-section,
    .shop-gallery-section {
        margin-bottom: 32px;
    }

    .data-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }

    .value,
    .brand-row,
    .safety-ratings {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .safety-item {
        padding-left: 0;
        padding-right: 0;
    }

    .flag {
        font-size: 34px;
    }

    .footer-logos {
        gap: 14px;
        margin-top: 16px;
        padding: 8px 0 12px;
    }

    .footer-logos img {
        height: 10px;
        max-width: 96px;
    }

    .standalone-video-emoji {
        font-size: 82px;
    }

    .standalone-video-text {
        font-size: 14px;
        letter-spacing: 1.2px;
    }
}

/* SMALL MOBILE */
@media (max-width: 520px) {
    .shop-gallery-grid,
    .store-logo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-logo-card {
        min-height: 116px;
    }

    .store-logo-image-wrap {
        height: 54px;
    }
}
