/* --- Global Variables & Resets --- */
.gm-global-wrapper {
    --gm-text-main: #334155;
    --gm-text-light: #64748b;
    --gm-heading: #0f172a;
    --gm-bg-light: #f8fafc;
    --gm-border: #e2e8f0;
    --gm-radius-lg: 24px;
    --gm-radius-md: 16px;
    --gm-radius-sm: 8px;
    --gm-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --gm-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --gm-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    font-family: var(--e-global-typography-primary-font-family), 'Inter', system-ui, sans-serif;
    color: var(--gm-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.gm-global-wrapper * {
    box-sizing: border-box;
}

/* --- Layout & Sections --- */
.gm-section {
    padding: clamp(60px, 8vw, 120px) 20px;
    position: relative;
    background-color: #ffffff;
}

.gm-container {
    max-width: 1240px;
    margin: 0 auto;
}

.gm-bg-light {
    background-color: var(--gm-bg-light);
}

.align-center { align-items: center; }
.gm-text-center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }
.mb-5 { margin-bottom: clamp(32px, 5vw, 48px); }
.mt-4 { margin-top: 24px; }

/* --- Typography --- */
.gm-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gm-heading);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gm-text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--gm-text-light);
    margin-bottom: 32px;
    max-width: 650px;
}

/* --- Hero Section --- */
.gm-hero {
    text-align: center;
    padding: clamp(80px, 12vw, 160px) 20px clamp(60px, 8vw, 100px);
    background: radial-gradient(circle at top center, #f8fafc 0%, #ffffff 100%);
}

.gm-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--gm-bg-light);
    color: var(--gm-heading);
    border: 1px solid var(--gm-border);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.gm-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--gm-heading);
    line-height: 1.1;
    letter-spacing: -0.04em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gm-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--gm-text-light);
    margin-bottom: clamp(40px, 6vw, 80px);
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gm-hero-image-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    aspect-ratio: 21/9;
    border-radius: var(--gm-radius-lg);
    box-shadow: var(--gm-shadow-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- Grids --- */
.gm-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(40px, 6vw, 80px);
}
.gm-grid-2.gap-large {
    gap: clamp(40px, 8vw, 100px);
}
.gm-grid-2-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.gm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.gm-img-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.gm-img-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.gm-grid-cosplay {
    grid-template-columns: 1fr 1fr;
}
.gm-grid-cosplay > :first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

/* --- Cards & Content Blocks --- */
.gm-card {
    background: #ffffff;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-lg);
    padding: 40px;
    box-shadow: var(--gm-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gm-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--gm-shadow-lg);
}
.gm-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gm-heading);
}
.gm-card-desc {
    color: var(--gm-text-light);
    margin-bottom: 24px;
}

.gm-card-img-top {
    margin: -40px -40px 32px -40px;
    border-radius: var(--gm-radius-lg) var(--gm-radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.gm-card-img-top .gm-img-container {
    height: 100%;
}
.gm-card-img-top .gm-img-full,
.gm-card-img-top .gm-img-placeholder {
    border-radius: 0;
}

/* --- Lists & Tags --- */
.gm-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: left;
}
.gm-check-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--gm-heading);
    font-weight: 500;
    text-align: left;
}
.gm-check-list li::before {
    display: none;
}

.gm-check-small li {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.gm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.gm-tags span {
    background: var(--gm-bg-light);
    color: var(--gm-heading);
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--gm-border);
}
.gm-text-center .gm-tags {
    justify-content: center;
}

/* --- Images --- */
.gm-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--gm-radius-md);
    overflow: hidden;
}
.gm-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background-color: var(--gm-bg-light);
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    text-align: center;
    padding: 24px;
    transition: all 0.3s ease;
}
.gm-img-container:hover .gm-img-placeholder {
    background-color: #e2e8f0;
    border-color: var(--gm-accent-color, #0f172a);
    color: var(--gm-accent-color, #0f172a);
}
.gm-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gm-img-container:hover .gm-img-full {
    transform: scale(1.05);
}

.gm-hero-image-wrapper .gm-img-placeholder {
    min-height: clamp(300px, 40vw, 600px);
}

/* --- CTA / MOQ Section --- */
.gm-cta-section {
    background-color: var(--gm-heading);
    padding: clamp(80px, 10vw, 140px) 20px;
}
.gm-text-white {
    color: #ffffff !important;
}
.gm-text-white-fade {
    color: rgba(255,255,255,0.8) !important;
}
.gm-moq-image-wrapper {
    max-width: 900px;
    margin: 40px auto 0;
    aspect-ratio: 21/9;
    border-radius: var(--gm-radius-lg);
    box-shadow: var(--gm-shadow-lg);
    overflow: hidden;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .gm-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gm-grid-2, .gm-grid-2-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .gm-grid-3, .gm-img-grid-3, .gm-grid-cosplay {
        grid-template-columns: 1fr;
    }
    .gm-pl-large {
        padding-left: 0;
    }
    .gm-hero-image-wrapper, .gm-card-img-top, .gm-moq-image-wrapper {
        aspect-ratio: 16/9;
    }
    .gm-card {
        padding: 24px;
    }
    .gm-card-img-top {
        margin: -24px -24px 24px -24px;
    }
}
