/* ========== SIDE PANEL (shipping/faqs/sizing) ========== */
.kpt-side-panel-links {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; margin-bottom: 8px;
}
.kpt-side-panel-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    background: #f5f5f5; border: 1px solid #e2e2e2; border-radius: 6px;
    cursor: pointer; font-size: 14px; font-weight: 500; color: #151515;
    transition: background 0.2s, border-color 0.2s; line-height: 1;
}
.kpt-side-panel-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.kpt-side-panel-link:hover { background: #eaeaea; border-color: #151515; }

.kpt-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99998; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.kpt-drawer-overlay.active { opacity: 1; visibility: visible; }

.kpt-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 90vw;
    background: #fff; z-index: 99999; transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.kpt-drawer.open { transform: translateX(0); }
@media (max-width:500px) { .kpt-drawer { width: 100vw; max-width: 100vw; } }

.kpt-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e2e2e2; flex-shrink: 0; }
.kpt-drawer-header h4 { margin: 0; font-size: 18px; font-weight: 600; }
.kpt-drawer-close { background: none; border: none; cursor: pointer; padding: 4px; color: #151515; line-height: 1; }
.kpt-drawer-close svg { display: block; }

.kpt-drawer-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.kpt-drawer-tabs { display: flex; border-bottom: 1px solid #e2e2e2; flex-shrink: 0; }
.kpt-drawer-tab {
    flex: 1; padding: 14px 8px; background: none; border: none;
    border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px;
    font-weight: 500; color: #666; text-align: center; transition: color 0.2s, border-color 0.2s;
}
.kpt-drawer-tab:hover { color: #151515; }
.kpt-drawer-tab.active { color: #151515; border-bottom-color: #151515; }

.kpt-drawer-panels { flex: 1; overflow-y: auto; padding: 24px; }
.kpt-drawer-panel { display: none; }
.kpt-drawer-panel.active { display: block; }
.kpt-drawer-panel h5 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.kpt-drawer-panel p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #333; }
.kpt-drawer-panel img { max-width: 100%; height: auto; }

/* ========== SCROLLING BAR ========== */
.kpt-scrolling-bar {
    background-color: var(--kpt-scroll-bg, #151515);
    color: var(--kpt-scroll-color, #ffffff);
    overflow: hidden; position: relative; width: 100%; margin-top: 0;
}
.kpt-scrolling-inner {
    display: flex; align-items: center; white-space: nowrap;
    font-size: 18px; font-weight: 600; padding: 14px 0; overflow: hidden;
}
.kpt-scrolling-inner.direction-left > div { animation: kpt-marquee-left var(--kpt-scroll-speed,10s) linear infinite; }
.kpt-scrolling-inner > div { display: flex; align-items: center; flex-shrink: 0; }
.kpt-scrolling-item { display: inline-flex; align-items: center; padding: 0 30px; }
@keyframes kpt-marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ========== CART DRAWER ========== */
.kpt-cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99996;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.kpt-cart-overlay.active { opacity: 1; visibility: visible; }

.kpt-cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 90vw;
    background: #fff; z-index: 99997; transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.kpt-cart-drawer.open { transform: translateX(0); }
@media (max-width:500px) { .kpt-cart-drawer { width: 100vw; max-width: 100vw; } }

.kpt-cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid #e2e2e2; flex-shrink: 0;
}
.kpt-cart-header h4 { margin: 0; font-size: 18px; font-weight: 600; }
.kpt-cart-close { background: none; border: none; cursor: pointer; padding: 4px; color: #151515; line-height: 1; }
.kpt-cart-close svg { display: block; }

.kpt-cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.kpt-cart-empty { text-align: center; color: #999; padding: 40px 0; }
.kpt-cart-count { font-size: 14px; color: #666; margin-bottom: 16px; }
.kpt-cart-items { display: flex; flex-direction: column; gap: 12px; }
.kpt-cart-item {
    display: flex; gap: 12px; padding: 12px; background: #f9f9f9;
    border-radius: 8px; align-items: center;
}
.kpt-cart-item-img { width: 50px; height: 50px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.kpt-cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kpt-cart-item-info { display: flex; flex-direction: column; gap: 2px; }
.kpt-cart-item-name { font-size: 14px; font-weight: 500; color: #151515; }
.kpt-cart-item-qty { font-size: 13px; color: #666; }
.kpt-cart-total {
    padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #e2e2e2;
    font-size: 15px; display: flex; justify-content: space-between;
}

.kpt-cart-footer {
    padding: 16px 20px 20px; border-top: 1px solid #e2e2e2;
    display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
}
.kpt-cart-checkout-btn {
    display: block; width: 100%; padding: 14px; background: #000; color: #fff;
    border: none; border-radius: 20px; font-size: 15px; font-weight: 500;
    text-align: center; cursor: pointer; text-decoration: none; letter-spacing: 1px;
    transition: opacity 0.2s;
}
.kpt-cart-checkout-btn:hover { opacity: 0.85; color: #fff; }
.kpt-cart-continue-btn {
    display: block; width: 100%; padding: 12px; background: transparent; color: #000;
    border: 2px solid #000; border-radius: 20px; font-size: 14px; font-weight: 500;
    text-align: center; cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.kpt-cart-continue-btn:hover { background: #000; color: #fff; }
.kpt-cart-coupon { margin-top: 4px; }
.kpt-coupon-form { display: flex; gap: 6px; }
.kpt-coupon-input {
    flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 20px;
    font-size: 13px; outline: none;
}
.kpt-coupon-input:focus { border-color: #000; }
.kpt-coupon-btn {
    padding: 10px 18px; background: #000; color: #fff; border: none;
    border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.kpt-coupon-btn:hover { opacity: 0.85; }