/* ============================================
   PrimordialMC Store — Store Styles
   ============================================ */

/* ---- Store Hero ---- */
.store-hero {
    position: relative;
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: center;
    overflow: hidden;
}

.store-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    background: linear-gradient(135deg, var(--color-emerald), var(--color-steel-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.store-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ---- Player Profile Section ---- */
.profile-section {
    padding: var(--space-md) 0 var(--space-lg);
}

.profile-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-secondary);
    border: 1.5px solid rgba(45, 139, 78, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.profile-input-group {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.profile-input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.profile-input {
    padding: 10px 16px;
    border: 1.5px solid rgba(45, 139, 78, 0.25);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    width: 200px;
    transition: border-color var(--transition-fast);
}

.profile-input:focus {
    outline: none;
    border-color: var(--color-emerald);
    box-shadow: 0 0 0 3px rgba(45, 139, 78, 0.1);
}

.profile-input::placeholder {
    color: var(--text-light);
}

.profile-lookup-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-emerald-light));
    color: var(--color-frost);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
    white-space: nowrap;
}

.profile-lookup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 139, 78, 0.25);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: auto;
}

.profile-card.hidden {
    display: none;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(45, 139, 78, 0.3);
    image-rendering: pixelated;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.profile-rank {
    font-size: 0.8rem;
    color: var(--text-light);
}

.profile-divider {
    width: 1px;
    height: 40px;
    background: rgba(45, 139, 78, 0.15);
    flex-shrink: 0;
}

.profile-stats {
    display: flex;
    gap: var(--space-md);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-emerald);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-error {
    color: #EF5350;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.profile-error.visible {
    display: block;
}

/* ---- Category Tabs ---- */
.category-tabs-wrapper {
    position: sticky;
    top: 57px;
    z-index: 100;
    background: rgba(240, 245, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 139, 78, 0.1);
    padding: var(--space-sm) 0;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid rgba(45, 139, 78, 0.2);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    border-color: var(--color-emerald);
    color: var(--color-emerald);
    background: rgba(45, 139, 78, 0.05);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--color-emerald), var(--color-emerald-light));
    color: var(--color-frost);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.category-tab.limited-highlight {
    border-color: #FFB300;
    color: #FFB300;
    background: rgba(255, 179, 0, 0.08);
    animation: limitedPulse 2s ease-in-out infinite;
}

.category-tab.limited-highlight.active {
    background: linear-gradient(135deg, #FFB300, #FF8F00);
    color: var(--color-frost);
    border-color: transparent;
    animation: none;
}

@keyframes limitedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(255, 179, 0, 0); }
}

.category-tab-icon {
    font-size: 1rem;
}

/* ---- Products Section ---- */
.products-section {
    padding: var(--space-lg) 0 var(--space-xxl);
    min-height: 400px;
}

.product-category {
    display: none;
}

.product-category.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.category-header {
    margin-bottom: var(--space-lg);
}

.category-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.category-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---- Rank Cards ---- */
.rank-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.rank-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    border: 1.5px solid rgba(45, 139, 78, 0.1);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.rank-card-header {
    padding: var(--space-md) var(--space-md) var(--space-sm);
    position: relative;
}

.rank-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.rank-card-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.rank-card-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.rank-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.rank-card-body {
    padding: 0 var(--space-md) var(--space-sm);
    flex: 1;
}

.rank-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-features li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(45, 139, 78, 0.06);
}

.rank-features li:last-child {
    border-bottom: none;
}

