/* COZY RAKIN — Modern storefront skin. Replaces the legacy visual language. */
:root{--tp-primary:#5b4bff;--tp-primary-2:#7c5cff;--tp-accent:#00c2a8;--tp-ink:#172033;--tp-muted:#687386;--tp-bg:#f5f7fb;--tp-card:#fff;--tp-border:#e7ebf2;--tp-radius:18px;--tp-shadow:0 14px 40px rgba(23,32,51,.08)}
html{scroll-behavior:smooth;overflow-x:hidden;max-width:100vw}body{background:var(--tp-bg)!important;color:var(--tp-ink)!important;font-family:'Hind Siliguri',sans-serif!important;overflow-x:hidden;max-width:100vw}a{color:inherit}img{border-radius:inherit}
.ss-header-wrapper,.ss-header,.ss-topbar,.header-wrapper{box-shadow:0 6px 24px rgba(23,32,51,.07)!important}
.ss-sidebar{background:linear-gradient(180deg,#111827,#1f2937)!important}.ss-sidebar a{border-radius:12px!important}.ss-sidebar a:hover,.ss-sidebar a.active{background:rgba(124,92,255,.2)!important;color:#fff!important}

/* ===== GLOBAL CONTAINER WIDTH ===== */
.container,.main-container,.content-container{max-width:1240px!important;margin-left:auto!important;margin-right:auto!important}

/* ===== HOMEPAGE FULL-WIDTH MAIN CONTENT WRAPPER ===== */
/* index.php এ content wrap করার জন্য */
.cr-main-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .cr-main-content { padding: 0 8px; }
}

.product-card,.product-item,.category-card,.feature-card,.service-card,.blog-card,.card{border:1px solid var(--tp-border)!important;border-radius:var(--tp-radius)!important;box-shadow:var(--tp-shadow);background:#fff!important;overflow:hidden}
.default-theme-btn{border-radius:12px;border:0;background:linear-gradient(135deg,var(--tp-primary),var(--tp-primary-2));color:#fff;box-shadow:0 10px 22px rgba(91,75,255,.2);font-weight:700;transition:.2s ease}.default-theme-btn:hover{transform:translateY(-2px)}
input,select,textarea{border:1px solid var(--tp-border)!important;border-radius:12px!important;background:#fff!important;color:var(--tp-ink)!important;min-height:44px}input:focus,select:focus,textarea:focus{outline:none!important;border-color:var(--tp-primary)!important;box-shadow:0 0 0 4px rgba(91,75,255,.1)!important}
.section-title,h1,h2,h3,h4{color:var(--tp-ink)}.text-primary{color:var(--tp-primary)!important}.bg-primary{background:var(--tp-primary)!important}
.major-footer{background:linear-gradient(145deg,#111827,#18233a)!important;border-top:0!important;color:#eef2ff!important}.major-footer a:hover{color:#9b8cff!important}.copyright-bar{border-top:1px solid rgba(255,255,255,.08)!important}
@media(max-width:768px){.container,.main-container,.content-container{padding-left:14px!important;padding-right:14px!important}.product-card{border-radius:14px!important}}

/* 3D Elevation on Card Hover */
.hot-card, .product-card, .flash-card, .feat-card, .featured-card, .rt-related-card, .card {
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease !important;
    will-change: transform, box-shadow;
    position: relative;
}

.hot-card:hover, .product-card:hover, .flash-card:hover, .feat-card:hover, .featured-card:hover, .rt-related-card:hover, .card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 22px 38px -8px rgba(0, 0, 0, 0.18), 0 12px 20px -5px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(92, 69, 58, 0.12) !important;
    border-color: #cbd5e1 !important;
    z-index: 10 !important;
}

.hot-card:hover img, .product-card:hover img, .flash-card:hover img, .feat-card:hover img, .featured-card:hover img, .rt-related-card:hover img {
    transform: scale(1.08) !important;
}

.hot-card img, .product-card img, .flash-card img, .feat-card img, .featured-card img, .rt-related-card img {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* ═════════════════════════════════════════════════════════════════════════
   DUAL PRICE BOXES (Red ✖ Regular Price & Green ✔ Sale Price - Image 2 Style)
   ═════════════════════════════════════════════════════════════════════════ */
.cr-dual-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
}

.cr-price-badge {
    flex: 1;
    display: flex;
    align-items: center;
    border-radius: 7px;
    overflow: hidden;
    height: 30px;
    min-width: 0;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.cr-reg-badge {
    background: #fff5f5;
    border: 1.2px solid #fecaca;
}

.cr-sale-badge {
    background: #f0fdf4;
    border: 1.2px solid #bbf7d0;
}

[data-theme-mode="dark"] .cr-reg-badge {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

[data-theme-mode="dark"] .cr-sale-badge {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

.cr-badge-icon {
    width: 24px;
    height: 100%;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cr-reg-badge .cr-badge-icon {
    background: #ef4444;
}

.cr-sale-badge .cr-badge-icon {
    background: #22c55e;
}

.cr-badge-val {
    flex: 1;
    text-align: center;
    font-size: 12.5px;
    font-weight: 800;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
    letter-spacing: -0.2px;
}

.cr-reg-badge .cr-badge-val {
    color: #ef4444;
    text-decoration: line-through;
}

.cr-sale-badge .cr-badge-val {
    color: #16a34a;
}

[data-theme-mode="dark"] .cr-sale-badge .cr-badge-val {
    color: #4ade80;
}

/* ═════════════════════════════════════════════════════════════════════════
   ACTION BUTTON ROW: BIG GREEN SHIMMER ORDER BUTTON & SQUARE GLOSSY CART
   ═════════════════════════════════════════════════════════════════════════ */
.cr-card-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.cr-btn-order-glow {
    flex: 1;
    height: 38px;
    background: linear-gradient(135deg, var(--tp-primary, #22c55e) 0%, var(--tp-primary-2, #16a34a) 100%);
    border-radius: 9px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--tp-primary-glow, rgba(22, 163, 74, 0.35));
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.cr-btn-order-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: crShimmerSweep 2.5s infinite ease-in-out;
}

@keyframes crShimmerSweep {
    0% { left: -100%; }
    40%, 100% { left: 120%; }
}

.cr-bolt-anim {
    color: #ffffff;
    font-size: 12.5px;
    animation: boltPulse 1.5s infinite alternate;
}

@keyframes boltPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 1px #fff); }
    100% { transform: scale(1.25) rotate(-5deg); filter: drop-shadow(0 0 5px #fff); }
}

.cr-btn-order-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--tp-primary-glow, rgba(22, 163, 74, 0.5));
    background: linear-gradient(135deg, var(--tp-primary-2, #16a34a) 0%, var(--tp-primary, #15803d) 100%);
}

.cr-btn-order-glow:active {
    transform: translateY(0);
}

.cr-btn-cart-glass {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #ffffff;
    border: 1.5px solid var(--tp-border, #86efac);
    border-radius: 9px;
    color: var(--tp-primary, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme-mode="dark"] .cr-btn-cart-glass {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--tp-accent, #4ade80);
}

.cr-btn-cart-glass:hover {
    background: var(--tp-accent-light, #f0fdf4);
    border-color: var(--tp-primary, #22c55e);
    color: var(--tp-primary, #15803d);
    transform: scale(1.08);
    box-shadow: 0 4px 12px var(--tp-primary-glow, rgba(22, 163, 74, 0.25));
}

[data-theme-mode="dark"] .cr-btn-cart-glass:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--tp-primary, #4ade80);
    color: #ffffff;
}

.cr-btn-cart-glass:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .cr-price-badge { height: 26px; }
    .cr-badge-icon { width: 20px; font-size: 8.5px; }
    .cr-badge-val { font-size: 11px; }
    .cr-btn-order-glow { height: 35px; font-size: 12.5px; }
    .cr-btn-cart-glass { width: 35px; height: 35px; min-width: 35px; font-size: 13.5px; }
    .cr-dual-price-row { margin-bottom: 8px; gap: 4px; }
    .cr-card-action-row { gap: 6px; }
}

/* Global Action Buttons and Pulse Animations (matching demo.uniskinglow.com) */
.u-pulse-icon { animation: iconPulse 1.2s infinite !important; }
@keyframes iconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.u-btn-action-row { 
    display: flex !important; 
    gap: 8px !important; 
    margin-top: auto !important; 
    width: 100% !important;
}

.u-btn-cart-add { 
    background: #E2E2E2 !important; 
    background-color: #E2E2E2 !important;
    color: #000000 !important; 
    flex: 1 !important; 
    padding: 8px 4px !important; 
    font-size: 11px !important; 
    font-weight: 700 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important;
    gap: 3px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    animation: cartPulse 2s infinite ease-in-out !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}
.u-btn-cart-add span {
    color: #000000 !important;
    font-weight: 700 !important;
}
.u-btn-cart-add:hover {
    background: #d4d4d4 !important;
    background-color: #d4d4d4 !important;
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25) !important;
    color: #000000 !important;
}
.u-btn-cart-add i {
    font-size: 14px !important;
    color: #000000 !important;
    transition: transform 0.2s ease !important;
}
.u-btn-cart-add:hover i,
.u-btn-cart-add:hover span {
    transform: scale(1.15) !important;
    color: #000000 !important;
}

.u-btn-order-now { 
    background: #5C453A !important; 
    color: #ffffff !important; 
    flex: 1 !important; 
    padding: 8px 4px !important; 
    font-size: 11px !important; 
    font-weight: 700 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important;
    gap: 3px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    animation: orderPulse 2s infinite ease-in-out !important;
    transition: all 0.25s ease !important;
}
.u-btn-order-now:hover {
    background: #46342b !important;
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 8px 22px rgba(92, 69, 58, 0.55) !important;
    color: #ffffff !important;
}
.u-btn-order-now i {
    font-size: 14px !important;
    color: #ffffff !important;
    transition: transform 0.2s ease !important;
}
.u-btn-order-now:hover i {
    transform: scale(1.15) !important;
    color: #ffffff !important;
}

@keyframes cartPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        transform: scale(1);
    }
}

@keyframes orderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(92, 69, 58, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(92, 69, 58, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(92, 69, 58, 0);
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .u-btn-action-row { gap: 6px !important; }
    .u-btn-cart-add, .u-btn-order-now {
        padding: 6px 2px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }
    .u-btn-cart-add i, .u-btn-order-now i {
        font-size: 13px !important;
    }
}

/* Universal Clean Text Wrapping Rules (Multi-line wrap without clipping/truncation) */
.product-title,
.product-name,
.item-title,
.item-name,
.checkout-item h4,
.cart-item-title,
.order-product-title,
.cust-addr-val,
.cust-val-name {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.4 !important;
}
