/**
 * Pro Offcanvas Cart V2 - Frontend Styles
 * Modern, fluid animations & responsive design
 */

/* ============================================
   Base & Reset
   ============================================ */

#poc-root {
    position: relative;
    z-index: 9999;
    font-family: var(--poc-font-family);
    font-size: var(--poc-font-size);
    line-height: 1.5;
}

#poc-root *,
#poc-root *::before,
#poc-root *::after {
    box-sizing: border-box;
}

#poc-root button {
    font-family: inherit;
}

/* Scroll lock */
html.poc-open,
html.poc-open body {
    overflow: hidden !important;
}

/* ============================================
   Backdrop
   ============================================ */

.poc-backdrop {
    position: fixed;
    inset: 0;
    background: var(--poc-backdrop);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--poc-transition);
    z-index: 9998;
}

html.poc-open .poc-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   Drawer
   ============================================ */

.poc-drawer {
    position: fixed;
    top: 0;
    height: 100%;
    height: 100dvh; /* Modern viewport height */
    width: min(var(--poc-width), 92vw);
    background: var(--poc-bg);
    color: var(--poc-text);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform var(--poc-transition) cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--poc-font-size);
}

.poc-drawer * {
    font-size: inherit;
}

.poc-drawer--right {
    right: 0;
    transform: translateX(105%);
}

.poc-drawer--left {
    left: 0;
    transform: translateX(-105%);
}

html.poc-open .poc-drawer {
    transform: translateX(0);
}

/* Peek state */
html.poc-peek .poc-drawer--right {
    transform: translateX(calc(100% - var(--peek-distance, 60px)));
}

html.poc-peek .poc-drawer--left {
    transform: translateX(calc(-100% + var(--peek-distance, 60px)));
}

html.poc-peek .poc-backdrop {
    opacity: 0.3;
    pointer-events: auto;
}

html.poc-peek .poc-drawer {
    cursor: pointer;
}

/* Peek message */
.poc-peek-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--poc-success);
    border-bottom: 1px solid var(--poc-border);
    font-weight: 500;
    animation: pocPeekMessageIn 0.3s ease;
}

@keyframes pocPeekMessageIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge bounce animation */
.poc-badge-bounce {
    animation: pocBadgeBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pocBadgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.15);
    }
}

/* Peek mode */
html.poc-peeking .poc-drawer {
    transform: translateX(calc(100% - var(--poc-peek-distance, 60px)));
    cursor: pointer;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

html.poc-peeking .poc-drawer--left {
    transform: translateX(calc(-100% + var(--poc-peek-distance, 60px)));
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
}

html.poc-peeking .poc-drawer:hover {
    box-shadow: -6px 0 16px rgba(0, 0, 0, 0.2);
}

html.poc-peeking .poc-drawer--left:hover {
    box-shadow: 6px 0 16px rgba(0, 0, 0, 0.2);
}

html.poc-peeking .poc-backdrop {
    opacity: 0;
    pointer-events: none;
}

/* Loading state */
.poc-drawer.poc-loading {
    pointer-events: none;
}

.poc-drawer.poc-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--poc-primary-bg) 0%,
        var(--poc-primary-bg) 50%,
        transparent 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: pocLoading 1s linear infinite;
}

@keyframes pocLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Header
   ============================================ */

.poc-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--poc-bg);
    border-bottom: 1px solid var(--poc-border);
    min-height: 70px;
    flex-shrink: 0;
}

/* Mobile : header plus visible */
@media (max-width: 768px) {
    .poc-header {
        padding: 16px 20px;
        min-height: 64px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
}

.poc-header__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.poc-header__count {
    font-size: 14px;
    font-weight: 400;
    color: var(--poc-muted);
}

.poc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--poc-radius-sm);
    background: rgba(0, 0, 0, 0.05);
    color: var(--poc-close-button);
    cursor: pointer;
    transition: all var(--poc-transition);
    flex-shrink: 0;
}