.rank-features li::before {
    content: '\2713';
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.rank-card-footer {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    border-top: 1px solid rgba(45, 139, 78, 0.08);
}

.rank-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.rank-price-interval {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
}

.rank-card.subscription {
    border-style: dashed;
    border-width: 2px;
}

.rank-requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(156, 39, 176, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #9C27B0;
    font-weight: 600;
    margin-top: 8px;
}

/* ---- Gem Cards ---- */
.gem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.gem-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    border: 1.5px solid rgba(45, 139, 78, 0.1);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.gem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gem-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gem-amount {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.gem-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.gem-bonus {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.gem-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gem-rate {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.gem-savings {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
    margin-bottom: var(--space-sm);
}

/* ---- Key Cards ---- */
.key-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

.key-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.key-card:hover {
    transform: translateY(-4px);
}

.key-card-rarity {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.key-card-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.key-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.key-loot {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-sm) 0;
}

.key-loot li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.key-loot li::before {
    content: '\25C6';
    font-size: 0.5rem;
}

.key-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(45, 139, 78, 0.08);
}

.key-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.key-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Kit Cards ---- */
.kit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.kit-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    border: 1.5px solid rgba(45, 139, 78, 0.1);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.kit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.kit-card-header {
    padding: var(--space-md);
    position: relative;
}

.kit-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.kit-class-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.kit-class-name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.kit-card-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.kit-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.kit-card-body {
    padding: 0 var(--space-md) var(--space-sm);
    flex: 1;
}

.kit-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kit-features li {
    padding: 5px 0;
    font-size: 0.83rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(45, 139, 78, 0.06);
}

.kit-features li:last-child {
    border-bottom: none;
}

.kit-features li::before {
    content: '\25AA';
    font-size: 0.6rem;
    flex-shrink: 0;
}

.kit-card-footer {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    border-top: 1px solid rgba(45, 139, 78, 0.08);
}

.kit-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ---- Booster Cards ---- */
.booster-section {
    margin-bottom: var(--space-xl);
}

.booster-section:last-child {
    margin-bottom: 0;
}

.booster-section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.booster-section-personal {
    color: #42A5F5;
}

.booster-section-server {
    color: #FFB300;
}

.booster-section-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.booster-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

.booster-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    border: 1.5px solid rgba(45, 139, 78, 0.1);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.booster-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.booster-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.booster-boost {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 2px;
}

.booster-duration {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.booster-target {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.booster-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ---- Add to Cart Button ---- */
.add-to-cart-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-emerald-light));
    color: var(--color-frost);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 139, 78, 0.25);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.in-cart {
    background: rgba(45, 139, 78, 0.1);
    color: var(--color-emerald);
    box-shadow: none;
    border: 1.5px solid rgba(45, 139, 78, 0.3);
}

/* ---- Limited Time / Bundle Cards ---- */
.limited-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    max-width: 520px;
}

.bundle-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1.5px solid;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.bundle-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.bundle-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bundle-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bundle-limit-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bundle-countdown {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bundle-timer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    font-weight: 600;
}

.bundle-timer-units {
    display: flex;
    gap: 4px;
}

.bundle-timer-unit {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.bundle-timer-num {
    background: rgba(255, 109, 0, 0.12);
    color: #FF6D00;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 26px;
    text-align: center;
}

.bundle-timer-lbl {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
}

.bundle-timer-expired {
    color: #EF5350;
    font-weight: 600;
    font-size: 0.85rem;
}

.bundle-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.bundle-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.bundle-contents {
    margin-bottom: 20px;
    background: rgba(255, 109, 0, 0.04);
    border: 1px solid rgba(255, 109, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
}

.bundle-contents-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.bundle-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.bundle-features li {
    font-size: 0.85rem;
    color: var(--text-primary);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}

.bundle-features li::before {
    content: '\2726';
    position: absolute;
    left: 0;
    color: var(--accent, #FF6D00);
    font-size: 0.75rem;
}

.bundle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 109, 0, 0.1);
}

.bundle-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.bundle-qty-area {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .limited-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .bundle-features {
        grid-template-columns: 1fr;
    }
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: var(--space-xxl) var(--space-lg);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---- Cart Icon (Header) ---- */
.cart-btn {
    position: relative;
    background: transparent;
    border: 1.5px solid rgba(45, 139, 78, 0.25);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    cursor: pointer;
    color: var(--color-emerald);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-btn:hover {
    background: rgba(45, 139, 78, 0.08);
    border-color: var(--color-emerald);
}

.cart-btn svg {
    width: 20px;
    height: 20px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-emerald);
    color: var(--color-frost);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.cart-count.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---- Cart Drawer ---- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 31, 23, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2001;
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(15, 31, 23, 0.15);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md);
    border-bottom: 1px solid rgba(45, 139, 78, 0.15);
}

.cart-drawer-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-emerald);
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.cart-close-btn:hover {
    background: rgba(45, 139, 78, 0.1);
    color: var(--color-emerald);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm) var(--space-md);
}

.cart-empty {
    text-align: center;
    padding: var(--space-xxl) var(--space-md);
    color: var(--text-light);
}

.cart-empty-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    opacity: 0.3;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(45, 139, 78, 0.08);
}

.cart-item-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-category {
    font-size: 0.75rem;
    color: var(--text-light);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(45, 139, 78, 0.2);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-qty-btn:hover {
    background: rgba(45, 139, 78, 0.1);
    border-color: var(--color-emerald);
    color: var(--color-emerald);
}

.cart-qty-value {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

/* Inline quantity adjuster (on product cards) */
.inline-qty-adjuster {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.inline-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(45, 139, 78, 0.2);
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.inline-qty-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.inline-qty-value {
    font-weight: 700;
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
}

.cart-item-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    flex-shrink: 0;
    min-width: 55px;
    text-align: right;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

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

.cart-drawer-footer {
    padding: var(--space-md);
    border-top: 1px solid rgba(45, 139, 78, 0.15);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.cart-total-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.cart-total-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-emerald);
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-emerald-light));
    color: var(--color-frost);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45, 139, 78, 0.25);
}

.cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--space-xs);
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1.5px solid rgba(45, 139, 78, 0.2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    animation: toastIn 0.3s ease-out;
    max-width: 320px;
}

.toast.removing {
    animation: toastOut 0.3s ease-in forwards;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ---- Store Footer ---- */
.store-footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(45, 139, 78, 0.1);
    text-align: center;
}

