/* Fully redesigned Apple-style UI — cleaner, smoother, more balanced */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f3f4f6;
    min-height: 100vh;
    padding: 30px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: #1d1d1f;
    margin-bottom: 40px;
    padding: 20px 0;
}

.header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #7a7a82;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e6e6ea;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #d2d2d7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f8f8fb;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.product-description {
    color: #7a7a80;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1d1d1f;
}

.coin-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.buy-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.23s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

.buy-btn:hover {
    background: #0a84ff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.buy-btn:active {
    background: #0067d6;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .catalog {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
}

/* Recently Sold Item Container */
#sold-list {
    width: 220px;
    overflow: hidden;
    transition: transform 0.3s ease-out;
}

/* Slide content */
.sold-slide {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.sold-slide img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
}

.sold-info p {
    margin: 0;
    font-size: 14px;
}

/* Animations */
.slide-out {
    transform: translateX(-120%);
    opacity: 0;
}

.slide-in {
    transform: translateX(120%);
    opacity: 0;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0%);
        opacity: 1;
    }
}


/* NAVBAR */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 26px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d1d1f;
}

.cart-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

.cart-icon:hover {
    opacity: 1;
}

/* RECENTLY SOLD

/* ============================
   RECENTLY SOLD — APPLE STYLE
   ============================ */

.recently-sold {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

/* Center container */
#sold-list {
    width: 260px;
    height: 82px;              /* consistent size */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The slide card itself */
/* Larger, balanced slide card */
.sold-slide {
    width: 290px;
    height: 140px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 18px;
    position: absolute;

    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #e5e5ea;

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.45s cubic-bezier(.25,.8,.25,1);
}

.sold-slide.active {
    opacity: 1;
    transform: translateY(0px);
}

/* Bigger image to match card size */
.sold-slide img {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
    background: #f2f2f7;
}

.sold-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sold-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.sold-price {
    font-size: 14px;
    font-weight: 500;
    color: #27ae60;
}

.sold-time {
    font-size: 13px;
    color: #7a7a80;
}


.roblox-avatar {
    
  display: block;
  margin: 0 auto;
  width: 45px;
  height: 45px;
}

.footer {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    margin-top: 60px;
    color: #1d1d1f;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

.footer-left {
    flex: 1 1 300px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: cover;
}

.footer-brand-text {
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-contact a {
    color: #0071e3;
    text-decoration: none;
    transition: 0.2s;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-disclaimer p {
    margin-bottom: 8px;
    color: #7a7a80;
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex: 2 1 500px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-column a {
    display: block;
    margin-bottom: 8px;
    color: #1d1d1f;
    text-decoration: none;
    transition: 0.2s;
}

.footer-column a:hover {
    color: #0071e3;
}

.discord-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.discord-icon {
    width: 20px;
    height: 20px;
    fill: #7289da;
}

.footer-robux-decorations {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.footer-robux-decoration {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 12px;
}

.footer-bottom {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #7a7a80;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        gap: 30px;
    }

    .footer-left {
        text-align: center;
    }
}




/* new logic
/* =========================
   MARKET BANNER — APPLE STYLE
   ========================= */
.market-banner {
    width: 100%;
    background: linear-gradient(135deg, #f0f0f5, #ffffff);
    border-radius: 20px;
    padding: 60px 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.market-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.market-banner p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #7a7a82;
    max-width: 700px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.market-banner .explore-btn {
    background: #0071e3;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.market-banner .explore-btn:hover {
    background: #0a84ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.market-banner .explore-btn:active {
    background: #0067d6;
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .market-banner h1 {
        font-size: 2rem;
    }
    .market-banner p {
        font-size: 1rem;
    }
    .market-banner .explore-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}


/* =========================
   SEARCH BAR — APPLE STYLE
   ========================= */
.search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px auto;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border-radius: 16px;
    border: 1px solid #e5e5ea;
    font-size: 1rem;
    color: #1d1d1f;
    background: #f8f8fb url('https://cdn-icons-png.flaticon.com/512/622/622669.png') no-repeat 14px center;
    background-size: 18px;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

#searchInput:focus {
    border-color: #0071e3;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    background-color: #ffffff;
}

@media (max-width: 768px) {
    #searchInput {
        padding: 12px 16px 12px 40px;
        font-size: 0.95rem;
    }
}


/* ============================================
   CHRISTMAS THEME — NO SNOW
   ============================================ */

/* Soft snowy gradient background */
body {
    background: linear-gradient(180deg, #f6f9fc 0%, #e8f3ff 40%, #f2f6ff 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Remove snow — No pseudo-elements, no animations */
.container::before,
.container::after,
html::before,
html::after,
.navbar::before {
    content: none !important;
}

/* Remove snowfall keyframes */
@keyframes snowfall1 {}
@keyframes snowfall2 {}
@keyframes snowfall3 {}


/* Christmas-style accents */
.market-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.95));
    border: 2px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
}

.buy-btn {
    background: #0071e3; /* festive red */
}

.buy-btn:hover {
    background: #0a84ff;
}

.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    position: relative; /* Needed for snow pseudo-element */
}

.footer {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
}

/* Christmas glow for Recently Sold card */
.sold-slide {
    box-shadow: 0 6px 20px rgba(180, 220, 255, 0.25);
}

/* ========================
   TOAST NOTIFICATION CSS
   ======================== */
.toast {
        z-index: 999999;

    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #1d1d1f;
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 420px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 3px solid #27ae60;
}

.toast-error {
    border-left: 3px solid #e74c3c;
}

@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}