:root {
    --primary: #11b8b7;
    --secondary: #e7bb46;
    --accent: #989a9d;
    --bg-dark: #0f1115;
    --bg-card: #161920;
    --text-main: #fcfcfc;
    --text-muted: #989a9d;
    --border: #232730;
    --font-main: 'Outfit', sans-serif;
    --bottom-bar-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: calc(var(--bottom-bar-height) + 20px);
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.logo {
    max-height: 40px;
    object-fit: contain;
}

.container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
main section {
    display: none;
    animation: fadeIn 0.3s ease;
}

main section.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.line-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    background: transparent;
    margin: 35px 0 15px;
    padding: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(231, 187, 70, 0.3);
}

.line-title:first-child {
    margin-top: 10px;
}

.price-list-main-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.price-list-footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 10px;
    border-top: 1px solid var(--border);
}

.price-list-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 5px;
}

.price-list-footer p strong {
    color: var(--secondary);
}

.download-section {
    margin-top: 50px;
    text-align: center;
    margin-bottom: 100px;
    /* Extra space before navigation bar */
    padding: 30px 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin-left: 15px;
    margin-right: 15px;
}

.download-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    font-style: italic;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 35px;
    background: linear-gradient(135deg, var(--secondary) 0%, #d4af37 100%);
    color: #000;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    min-width: 280px;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn:active {
    transform: scale(0.96);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.price-list-main-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.price-list-main-header p {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--secondary);
    font-style: italic;
}

.touch-instruction {
    text-align: center;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 10px 0 20px;
    padding: 10px;
    background: rgba(17, 184, 183, 0.15);
    border-radius: 8px;
    border: 1px dashed var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Price List Table Style (Dark Theme) */
.price-list-container {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: none;
}

.price-list-item {
    display: flex;
    align-items: center;
    padding: 16px 15px;
    background: var(--bg-card);
    color: #fff;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    /* Small gap for refined card look */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 15px;
}

.price-list-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
}

.col-code {
    flex: 0 0 60px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.col-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    text-transform: uppercase;
    /* Match screenshot case */
}

.col-price {
    flex: 0 0 115px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.col-price::after {
    content: "〉";
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 900;
    opacity: 0.9;
}

/* Visual Catalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 25px;
}

.catalog-item {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
}

.catalog-item:active {
    border-color: var(--primary);
}

.catalog-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-item .overlay-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.6rem;
    padding: 15px 4px 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeOverlay 0.3s ease;
}

@keyframes fadeOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: var(--bg-dark);
    width: 100%;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    z-index: 101;
    display: block;
    /* Content flow for unified scroll */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.close-btn {
    position: fixed;
    /* Stick to top right of viewport */
    top: 20px;
    right: 20px;
    background: var(--secondary);
    /* High contrast Gold */
    color: #000;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 110;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-weight: 800;
}

.modal-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.gallery-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-container .gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    /* Framing spacing */
}

/* Elegant Frame */
.gallery-slide .img-frame {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.5);
    width: 12px;
    border-radius: 4px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    /* Clear semi-transparent background */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 48px;
    /* Larger for better touch target */
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gallery-nav:active {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(0.9);
}

.gallery-nav.prev {
    left: 25px;
    /* Positioned slightly inside the image frame area */
}

.gallery-nav.next {
    right: 25px;
    /* Positioned slightly inside the image frame area */
}

.modal-info {
    padding: 30px 20px;
    /* More padding for better feel */
}

.modal-code {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.modal-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}

.modal-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-meta {
    margin-bottom: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.modal-meta h3,
.modal-colors-container h3,
.modal-desc-container h3 {
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.modal-meta p {
    font-size: 0.9rem;
    color: var(--text-main);
}

.modal-colors {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.color-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.modal-desc ul {
    list-style: none;
    margin-top: 10px;
}

.modal-desc li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #e2e2e2;
}

.modal-desc li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-bar-height);
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 50;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    gap: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    transition: 0.2s;
}

.nav-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn.active svg {
    transform: translateY(-2px);
}

/* Promotional Popup Styles */
.promo-modal {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.promo-modal.active {
    display: flex;
}

.promo-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: transparent;
    border-radius: 15px;
    overflow: visible;
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-8vh);
    /* Move it up to leave space below */
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.promo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.welcome-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.welcome-content {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.welcome-logo {
    width: 150px;
    margin-bottom: 50px;
    filter: drop-shadow(0 4px 15px rgba(17, 184, 183, 0.2));
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 400px) {
    .welcome-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .welcome-choice-btn {
        flex: 1;
    }
}

.welcome-choice-btn {
    padding: 25px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-card);
    color: #fff;
    border: 2px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.welcome-choice-btn:active {
    transform: scale(0.97);
    border-color: var(--primary);
    background: rgba(17, 184, 183, 0.1);
}

.hidden-content {
    display: none !important;
}

.close-promo-btn {
    position: absolute;
    bottom: -140px;
    /* Position well below image and countdown */
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 55px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.5);
    transition: all 0.2s ease;
}

.close-promo-btn:active {
    transform: translateX(-50%) scale(0.95);
    background: #ff2a3b;
}

.promo-countdown {
    position: absolute;
    bottom: -60px;
    /* Position below image */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid var(--secondary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-item span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.countdown-item small {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #eee;
    margin-top: 4px;
    font-weight: 600;
}

@media (min-width: 600px) {
    .catalog-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 800px) {
    .catalog-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}