/* ==========================================================================
   DAVICI THEME & SILKSPIRE LUXURY ECOMMERCE STYLES
   ========================================================================== */

/* ===== 1. HEADER & NAVBAR ===== */
.bwp-header {
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.header-wrapper {
    padding: 0.5rem 0;
}

.header-row {
    min-height: 64px;
    gap: 1.5rem;
}

/* Logo */
.header-logo-wrap {
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 52px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.02);
}

.logo-mobile .logo-img {
    max-height: 40px;
    max-width: 170px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    text-transform: uppercase;
}

/* Header Social Icons */
.header-social {
    gap: 0.4rem;
}

.header-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.25s ease;
}

.header-social-link:hover {
    background: #febf0a;
    border-color: #febf0a;
    color: #000000;
    transform: translateY(-2px);
}

/* Main Navigation Menu */
.header-menu {
    display: flex;
    justify-content: center;
}

.header-menu ul.std-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.25rem;
}

.header-menu ul.std-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.header-menu ul.std-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0.85rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-menu ul.std-menu > li > a:hover,
.header-menu ul.std-menu > li.current-menu-item > a {
    color: #b45309;
    background: #fffbeb;
}

.menu-arrow {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.header-menu ul.std-menu > li:hover .menu-arrow {
    transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.header-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 0.5rem 0;
    list-style: none;
    display: none;
    z-index: 1050;
}

.header-menu ul.std-menu > li:hover > ul.sub-menu {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-menu ul.sub-menu li {
    margin: 0;
}

.header-menu ul.sub-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-menu ul.sub-menu li a:hover {
    background: #f8fafc;
    color: #b45309;
    padding-left: 1.45rem;
}

/* Header Actions: Search, Account, Cart */
.header-actions {
    gap: 0.75rem;
}

.navbar-search-form {
    background: #f1f5f9;
    border-radius: 24px;
    padding: 3px 6px 3px 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}

.navbar-search-form:focus-within {
    border-color: #febf0a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(254, 191, 10, 0.15);
}

.navbar-search-input {
    border: none !important;
    background: transparent !important;
    font-size: 0.85rem;
    width: 140px;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0;
}

.navbar-search-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0.25rem 0.5rem;
}

.navbar-search-btn:hover {
    color: #0f172a;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    color: #b45309;
    background: #f8fafc;
}

.davici-topcart {
    position: relative;
}

.davici-topcart .cart-icon {
    font-size: 1.15rem;
    position: relative;
    padding: 0.5rem;
}

.davici-topcart .cart-count,
.cart-icon-mobile .cart-count {
    background: #febf0a;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -2px;
    right: -2px;
    transition: transform 0.2s ease;
}

@keyframes cartCountPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.cart-count.cart-count-pop {
    animation: cartCountPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile Header */
.header-mobile {
    padding: 0.65rem 0;
    background: #fff;
    border-bottom: 1px solid #eef2f6;
}

.header-mobile .logo-img {
    max-height: 38px;
}

.navbar-toggle-icon {
    background: none;
    border: none;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
}

.cart-icon-mobile {
    position: relative;
    color: #0f172a;
    font-size: 1.25rem;
    text-decoration: none;
}

.mobile-menu-panel {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.mobile-menu-panel.active {
    display: block;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: #1e293b;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}


/* ===== 2. HERO SLIDER SECTION ===== */
.davici-hero-section {
    position: relative;
    background: #0f172a;
    overflow: hidden;
}

.davici-hero-slider {
    position: relative;
    min-height: 520px;
}

.davici-hero-slide {
    position: relative;
    min-height: 520px;
    display: flex !important;
    align-items: center;
}

.davici-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.davici-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.davici-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.15) 100%);
}

.hero-slide-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 4rem 0;
}

.davici-hero-content {
    max-width: 650px;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: #febf0a;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-collection {
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .davici-hero-slider,
    .davici-hero-slide {
        min-height: 400px;
    }
    .hero-title {
        font-size: 1.85rem;
    }
}

.hero-cta.button-slider {
    background: #febf0a;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2.25rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(254, 191, 10, 0.4);
}

.hero-cta.button-slider:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}


/* ===== 3. CATEGORIES SECTION (Bagisto & Modern Curated) ===== */
.shop-by-categories {
    padding: 4rem 0 3.5rem;
    background: #ffffff;
}

.title-block-2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.categories-round-slider-outer {
    position: relative;
}

