/* ==========================================================================
   iPhone 18 Landing Page – Styles
   Design volontairement sobre, aligné sur la charte du shop (fond blanc,
   bordures fines, badge vert "En stock", boutons pleins noirs).
   ========================================================================== */

.iph18-landing {
    --iph18-text: #1d1d1d;
    --iph18-gray: #767676;
    --iph18-border: #e2e2e2;
    --iph18-light: #fafafa;
    --iph18-black: #111111;
    --iph18-green: #3fa34d;
    --iph18-red: #d0021b;
    --iph18-cols: 4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--iph18-text);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.iph18-landing * { box-sizing: border-box; }

/* ── Bannière Pleine Largeur ─────────────────────────────────────────── */
.iph18-banner-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    line-height: 0;
    overflow: hidden;
}

.iph18-banner-fullwidth img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ── En-tête ──────────────────────────────────────────────────────────── */
.iph18-hero {
    padding: 30px 0 22px;
    border-bottom: 1px solid var(--iph18-border);
    margin-bottom: 30px;
}

.iph18-hero h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--iph18-black);
}

.iph18-subtitle {
    font-size: .95rem;
    color: var(--iph18-gray);
    margin: 0;
}

/* ── Navigation interne ──────────────────────────────────────────────── */
.iph18-nav {
    margin-bottom: 34px;
    border-bottom: 1px solid var(--iph18-border);
}

.iph18-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iph18-nav a {
    display: inline-block;
    padding: 10px 16px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
}

.iph18-nav a:hover,
.iph18-nav a:focus {
    color: var(--iph18-black);
    border-bottom-color: var(--iph18-black);
}

/* ── Section par variante ────────────────────────────────────────────── */
.iph18-section {
    margin-bottom: 48px;
    scroll-margin-top: 20px;
}

.iph18-section-header {
    padding-bottom: 10px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--iph18-border);
}

.iph18-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 4px;
    color: var(--iph18-black);
}

.iph18-count {
    font-size: .85rem;
    color: var(--iph18-gray);
    margin: 0;
}

/* ── Sous-tableaux (Coques / Vitres / Autres) ────────────────────────── */
.iph18-subsection {
    margin-bottom: 34px;
}

.iph18-subsection:last-child {
    margin-bottom: 0;
}

.iph18-subsection-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 0 16px;
    color: var(--iph18-black);
}

.iph18-subsection-count {
    font-size: .78rem;
    font-weight: 500;
    color: var(--iph18-gray);
    text-transform: none;
    letter-spacing: 0;
}

/* ── Grille de produits ──────────────────────────────────────────────── */
.iph18-grid {
    display: grid;
    grid-template-columns: repeat(var(--iph18-cols), 1fr);
    gap: 18px;
}

@media (max-width: 1100px) {
    .iph18-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .iph18-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .iph18-grid { grid-template-columns: 1fr; }
}

/* ── Carte produit ───────────────────────────────────────────────────── */
.iph18-card {
    background: #fff;
    border: 1px solid var(--iph18-border);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s ease;
}

.iph18-card:hover {
    border-color: #bbb;
}

.iph18-card-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Image */
.iph18-card-img {
    position: relative;
    background: var(--iph18-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.iph18-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Badge statut stock */
.iph18-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    z-index: 1;
}

.iph18-badge-instock {
    background: var(--iph18-green);
}

.iph18-badge-oos {
    background: var(--iph18-red);
}

/* Corps */
.iph18-card-body {
    padding: 14px 14px 4px;
    text-align: center;
}

.iph18-card-title {
    font-size: .92rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.35;
    color: var(--iph18-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iph18-card-sku {
    font-size: .72rem;
    color: #9a9a9a;
    margin: 0 0 8px;
}

.iph18-card-price {
    font-size: .92rem;
    font-weight: 700;
    color: var(--iph18-black);
    margin-bottom: 6px;
}

.iph18-card-price .woocommerce-Price-amount {
    font-weight: 700;
}

.iph18-card-price del {
    color: #9a9a9a;
    font-weight: 400;
    font-size: .85rem;
    margin-right: 6px;
}

.iph18-card-price del .woocommerce-Price-amount {
    font-weight: 400;
}

.iph18-card-price ins {
    text-decoration: none;
    color: var(--iph18-black);
}

.iph18-card-excerpt {
    font-size: .8rem;
    color: var(--iph18-gray);
    margin: 6px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer / bouton */
.iph18-card-footer {
    padding: 10px 14px 14px;
}

.iph18-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 14px;
    background: var(--iph18-black);
    color: #fff !important;
    border: 1px solid var(--iph18-black);
    border-radius: 3px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.iph18-btn:hover {
    background: #fff;
    color: var(--iph18-black) !important;
}

.iph18-btn.loading {
    opacity: .6;
    pointer-events: none;
}

.iph18-btn.added {
    background: var(--iph18-green);
    border-color: var(--iph18-green);
    color: #fff !important;
}

/* ── Empty state ─────────────────────────────────────────────────────── */
.iph18-empty {
    text-align: center;
    padding: 50px 20px;
    background: var(--iph18-light);
    border: 1px solid var(--iph18-border);
    border-radius: 3px;
    color: var(--iph18-gray);
}
