:root {
    --color-bg: #fbfbfb;
    --color-surface: #ffffff;
    --color-text: #171717;
    --color-text-secondary: #5f6368;
    --color-text-muted: #80868b;
    --color-border: #e8eaed;
    --color-border-subtle: #f1f3f4;
    --color-accent: #1a1a1a;
    --color-accent-hover: #000000;
    --font-main: 'Google Sans', 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle background grid pattern for architectural feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    padding: 3.5rem 1.75rem 4rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   Header / Hero Section
   ========================================================================== */
.header-section {
    text-align: center;
    max-width: 720px;
    margin-bottom: 3.5rem;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo {
    max-width: 320px;
    height: auto;
    display: block;
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */
.products-section {
    width: 100%;
    margin-bottom: 4.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-subtle);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 0, 0, 0.15);
}

.product-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f7f7f7;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.product-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.875rem;
    font-weight: 400;
}

.product-desc {
    font-size: 0.925rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.product-features span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background: var(--color-border-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 400;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff !important;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: #f1f3f4;
    border-color: #dadce0;
    color: #000000;
}

/* ==========================================================================
   Game Section & Site Footer
   ========================================================================== */
.game-section {
    width: 100%;
    max-width: 680px;
    margin-bottom: 4rem;
    text-align: center;
}

.game-wrapper {
    width: 100%;
}

.game-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.85rem;
    font-weight: 400;
}

.game-container {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid var(--color-border);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

/* Modern Site Footer */
.site-footer {
    width: 100%;
    border-top: 1px solid var(--color-border);
    padding-top: 3.5rem;
    margin-top: 1rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: 190px;
    height: auto;
    margin-bottom: 1.25rem;
    display: block;
}

.footer-tagline {
    font-size: 0.925rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 320px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.address-line {
    margin-bottom: 0.35rem;
}

.contact-item {
    display: flex;
    gap: 0.35rem;
}

.contact-label {
    font-weight: 500;
    color: var(--color-text);
}

.footer-address a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-address a:hover {
    color: #000000;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 2rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #000000;
    text-decoration: underline;
}

.footer-marketplaces {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.marketplaces-label {
    font-size: 0.775rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.marketplaces-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.mp-tag {
    font-size: 0.75rem;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

a.mp-tag:hover {
    background: var(--color-accent);
    color: #ffffff !important;
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.modal-marketplace-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.85rem;
    line-height: 1.5;
}

.modal-marketplace-info strong {
    color: var(--color-text);
    font-weight: 500;
}

.separator {
    margin: 0 0.5rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Modal (Quick View with Multi-Image Gallery)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--color-surface);
    width: 100%;
    max-width: 980px;
    max-height: 92vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--color-border);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f3f4;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e8eaed;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.5rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    min-width: 0;
}

/* Modal Gallery Column */
.modal-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.modal-main-image-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease-in-out;
}

/* Gallery Nav Buttons (Prev / Next) */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    padding: 0;
}

.gallery-nav-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: #000000;
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.94);
}

.gallery-nav-btn.prev {
    left: 0.85rem;
}

.gallery-nav-btn.next {
    right: 0.85rem;
}

/* Gallery Counter Pill */
.gallery-counter {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-thumbnails-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.modal-thumbnails-strip::-webkit-scrollbar {
    height: 5px;
}

.modal-thumbnails-strip::-webkit-scrollbar-track {
    background: transparent;
}

.modal-thumbnails-strip::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 999px;
}

.modal-thumb {
    flex: 0 0 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.65;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-thumb:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.modal-thumb.active {
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Modal Information Column */
.modal-info-col {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    width: 100%;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

/* Domirus Exact Short Description Styling */
.modal-short-desc-content {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.modal-short-desc-content h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.modal-short-desc-content p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.modal-short-desc-content p:last-child {
    margin-bottom: 0;
}

.modal-short-desc-content strong {
    color: var(--color-text);
    font-weight: 500;
}

.short-specs-box {
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    margin-top: 1.25rem;
    line-height: 1.8;
}

.short-specs-box p {
    margin: 0;
    font-size: 0.9rem;
}

.modal-cta-wrap {
    margin-top: auto;
    padding-top: 0.5rem;
}

.modal-cta-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Focus outline */
*:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem 3rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header-section {
        margin-bottom: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        max-width: 100%;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.65rem 0.5rem;
        font-size: 0.8125rem;
    }

    .logo {
        max-width: 220px;
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    /* Mobile Sheet-style Modal (Full-width, No Overflow) */
    .modal-overlay {
        padding: 0;
        align-items: flex-end; /* Opens from bottom like native mobile app */
    }

    .modal-container {
        width: 100%;
        max-width: 100%;
        height: 90vh;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        border: none;
        border-top: 1px solid var(--color-border);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        z-index: 30;
    }

    .gallery-nav-btn {
        width: 36px;
        height: 36px;
    }

    .gallery-nav-btn.prev {
        left: 0.5rem;
    }

    .gallery-nav-btn.next {
        right: 0.5rem;
    }

    .modal-body {
        padding: 1.25rem 1rem 2.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 100%;
        min-width: 0;
    }

    .modal-gallery-col {
        position: relative;
        gap: 0.75rem;
        width: 100%;
        min-width: 0;
    }

    .modal-main-image-wrap {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .modal-thumbnails-strip {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 0.5rem;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .modal-thumb {
        flex: 0 0 54px;
        height: 54px;
        border-radius: 6px;
        scroll-snap-align: start;
    }

    .modal-info-col {
        width: 100%;
        min-width: 0;
    }

    .modal-title {
        font-size: 1.25rem;
        line-height: 1.35;
        margin-top: 0;
        margin-bottom: 0.85rem;
        word-break: break-word;
    }

    .modal-short-desc-content {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        word-break: break-word;
    }

    .modal-short-desc-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .short-specs-box {
        padding: 0.85rem 0.95rem;
        font-size: 0.825rem;
        line-height: 1.65;
        word-break: break-word;
    }

    .modal-cta-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Mobile Footer */
    .site-footer {
        padding-top: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-marketplaces {
        align-items: center;
        text-align: center;
    }

    .marketplaces-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: normal;
    }

    .contact-info {
        font-size: 0.875rem;
        word-break: break-word;
    }
}