/* Mobile : bouton plus grand et visible */
@media (max-width: 768px) {
    .poc-close {
        width: 48px;
        height: 48px;
        background: rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }
    
    .poc-close svg {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
    }
}

.poc-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.poc-close:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.15);
}

/* ============================================
   Info Bar Sticky (Essential info always visible)
   ============================================ */

.poc-info-bar {
    position: sticky;
    top: 70px; /* Header height */
    z-index: 20;
    background: var(--poc-bg);
    padding: 12px 24px 16px;
    border-bottom: 1px solid var(--poc-border);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .poc-info-bar {
        top: 64px; /* Mobile header height */
        padding: 10px 20px 12px;
    }
}

/* Info bar - Free shipping (déjà sticky, pas de border ici) */
.poc-info-bar .poc-free-ship {
    margin-bottom: 12px;
}

/* Info bar - Total sticky */
.poc-info-bar__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 0;
}

.poc-info-bar__total-label {
    color: var(--poc-muted);
    font-size: 14px;
    font-weight: 500;
}

.poc-info-bar__total-value {
    color: var(--poc-text);
    font-size: 20px;
}

@media (max-width: 768px) {
    .poc-info-bar__total {
        font-size: 16px;
    }
    
    .poc-info-bar__total-value {
        font-size: 18px;
    }
}

/* ============================================
   Scroll Zone (Body + Footer unified scroll)
   ============================================ */

.poc-scroll-zone {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for scroll zone */
.poc-scroll-zone::-webkit-scrollbar {
    width: 6px;
}

.poc-scroll-zone::-webkit-scrollbar-track {
    background: transparent;
}

.poc-scroll-zone::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.poc-scroll-zone::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Body (now inside scroll zone)
   ============================================ */

.poc-body {
    padding: 16px 24px;
    color: var(--poc-text);
}

/* ============================================
   Cart Items
   ============================================ */

.poc-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--poc-border);
    animation: pocItemIn var(--poc-transition);
}

@keyframes pocItemIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poc-item:last-child {
    border-bottom: 0;
}

.poc-item__thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--poc-radius);
    overflow: hidden;
    position: relative;
}

.poc-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--poc-transition);
}

.poc-item__thumb:hover img {
    transform: scale(1.05);
}

.poc-item__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poc-item__title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.poc-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--poc-transition);
}

.poc-item__title a:hover {
    color: var(--poc-primary-bg);
}

.poc-item__variations {
    font-size: 13px;
    color: var(--poc-muted);
    line-height: 1.5;
}

.poc-item__variations dl {
    margin: 0;
}

.poc-item__variations dt {
    display: inline;
    font-weight: 500;
}

.poc-item__variations dd {
    display: inline;
    margin: 0;
}

.poc-item__variations dt::after {
    content: ': ';
}

.poc-item__variations dd::after {
    content: '\A';
    white-space: pre;
}

.poc-item__price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.poc-item__unit-price {
    color: var(--poc-text);
}

.poc-item__subtotal {
    color: var(--poc-muted);
    font-size: 14px;
}

.poc-item__stock-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(234, 88, 12, 0.1);
    color: var(--poc-warning);
    font-size: 13px;
    border-radius: var(--poc-radius-sm);
    font-weight: 500;
}

.poc-item__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ============================================
   Quantity Control
   ============================================ */

.poc-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--poc-border);
    border-radius: var(--poc-radius);
    overflow: hidden;
    background: var(--poc-bg);
}

.poc-qty__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--poc-text);
    cursor: pointer;
    transition: background-color var(--poc-transition);
}

.poc-qty__btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.poc-qty__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.poc-qty__input {
    width: 50px;
    height: 36px;
    border: 0;
    border-left: 1.5px solid var(--poc-border);
    border-right: 1.5px solid var(--poc-border);
    background: transparent;
    color: var(--poc-text);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    -moz-appearance: textfield;
}

.poc-qty__input::-webkit-outer-spin-button,
.poc-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.poc-qty__input:focus {
    outline: 0;
    background: rgba(0, 0, 0, 0.02);
}

/* ============================================
   Remove Button
   ============================================ */