.categories-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .categories-grid-wrap {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .categories-grid-wrap {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575px) {
    .categories-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-round-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none !important;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-round-item:hover {
    transform: translateY(-6px);
}

.category-round-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid #f1f5f9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    background: #f8fafc;
    position: relative;
}

.category-round-circle img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

.category-round-item:hover .category-round-circle {
    border-color: #febf0a;
    box-shadow: 0 10px 25px rgba(254, 191, 10, 0.3);
}

.category-round-item:hover .category-round-circle img {
    transform: scale(1.12);
}

.category-round-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.category-round-item:hover .category-round-name {
    color: #b45309;
}

.category-round-subcount {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 3px;
}

.category-scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-scroll-arrow:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}


/* ===== 4. PRODUCTS SECTION ===== */
.product-card-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-wrapper:hover {
    transform: translateY(-6px);
}

.product-card {
    border-radius: 16px !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-color: #e2e8f0 !important;
}

.product-image-container {
    height: 220px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-wrapper:hover .product-image {
    transform: scale(1.06);
}

.product-overlay {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}


/* ===== 5. UTILITIES & OVERLAYS ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.search-overlay.active {
    display: flex;
}

.close-search {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
}

.search-overlay-box {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    width: 100%;
    max-width: 600px;
}

.search-overlay-box input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 1.15rem;
    padding: 0.5rem;
}

.search-overlay-box button {
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 1.15rem;
}

/* Back to Top */
.back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.25s ease;
}

.back-top:hover {
    background: #febf0a;
    color: #000;
    transform: translateY(-3px);
}

.back-top.show {
    display: flex;
}

/* ===== 6. LUXURY DARK FOOTER ===== */
#bwp-footer.footer-dark,
.bwp-footer.footer-dark,
footer.bwp-footer {
    background: #0f172a !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

#bwp-footer.footer-dark * {
    box-sizing: border-box;
}

/* Footer Newsletter Section */
.footer-newsletter {
    background: #111827 !important;
    border-top: 3px solid #febf0a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 4.5rem 0 3.5rem !important;
    position: relative;
}

.footer-newsletter h2 {
    color: #ffffff !important;
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.5px;
}

.footer-newsletter p {
    color: #94a3b8 !important;
    font-size: 1rem !important;
    margin: 0 !important;
    line-height: 1.5;
}

.newsletter-form {
    margin: 0;
}

.newsletter-inner {
    display: flex;
    gap: 0.75rem;
    max-width: 520px;
    margin-left: auto;
}

.newsletter-inner .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.newsletter-inner .form-control::placeholder {
    color: #64748b !important;
}

.newsletter-inner .form-control:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #febf0a !important;
    box-shadow: 0 0 0 3px rgba(254, 191, 10, 0.25) !important;
    color: #ffffff !important;
}

.newsletter-inner .btn-newsletter {
    background: #febf0a !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.75px !important;
    padding: 0.85rem 2rem !important;
    border-radius: 50px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem !important;
}

.newsletter-inner .btn-newsletter:hover {
    background: #f59e0b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 191, 10, 0.4);
    color: #000000 !important;
}

/* Footer Links Columns */
.footer-links {
    background: #0f172a !important;
    padding: 4.5rem 0 3.5rem !important;
}

.footer-links .footer-title {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-bottom: 0.75rem !important;
}

.footer-links .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #febf0a;
    border-radius: 2px;
}

.footer-links .list-link {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links .list-link li {
    margin-bottom: 0.75rem !important;
}

.footer-links .list-link a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.92rem !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
}

.footer-links .list-link a:hover {
    color: #febf0a !important;
    transform: translateX(5px) !important;
    text-decoration: none !important;
}

/* Footer Copyright / Bottom Bar */
.footer-copyright {
    background: #080c14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.75rem 0 !important;
}

.footer-copyright .copyright-text {
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    margin: 0 !important;
    display: inline-block;
}

.footer-copyright .list-link-copyright {
    list-style: none !important;
    display: inline-flex !important;
    gap: 1.5rem !important;
    margin: 0 0 0 1.5rem !important;
    padding: 0 !important;
    vertical-align: middle;
}

.footer-copyright .list-link-copyright li {
    display: inline-block;
    margin: 0;
}

.footer-copyright .list-link-copyright a {
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.footer-copyright .list-link-copyright a:hover {
    color: #febf0a !important;
}

.footer-copyright .payment-text {
    color: #64748b !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    .newsletter-inner {
        margin-left: 0;
        max-width: 100%;
    }
    .footer-copyright .list-link-copyright {
        margin-left: 0.75rem;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-newsletter {
        padding: 3rem 0 2.5rem !important;
    }
    .footer-links {
        padding: 3rem 0 2rem !important;
    }
    .newsletter-inner {
        flex-direction: column;
    }
    .newsletter-inner .btn-newsletter {
        width: 100%;
    }
    .footer-copyright .list-link-copyright {
        display: flex;
        justify-content: center;
        margin: 0.5rem 0 0 0 !important;
    }
}

