/* ───────── RESET & BASE ───────── */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ───────── HEADER ───────── */
.header-bar {
    background: #0F172A;
    color: #F8FAFC;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.header-bar .logo {
    height: 50px;
    margin-bottom: 0.5rem;
    padding-right: 10px;
}

.header-bar h1 {
    margin: 0;
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.main-nav a {
    color: #F8FAFC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.logo {
  height: 40px;        /* Hauteur contrôlée */
  width: auto;         /* Garde les proportions */
  margin-right: 1rem;  /* Espace après le logo */
}

/* ───────── FOOTER ───────── */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0F172A;
    color: #F8FAFC;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.footer a {
    color: #F8FAFC;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer a:hover {
    text-decoration: none;
}

/* ───────── LAYOUT ───────── */
.main-layout {
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
}

.shop-section {
    flex: 1;
    padding: 2rem;
    background: #0F172A;
    color: #F8FAFC;
    overflow-y: auto;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: calc(350px * 4 + 3.5rem * 3);
  
}


.checkout-section {
    width: 400px;
    padding: 2rem;
    background: #F8FAFC;
    color: #0F172A;
    box-shadow: -2px 0 5px rgba(0, 0, 0, .1);
    transition: transform 0.3s ease-in-out;
}

/* ───────── STICKERS ───────── */
.sticker {
    background: #1E293B;
    border: 1px solid #334155;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticker:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.sticker img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
}

.sticker-details h3,
.sticker-details p {
    margin: 0 0 0.5rem;
}

.sticker-details button {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.sticker-details button:hover {
    background: #2563EB;
}

/* ───────── CART ───────── */
.cart-summary {
    margin-bottom: 2rem;
    background: #E2E8F0;
    padding: 1rem;
    border-radius: 6px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-item button {
    background: none;
    border: none;
    color: #EF4444;
    font-weight: bold;
    cursor: pointer;
}

.cart-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    z-index: 999;
    display: none;
    cursor: pointer;
}

.cart-toggle span {
    background: #EF4444;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    margin-left: 0.3rem;
    font-weight: bold;
}

.cart-toggle.bump span {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* ───────── FORM ───────── */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

/* ───────── CARD LOGOS ───────── */
.card-logos {
    text-align: center;
    margin-top: 1.5rem;
}

.card-logos img {
    height: 30px;
    margin: 0 0.5rem;
    vertical-align: middle;
}

/* ───────── NULLITI BUTTON ───────── */
.nulliti-button {
    margin-top: 1rem;
    background: #0F172A;
    color: #F8FAFC;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.nulliti-button:hover {
    background: #1E3A8A;
}

/* ───────── TOAST ───────── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #16a34a;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ───────── PAGE SECTION (About / Terms / Refunds) ───────── */
.page-section {
    background: #0F172A;
    color: #F8FAFC;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-section h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.page-section a {
    color: #38bdf8;
    text-decoration: underline;
}

.page-section a:hover {
    color: #0ea5e9;
    text-decoration: none;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0F172A;
}

/* ───────── INFO BOXES (Styled Paragraphs) ───────── */
.info-box {
    background: #1E293B;
    border: 1px solid #334155;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem auto 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    width: 100%;
}

.info-box p {
    margin-bottom: 1rem;
    color: #F8FAFC;
    font-size: 1rem;
    line-height: 1.6;
}

.info-box a {
    color: #38bdf8;
    text-decoration: underline;
}

.info-box a:hover {
    color: #0ea5e9;
    text-decoration: none;
}

.info-box-align {
    text-align: left;
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .checkout-section {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        background: #F8FAFC;
        transform: translateX(100%);
        z-index: 998;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        border-top: 1px solid #cbd5e1;
    }

    .checkout-section.open {
        transform: translateX(0);
    }

    .shop-section,
    .checkout-section {
        padding: 1.5rem 1rem;
    }

    .cart-toggle {
        display: block;
    }
}



/* ───────── hosted.js ───────── */

/* Overlay container */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
}

/* Shown when modal is open */
.overlay.show {
  display: flex;
}

/* Iframe styles */
.overlay iframe {
  width: 420px;
  height: 640px;
  border: 0;
  border-radius: 8px;
}

/* Close button styles */
.overlay .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}


/* ───────── cart.js ───────── */

/* Cart List */
.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.4rem 0;
}

/* Optional: remove button styling */
.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.2rem;
  cursor: pointer;
}

.remove-btn:hover {
  color: #dc2626;
}

/* Toast message */
.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #22c55e;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
}