/* ═══════════════════════════════════════════
   DHAKA PRINTING HOUSE — Premium Animations
   ═══════════════════════════════════════════ */

/* ── Category Card Animations ── */
.dp_box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    background: #fff;
}
.dp_box:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    transform: translateY(-6px);
}
.dp_thumb {
    position: relative;
    overflow: hidden;
}
.dp_thumb img {
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    border-radius: 12px 12px 0 0;
}
.dp_box:hover .dp_thumb img {
    transform: scale(1.08) !important;
}
/* Shimmer overlay on hover */
.dp_thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.dp_box:hover .dp_thumb::after {
    transform: translateX(100%);
}
/* Category title slide-up */
.dp_info {
    overflow: hidden;
    padding: 10px 12px 12px;
}
.dp_title {
    transition: color 0.25s ease;
    font-size: 14px;
    font-weight: 600;
}
.dp_box:hover .dp_title {
    color: #e05b00;
}

/* ── BC Box (Card style) Animations ── */
.bc_box {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none !important;
}
.bc_box .card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.bc_box:hover .card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.bc_box .card-img {
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    filter: brightness(0.85);
}
.bc_box:hover .card-img {
    transform: scale(1.1) !important;
    filter: brightness(0.75);
}
/* Slide-up overlay label */
.bc_box .card-img-overlay {
    transition: background 0.35s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.bc_box:hover .card-img-overlay {
    background: linear-gradient(to top, rgba(220,80,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.bc_box .custom_button2 {
    transition: letter-spacing 0.3s ease, background 0.3s ease;
}
.bc_box:hover .custom_button2 {
    letter-spacing: 1px;
}

/* ── Mega Menu Banner Animation ── */
.menu_banner a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
}
.menu_banner img {
    transition: transform 0.5s ease, filter 0.5s ease;
    border-radius: 10px;
}
.menu_banner a:hover img {
    transform: scale(1.06);
    filter: brightness(0.9) saturate(1.2);
}

/* ── Homepage Slider Enhanced Animation ── */
.slider_section .mySlides.active img {
    transform: scale(1.08) !important;
    transition: transform 12s ease-out !important;
}
.slider_content h2 {
    animation: slideInUp 0.8s ease both;
}
.slider_content p, .slider_content .btn_slider {
    animation: slideInUp 0.8s ease 0.2s both;
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Product Card Animations ── */
.product_card, .product_item, .p_card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}
.product_card:hover, .product_item:hover, .p_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ── Page Load Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.category_section {
    animation: fadeInUp 0.6s ease both;
}

/* ── Pulse Badge ── */
@keyframes pulse-orange {
    0%   { box-shadow: 0 0 0 0 rgba(224,91,0,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(224,91,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(224,91,0,0); }
}
.featured_badge, .new_badge {
    animation: pulse-orange 2s infinite;
}

/* ── Button Hover Effects ── */
.btn_slider, .custom_button, .custom_button2 {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn_slider::after, .custom_button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.btn_slider:hover::after, .custom_button:hover::after {
    transform: scaleX(1);
}

/* ── Homepage Category Grid ── */
.all_category_section a, .lac_item a {
    transition: all 0.3s ease;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.all_category_section a:hover, .lac_item a:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ── Smooth scroll & transitions ── */
* { scroll-behavior: smooth; }
img { transition: opacity 0.3s ease; }

/* ── Top banner text animation ── */
.text_slider_wrap {
    animation: marqueeFloat 0.5s ease;
}
@keyframes marqueeFloat {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Category hero banner (on category page) ── */
.c_breadcrumb {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 12px 0;
    border-bottom: 2px solid rgba(255,120,0,0.4);
}
.c_breadcrumb a, .c_breadcrumb span {
    color: rgba(255,255,255,0.85) !important;
    font-size: 13px;
}
.c_breadcrumb a:hover { color: #ff7a00 !important; text-decoration: none !important; }

/* ── Mobile menu smooth open ── */
#collapseLeftMenu {
    transition: all 0.3s ease;
}