.store-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.8;
}

.store-footer a {
    color: var(--color-emerald);
    text-decoration: none;
}

.store-footer a:hover {
    text-decoration: underline;
}

.store-footer .footer-support {
    margin-bottom: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .profile-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .profile-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-input {
        width: 100%;
    }

    .profile-card {
        margin-left: 0;
        justify-content: center;
    }

    .profile-divider {
        width: 100%;
        height: 1px;
    }

    .profile-stats {
        justify-content: center;
    }

    .category-tabs {
        padding: 0 var(--space-md);
    }

    .category-tabs-wrapper {
        top: 49px;
    }

    .rank-cards,
    .kit-cards {
        grid-template-columns: 1fr;
    }

    .gem-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .key-cards {
        grid-template-columns: 1fr;
    }

    .booster-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .cart-drawer {
        width: 100vw;
        right: -100vw;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
    }

    .store-hero {
        padding: var(--space-lg) 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    .gem-cards {
        grid-template-columns: 1fr 1fr;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .rank-card-footer,
    .key-card-footer,
    .kit-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

/* ============================================
   Sale Banner & Sale Pricing
   ============================================ */

.sale-banner {
    display: none;
}

.sale-banner.active {
    display: block;
    background: linear-gradient(135deg, #EF5350, #FF7043, #EF5350);
    background-size: 200% 100%;
    animation: saleGradient 4s ease-in-out infinite;
    color: #fff;
    padding: 14px var(--space-lg);
    text-align: center;
    position: relative;
    z-index: 50;
}

@keyframes saleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sale-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.sale-banner-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.sale-banner-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sale-banner-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.sale-banner-sub {
    font-size: 0.85rem;
    opacity: 0.9;
}

.sale-banner-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: var(--space-sm);
}

.sale-timer-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    font-weight: 600;
}

.sale-timer-units {
    display: flex;
    gap: 4px;
}

.sale-timer-unit {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.sale-timer-num {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 7px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    min-width: 28px;
    text-align: center;
}

.sale-timer-lbl {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 600;
}

/* Sale price display */
.sale-price-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sale-original-price {
    text-decoration: line-through;
    opacity: 0.45;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.sale-current-price {
    font-weight: 700;
}

.sale-sub-note {
    display: block;
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .sale-banner-content {
        flex-direction: column;
        gap: 8px;
    }

    .sale-banner-timer {
        margin-left: 0;
        flex-direction: column;
        gap: 4px;
    }
}

/* ============================================
   Community Goal — compact sticky side widget
   ============================================ */

.community-goal {
    display: none;
}

.community-goal.active {
    display: block;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    width: 210px;
}

.cg-card {
    background: var(--bg-secondary);
    border: 1.5px solid rgba(45, 139, 78, 0.18);
    border-radius: var(--radius-lg);
    padding: 14px 16px 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(45, 139, 78, 0.05);
}

/* Header */
.cg-header {
    margin-bottom: 10px;
}

.cg-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-emerald);
    background: rgba(45, 139, 78, 0.08);
    padding: 3px 8px;
    border-radius: 999px;
}

/* Total */
.cg-total {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 8px;
}

.cg-total-amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-steel-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.cg-total-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Mini progress bar */
.cg-bar {
    height: 6px;
    background: rgba(45, 139, 78, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.cg-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-emerald), var(--color-steel-blue));
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Vertical stepper tiers */
.cg-steps {
    display: flex;
    flex-direction: column;
}

.cg-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cg-step-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 18px;
}

.cg-step-pip {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(45, 139, 78, 0.2);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: transparent;
    flex-shrink: 0;
}

.cg-step.reached .cg-step-pip {
    background: var(--color-emerald);
    border-color: var(--color-emerald);
    color: #fff;
    box-shadow: 0 0 6px rgba(45, 139, 78, 0.3);
}

.cg-step-line {
    width: 2px;
    height: 14px;
    background: rgba(45, 139, 78, 0.12);
    flex-shrink: 0;
}

.cg-step.reached .cg-step-line {
    background: rgba(45, 139, 78, 0.3);
}

.cg-step-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-height: 18px;
    gap: 6px;
    padding-bottom: 10px;
}

.cg-step:last-child .cg-step-body {
    padding-bottom: 0;
}

.cg-step-boost {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.cg-step.reached .cg-step-boost {
    color: var(--color-emerald);
}

.cg-step-amount {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

/* Footer */
.cg-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(45, 139, 78, 0.08);
    font-size: 0.65rem;
    color: var(--text-light);
    text-align: center;
}

/* On small screens, shrink and pin to bottom-right */
@media (max-width: 700px) {
    .community-goal.active {
        right: 10px;
        bottom: 10px;
        width: 180px;
    }

    .cg-total-amount {
        font-size: 1.1rem;
    }

    .cg-step-boost {
        font-size: 0.7rem;
    }
}