.poc-item__remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--poc-remove);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity var(--poc-transition);
}

.poc-item__remove:hover {
    opacity: 0.7;
}

/* ============================================
   Empty State
   ============================================ */

.poc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 400px;
}

.poc-empty__icon {
    margin-bottom: 24px;
    color: var(--poc-muted);
    opacity: 0.5;
}

.poc-empty__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
}

.poc-empty__text {
    margin: 0 0 32px;
    color: var(--poc-muted);
    max-width: 300px;
}

/* ============================================
   Footer
   ============================================ */

.poc-footer {
    padding: 20px 24px;
    background: var(--poc-bg);
    color: var(--poc-text);
    border-top: 1px solid var(--poc-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   Free Shipping
   ============================================ */

.poc-free-ship {
    padding: 14px 16px;
    border-radius: var(--poc-radius);
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid var(--poc-border);
    transition: all var(--poc-transition);
}

.poc-free-ship__message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--poc-text);
}

.poc-free-ship__icon {
    flex-shrink: 0;
}

.poc-free-ship__progress {
    margin-top: 12px;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.poc-free-ship__bar {
    height: 100%;
    background: var(--poc-primary-bg);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.poc-free-ship--unlocked {
    background: rgba(22, 163, 74, 0.1);
    border-color: var(--poc-success);
}

.poc-free-ship--unlocked .poc-free-ship__message {
    color: var(--poc-success);
}

/* ============================================
   Coupon
   ============================================ */

.poc-coupon {
    margin: 0;
}

.poc-coupon__input-wrap {
    display: flex;
    gap: 8px;
}

.poc-coupon__input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--poc-border);
    border-radius: var(--poc-radius);
    background: var(--poc-bg);
    color: var(--poc-text);
    font-size: 14px;
    transition: border-color var(--poc-transition);
}

.poc-coupon__input:focus {
    outline: 0;
    border-color: var(--poc-primary-bg);
}

.poc-coupon__button {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--poc-radius);
    background: var(--poc-secondary-bg);
    color: var(--poc-secondary-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--poc-transition);
    white-space: nowrap;
}

.poc-coupon__button:hover {
    background: var(--poc-secondary-hover);
}

.poc-coupons-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.poc-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--poc-success);
    border-radius: var(--poc-radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.poc-coupon-tag__code {
    text-transform: uppercase;
}

.poc-coupon-tag__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--poc-transition);
}

.poc-coupon-tag__remove:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Totals
   ============================================ */

.poc-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poc-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.poc-totals__row--total {
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1.5px solid var(--poc-border);
    font-size: 17px;
    font-weight: 600;
}

.poc-muted {
    color: var(--poc-muted);
    font-size: 13px;
}

/* ============================================
   CTA Buttons
   ============================================ */

.poc-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.poc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--poc-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--poc-transition);
    text-align: center;
}

.poc-btn--primary {
    background: var(--poc-primary-bg);
    color: var(--poc-primary-text);
}

.poc-btn--primary:hover {
    background: var(--poc-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.poc-btn--secondary {
    background: var(--poc-secondary-bg);
    color: var(--poc-secondary-text);
}

.poc-btn--secondary:hover {
    background: var(--poc-secondary-hover);
}

.poc-btn:active {
    transform: translateY(0);
}

/* ============================================
   Upsells
   ============================================ */

.poc-upsells {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1.5px solid var(--poc-border);
}

.poc-upsells__title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
}

.poc-upsells__grid {
    display: grid;
    gap: 16px;
}

.poc-upsell {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1.5px solid var(--poc-border);
    border-radius: var(--poc-radius);
    transition: all var(--poc-transition);
}

.poc-upsell:hover {
    border-color: var(--poc-primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.poc-upsell__image {
    width: 70px;
    height: 70px;
    border-radius: var(--poc-radius-sm);
    overflow: hidden;
}

.poc-upsell__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poc-upsell__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poc-upsell__title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.poc-upsell__title a {
    color: inherit;
    text-decoration: none;
}

.poc-upsell__price {
    font-size: 14px;
    font-weight: 600;
    color: var(--poc-primary-bg);
}

.poc-upsell__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--poc-radius-sm);
    background: var(--poc-primary-bg);
    color: var(--poc-primary-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--poc-transition);
    align-self: flex-start;
}

.poc-upsell__add:hover {
    background: var(--poc-primary-hover);
}

/* ============================================
   Floating Trigger Button
   ============================================ */

.poc-floating-trigger {
    position: fixed;
    z-index: 9997;
}

.poc-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--poc-radius-lg);
    background: var(--poc-primary-bg);
    color: var(--poc-primary-text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all var(--poc-transition);
}

