/* ==========================================================================
   BAD ICON STORE — LUXURY UI/UX ENHANCEMENTS & CRO IMPROVEMENTS
   ========================================================================== */

/* 1. Global Polish & Font Refinements */
:root {
    --badicon-gold: #c5a880;
    --badicon-dark: #111111;
    --badicon-light: #fafafa;
    --badicon-border: #e8e8e8;
    --badicon-accent: #222222;
}

/* Ensure smooth scrolling & no horizontal overflow */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* 2. Brand Trust & Polish Production Value Bar */
.badicon-value-bar {
    background-color: #111111;
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}
.badicon-value-bar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.badicon-value-bar .separator {
    opacity: 0.3;
}
@media (max-width: 768px) {
    .badicon-value-bar span:not(:first-child) {
        display: none;
    }
}

/* 3. Modern Luxury Slide-Out Cart Drawer */
.badicon-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.badicon-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.badicon-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.badicon-cart-drawer.active {
    transform: translateX(0);
}

.badicon-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--badicon-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.badicon-drawer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--badicon-dark);
}
.badicon-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #888;
    transition: color 0.2s;
}
.badicon-drawer-close:hover {
    color: #000;
}

/* Free Shipping Progress Indicator */
.badicon-free-shipping-meter {
    padding: 14px 24px;
    background: #fdfbf7;
    border-bottom: 1px solid #f1ece4;
    font-size: 12px;
}
.badicon-meter-text {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    color: #444;
}
.badicon-meter-bar {
    width: 100%;
    height: 4px;
    background: #e2ded7;
    border-radius: 2px;
    overflow: hidden;
}
.badicon-meter-fill {
    height: 100%;
    background: var(--badicon-gold);
    width: 65%;
    transition: width 0.4s ease;
}

.badicon-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.badicon-cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.badicon-cart-item img {
    width: 80px;
    height: 105px;
    object-fit: cover;
    border-radius: 2px;
}
.badicon-item-info {
    flex: 1;
}
.badicon-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111;
}
.badicon-item-meta {
    font-size: 11px;
    color: #777;
    margin-bottom: 8px;
}
.badicon-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.badicon-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--badicon-border);
    background: #ffffff;
}
.badicon-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.badicon-btn-checkout {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--badicon-dark);
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: background 0.25s ease;
    cursor: pointer;
}
.badicon-btn-checkout:hover {
    background: #333333;
    color: #ffffff;
}
.badicon-payment-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 11px;
    color: #888;
}

/* 4. Mobile Sticky Add-to-Cart Bar on PDP */
.badicon-sticky-pdp {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99990;
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.badicon-sticky-pdp.visible {
    transform: translateY(0);
}
.badicon-sticky-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}
.badicon-sticky-thumb {
    width: 44px;
    height: 58px;
    object-fit: cover;
    border-radius: 2px;
}
.badicon-sticky-details {
    display: flex;
    flex-direction: column;
}
.badicon-sticky-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.badicon-sticky-price {
    font-size: 13px;
    font-weight: 700;
    color: #222;
}
.badicon-sticky-btn {
    padding: 12px 22px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.badicon-sticky-btn:hover {
    background: #333333;
}

/* 5. Interactive Size Guide Modal */
.badicon-sizeguide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-decoration: underline;
    cursor: pointer;
    margin: 10px 0;
    color: #555;
    background: none;
    border: none;
    padding: 0;
}
.badicon-sizeguide-btn:hover {
    color: #000;
}

.badicon-sizeguide-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 600px;
    max-width: 92vw;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.badicon-sizeguide-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.badicon-sizeguide-modal table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}
.badicon-sizeguide-modal th, .badicon-sizeguide-modal td {
    border: 1px solid #e5e5e5;
    padding: 10px;
    text-align: center;
}
.badicon-sizeguide-modal th {
    background: #f8f8f8;
    font-weight: 600;
}


/* ==========================================================================
   BAD ICON STORE — VIP AUTHENTICATION (INSTAGRAM & ONET.PL)
   ========================================================================== */

.badicon-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badicon-auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.badicon-auth-modal {
    background: #ffffff;
    width: 440px;
    max-width: 92vw;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.badicon-auth-overlay.active .badicon-auth-modal {
    transform: translateY(0) scale(1);
}

.badicon-auth-header {
    padding: 30px 30px 15px 30px;
    text-align: center;
    position: relative;
}
.badicon-auth-header h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    font-weight: 700;
}
.badicon-auth-header p {
    margin: 0;
    font-size: 13px;
    color: #666;
    letter-spacing: 0.3px;
}
.badicon-auth-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}
.badicon-auth-close:hover {
    color: #000;
}

.badicon-auth-body {
    padding: 10px 30px 30px 30px;
}

.badicon-social-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

/* Instagram Login Button */
.badicon-btn-ig {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.badicon-btn-ig:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.45);
}
.badicon-btn-ig svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Onet.pl Login Button */
.badicon-btn-onet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: #111111;
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, background 0.15s ease;
}
.badicon-btn-onet:hover {
    background: #252525;
    transform: translateY(-1px);
}
.badicon-onet-dot {
    width: 16px;
    height: 16px;
    background: #ffe600;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 2px solid #ffffff;
}

.badicon-auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}
.badicon-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eaeaea;
}
.badicon-auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 14px;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badicon-auth-form input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    font-size: 13px;
    box-sizing: border-box;
    border-radius: 2px;
}
.badicon-auth-form input:focus {
    outline: none;
    border-color: #111;
}
.badicon-btn-submit {
    width: 100%;
    padding: 13px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.badicon-btn-submit:hover {
    background: #333;
}

/* User Profile Badge in Header */
.badicon-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #ffffff;
    position: relative;
    letter-spacing: 0.5px;
}
.badicon-user-badge:hover {
    border-color: #111;
}
.badicon-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.badicon-user-avatar.ig {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}
.badicon-user-avatar.onet {
    background: #ffe600;
    color: #111;
}

.badicon-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 10000;
    display: none;
}
.badicon-user-dropdown.show {
    display: block;
}
.badicon-dropdown-item {
    display: block;
    padding: 10px 18px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}
.badicon-dropdown-item:hover {
    background: #f7f7f7;
    color: #000;
}
.badicon-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

/* Toast Notifications */
.badicon-auth-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #111;
    color: #fff;
    padding: 14px 22px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    font-size: 13px;
    z-index: 100001;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.badicon-auth-toast.show {
    transform: translateY(0);
    opacity: 1;
}