.poc-floating-btn {
    width: 56px;
    padding: 0;
}

.poc-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.poc-trigger-btn:active {
    transform: translateY(0);
}

.poc-trigger-icon {
    flex-shrink: 0;
}

.poc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--poc-badge-bg);
    color: var(--poc-badge-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.poc-badge-bounce {
    animation: pocBadgeBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pocBadgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.4);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.2);
    }
}

.poc-floating-btn .poc-badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

/* ============================================
   Toast Notifications
   ============================================ */

.poc-toasts {
    position: fixed;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.poc-toasts--top-right {
    top: 20px;
    right: 20px;
}

.poc-toasts--top-left {
    top: 20px;
    left: 20px;
}

.poc-toasts--bottom-right {
    bottom: 20px;
    right: 20px;
}

.poc-toasts--bottom-left {
    bottom: 20px;
    left: 20px;
}

.poc-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 14px 18px;
    background: var(--poc-text);
    color: var(--poc-bg);
    border-radius: var(--poc-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    animation: pocToastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.poc-toast--success {
    background: var(--poc-success);
}

.poc-toast--error {
    background: var(--poc-remove);
}

@keyframes pocToastIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poc-toast__icon {
    flex-shrink: 0;
}

.poc-toast__message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.poc-toast__action {
    padding: 6px 12px;
    border: 0;
    border-radius: var(--poc-radius-sm);
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--poc-transition);
    white-space: nowrap;
}

.poc-toast__action:hover {
    background: rgba(255, 255, 255, 0.3);
}

.poc-toast__close {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--poc-transition);
}

.poc-toast__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
    .poc-drawer {
        width: 100vw;
        max-width: 100vw;
    }
    
    .poc-header {
        padding: 16px 20px;
    }
    
    .poc-body {
        padding: 12px 20px;
    }
    
    .poc-footer {
        padding: 16px 20px;
    }
    
    .poc-item {
        grid-template-columns: 70px 1fr;
        gap: 12px;
    }
    
    .poc-item__thumb {
        width: 70px;
        height: 70px;
    }
    
    .poc-cta {
        grid-template-columns: 1fr;
    }
    
    .poc-toast {
        min-width: calc(100vw - 40px);
    }
}

/* ============================================
   Available Coupons Display
   ============================================ */

.poc-available-coupons {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--poc-border-color);
}

.poc-available-coupons__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--poc-text-color);
    margin-bottom: 12px;
    opacity: 0.8;
}

.poc-available-coupons__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* COMPACT STYLE */
.poc-available-coupons--compact .poc-available-coupon__compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--poc-secondary-bg);
    border-radius: 6px;
    transition: background 0.2s;
}

.poc-available-coupons--compact .poc-available-coupon__compact:hover {
    background: var(--poc-secondary-hover);
}

.poc-available-coupons--compact .poc-available-coupon__info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.poc-available-coupons--compact .poc-available-coupon__code {
    font-weight: 600;
    font-size: 13px;
    color: var(--poc-text-color);
    font-family: 'Courier New', monospace;
}

.poc-available-coupons--compact .poc-available-coupon__amount {
    font-weight: 600;
    font-size: 13px;
    color: var(--poc-success-color);
}

.poc-available-coupons--compact .poc-available-coupon__min {
    font-size: 11px;
    color: var(--poc-muted-color);
}

.poc-available-coupons--compact .poc-available-coupon__apply {
    padding: 6px 12px;
    font-size: 12px;
    background: var(--poc-primary-bg);
    color: var(--poc-primary-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.poc-available-coupons--compact .poc-available-coupon__apply:hover {
    background: var(--poc-primary-hover);
}

/* CARDS STYLE */
.poc-available-coupons--cards .poc-available-coupon__card {
    padding: 14px;
    background: var(--poc-secondary-bg);
    border: 1px solid var(--poc-border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.poc-available-coupons--cards .poc-available-coupon__card:hover {
    border-color: var(--poc-primary-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.poc-available-coupons--cards .poc-available-coupon__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.poc-available-coupons--cards .poc-available-coupon__code {
    font-weight: 700;
    font-size: 14px;
    color: var(--poc-text-color);
    font-family: 'Courier New', monospace;
}

.poc-available-coupons--cards .poc-available-coupon__badge {
    padding: 2px 8px;
    font-size: 10px;
    background: var(--poc-badge-bg);
    color: var(--poc-badge-text);
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.poc-available-coupons--cards .poc-available-coupon__amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--poc-success-color);
    margin-bottom: 6px;
}

.poc-available-coupons--cards .poc-available-coupon__desc {
    font-size: 12px;
    color: var(--poc-muted-color);
    margin-bottom: 6px;
    line-height: 1.4;
}

.poc-available-coupons--cards .poc-available-coupon__min,
.poc-available-coupons--cards .poc-available-coupon__expires {
    font-size: 11px;
    color: var(--poc-muted-color);
    margin-bottom: 4px;
}

.poc-available-coupons--cards .poc-available-coupon__apply {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--poc-primary-bg);
    color: var(--poc-primary-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.poc-available-coupons--cards .poc-available-coupon__apply:hover {
    background: var(--poc-primary-hover);
}

/* PILLS STYLE */
.poc-available-coupons--pills .poc-available-coupons__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.poc-available-coupons--pills .poc-available-coupon__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--poc-secondary-bg);
    border: 1px solid var(--poc-border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.poc-available-coupons--pills .poc-available-coupon__pill:hover {
    background: var(--poc-primary-bg);
    color: var(--poc-primary-text);
    border-color: var(--poc-primary-bg);
}

.poc-available-coupons--pills .poc-available-coupon__pill:hover .poc-available-coupon__code,
.poc-available-coupons--pills .poc-available-coupon__pill:hover .poc-available-coupon__amount {
    color: var(--poc-primary-text);
}

.poc-available-coupons--pills .poc-available-coupon__code {
    font-weight: 600;
    font-size: 12px;
    color: var(--poc-text-color);
    font-family: 'Courier New', monospace;
}

.poc-available-coupons--pills .poc-available-coupon__amount {
    font-weight: 700;
    font-size: 12px;
    color: var(--poc-success-color);
}

/* CAROUSEL STYLE (horizontal scroll) */
.poc-available-coupons--carousel .poc-available-coupons__list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; /* Space for scrollbar */
}

.poc-available-coupons--carousel .poc-available-coupon {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 220px; /* Fixed width for carousel items */
}

.poc-available-coupons--carousel .poc-available-coupon__compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--poc-secondary-bg);
    border: 1px solid var(--poc-border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.poc-available-coupons--carousel .poc-available-coupon__compact:hover {
    border-color: var(--poc-primary-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.poc-available-coupons--carousel .poc-available-coupon__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poc-available-coupons--carousel .poc-available-coupon__code {
    font-weight: 600;
    font-size: 13px;
    color: var(--poc-text-color);
    font-family: 'Courier New', monospace;
}

.poc-available-coupons--carousel .poc-available-coupon__amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--poc-success-color);
}

.poc-available-coupons--carousel .poc-available-coupon__min {
    font-size: 11px;
    color: var(--poc-muted-color);
}

.poc-available-coupons--carousel .poc-available-coupon__apply {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    background: var(--poc-primary-bg);
    color: var(--poc-primary-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.poc-available-coupons--carousel .poc-available-coupon__apply:hover {
    background: var(--poc-primary-hover);
}

/* Hide scrollbar for carousel but keep functionality */
.poc-available-coupons--carousel .poc-available-coupons__list::-webkit-scrollbar {
    height: 3px;
}

.poc-available-coupons--carousel .poc-available-coupons__list::-webkit-scrollbar-track {
    background: transparent;
}

.poc-available-coupons--carousel .poc-available-coupons__list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

/* FOOTER POSITION: Add max height and scroll */
.poc-footer .poc-available-coupons {
    max-height: 250px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.poc-footer .poc-available-coupons__list {
    max-height: 200px;
}

/* ============================================
   Scroll to Bottom Arrow
   ============================================ */

.poc-scroll-arrow {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--poc-primary-bg);
    color: var(--poc-primary-text);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.poc-scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.poc-scroll-arrow:hover {
    background: var(--poc-primary-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.poc-scroll-arrow:active {
    transform: translateY(0) scale(0.95);
}

/* Mobile: larger touch target */
@media (max-width: 768px) {
    .poc-scroll-arrow {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

/* Animation for arrow bounce */
@keyframes poc-arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.poc-scroll-arrow.visible {
    animation: poc-arrow-bounce 2s ease-in-out infinite;
}

.poc-scroll-arrow:hover {
    animation: none;
}

/* ============================================
   Phase 1 Animations
   ============================================ */

@keyframes poc-bounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
}

@keyframes poc-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes poc-confetti {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx), var(--vy)) rotate(720deg);
        opacity: 0;
    }
}

/* Countdown style amélioré */
.poc-countdown {
    animation: poc-fade-in 0.3s ease-out;
}

/* Custom message style amélioré */
.poc-custom-message {
    animation: poc-fade-in 0.3s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Countdown Timer (Modulo Timer styles)
   ============================================ */

/* Variables CSS countdown */
.poc-countdown {
    --mt-color: var(--poc-primary-bg);
    --mt-text-color: var(--poc-primary-text);
    --mt-font-size: 14px;
    --mt-digits-size: 20px;
    --mt-padding-v: 12px;
    --mt-padding-h: 16px;
    --mt-radius: 8px;
}

/* Base timer */
.mt-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--mt-color);
    color: var(--mt-text-color);
    padding: var(--mt-padding-v) var(--mt-padding-h);
    border-radius: var(--mt-radius);
    font-size: var(--mt-font-size);
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0;
    box-sizing: border-box;
    text-align: center;
}

.mt-timer__content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.mt-timer__emoji {
    font-size: 1.2em;
}

.mt-timer__label {
    opacity: 0.9;
}

.mt-timer__time {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.mt-timer__value {
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
}

.mt-timer__sep {
    opacity: 0.85;
}

/* Expired */
.mt-timer--expired {
    background: #95a5a6;
    opacity: 0.8;
}

.mt-timer__expired-message {
    font-weight: 500;
}

/* ===== 1. INLINE (default) ===== */
/* Already covered by base styles */

/* ===== 2. MINIMAL ===== */
.mt-timer--minimal {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--mt-color);
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-weight: 600;
    border-radius: 0;
}

/* ===== 3. BADGE ===== */
.mt-timer--badge {
    display: inline-flex;
    flex-direction: row;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.mt-timer--badge .mt-timer__emoji {
    font-size: 1em;
}

/* ===== 4. BLOCKS ===== */
.mt-timer--blocks {
    flex-direction: column;
    text-align: center;
}

.mt-timer--blocks .mt-timer__header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mt-timer__blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mt-timer__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 10px 12px;
    min-width: 50px;
}

.mt-timer__block .mt-timer__value {
    font-size: var(--mt-digits-size);
    font-weight: 700;
    line-height: 1.2;
}

.mt-timer__block .mt-timer__unit {
    font-size: calc(var(--mt-digits-size) * 0.4);
    font-weight: 400;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.mt-timer__block-sep {
    font-size: var(--mt-digits-size);
    font-weight: 300;
    opacity: 0.6;
}

/* ===== 5. PROGRESS BAR ===== */
.mt-timer--progress-bar {
    flex-direction: column;
    width: 100%;
}

.mt-timer__progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.mt-timer__progress-header .mt-timer__label {
    flex: 1;
}

.mt-timer__progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.mt-timer__progress-fill {
    height: 100%;
    background: var(--mt-text-color);
    border-radius: 3px;
    transition: width 1s linear;
}

/* ===== 6. CIRCLE / DONUT ===== */
.mt-timer--circle {
    flex-direction: column;
    align-items: center;
    background: transparent;
    color: inherit;
    padding: 0;
}

.mt-timer__circle-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.mt-timer__circle-svg {
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
}

.mt-timer__circle-bg {
    stroke: rgba(0, 0, 0, 0.1);
}

.mt-timer__circle-progress {
    stroke: var(--mt-color);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.mt-timer__circle-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mt-timer__circle-time {
    font-size: var(--mt-digits-size);
    font-weight: 700;
    color: var(--mt-color);
    line-height: 1;
}

.mt-timer__circle-time .mt-timer__unit {
    font-size: 0.5em;
    font-weight: 400;
}

.mt-timer__circle-sub {
    font-size: calc(var(--mt-digits-size) * 0.45);
    color: #666;
    margin-top: 4px;
}

.mt-timer--circle .mt-timer__label {
    margin-top: 10px;
    font-size: var(--mt-font-size);
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== 7. DIGITAL LED ===== */
.mt-timer--digital {
    flex-direction: column;
    background: #111;
    border: 2px solid #333;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.mt-timer--digital .mt-timer__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mt-timer--digital .mt-timer__label {
    color: #888;
    font-size: calc(var(--mt-font-size) * 0.75);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mt-timer__digital-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mt-timer__digital-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mt-timer__digital-digits {
    background: #0a0a0a;
    border-radius: 4px;
    padding: 8px 6px;
    border: 1px solid #222;
}

.mt-timer__digital-digit {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: var(--mt-digits-size);
    font-weight: 700;
    color: var(--mt-color);
    text-shadow: 0 0 10px var(--mt-color), 0 0 20px var(--mt-color);
    letter-spacing: 2px;
}

.mt-timer__digital-label {
    font-size: calc(var(--mt-digits-size) * 0.35);
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

.mt-timer__digital-sep {
    font-size: var(--mt-digits-size);
    color: var(--mt-color);
    opacity: 0.7;
    margin: 0 2px;
    animation: mt-blink 1s infinite;
}

@keyframes mt-blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.2; }
}

/* ===== 8. FLIP CLOCK ===== */
.mt-timer--flip-clock {
    flex-direction: column;
    background: #1a1a2e;
}

.mt-timer--flip-clock .mt-timer__header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mt-timer__flip-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mt-timer__flip-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mt-timer__flip {
    perspective: 300px;
}

.mt-timer__flip-card {
    position: relative;
    width: calc(var(--mt-digits-size) * 1.8);
    height: calc(var(--mt-digits-size) * 2.1);
    background: linear-gradient(180deg, #2d2d44 0%, #1a1a2e 50%, #2d2d44 50%, #1a1a2e 100%);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.mt-timer__flip-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.mt-timer__flip-front {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-timer__flip-card .mt-timer__value {
    font-size: var(--mt-digits-size);
    font-weight: 700;
    color: var(--mt-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mt-timer__flip-group .mt-timer__unit {
    font-size: calc(var(--mt-digits-size) * 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-top: 6px;
}

.mt-timer__flip-sep {
    font-size: var(--mt-digits-size);
    font-weight: 300;
    opacity: 0.5;
    margin-bottom: 20px;
}

.mt-timer__flip.is-flipping .mt-timer__flip-card {
    animation: mt-flip 0.6s ease-in-out;
}

@keyframes mt-flip {
    0% { transform: perspective(300px) rotateX(0); }
    50% { transform: perspective(300px) rotateX(-90deg); }
    100% { transform: perspective(300px) rotateX(0); }
}
