/* ===== MILAA PARTY - CLEAN CSS ===== */
/* NO OLD WEDDING THEME - FRESH START */

/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === MOBILE-FIRST RESPONSIVE BASE === */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container, .row {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
}

body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    color: #333;
    -webkit-text-size-adjust: 100%; /* Prevent text scaling on mobile */
}

/* === CONTAINER SAFETY === */
/* Removed dangerous overrides */

/* === RESPONSIVE IMAGES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === BRAND COLORS & BUTTONS === */
:root {
    --hb-orange: #f7941d; /* Milaa Orange */
    --hb-purple: #732d91; /* Milaa Purple */
    --hb-gray-bg: #f7f7f7;
}

/* Override Bootstrap Primary (Purple) */
.btn-primary {
    background-color: var(--hb-purple);
    border-color: var(--hb-purple);
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #5e2475 !important;
    border-color: #5e2475 !important;
    color: #fff;
}

/* Override Bootstrap Warning (Orange) - make text white */
.btn-warning {
    background-color: var(--hb-orange);
    border-color: var(--hb-orange);
    color: #fff !important;
    font-weight: 600;
}

.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
    background-color: #d67d14 !important;
    border-color: #d67d14 !important;
    color: #fff !important;
}

/* === HERO SLIDER STYLES === */
.party-hero-slider {
    position: relative;
    overflow: hidden;
    /* border-bottom: 5px solid var(--hb-purple); */ /* Optional border */
}

/* =========================================
   NEW HEADER REDESIGN (3-Layer Structure)
   ========================================= */

/* 1. Top Bar */
.header-top-bar {
    background-color: #232f3e;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.header-top-bar a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s;
}
.header-top-bar a:hover {
    color: #fff;
}

/* 2. Main Header */
.header-main {
    background-color: #fff;
    padding: 20px 0;
}
.search-container {
    max-width: 600px;
    width: 100%;
}
.search-input-group {
    border: 2px solid #732d91;
    border-radius: 50px;
    overflow: hidden;
}
.search-input-group .form-control {
    border: none;
    box-shadow: none;
    padding-left: 20px;
    font-size: 15px;
}
.search-input-group .btn-search {
    background-color: #732d91;
    color: #fff;
    border-radius: 0;
    padding: 0 25px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.search-input-group .btn-search:hover {
    background-color: #5a2370;
}

.header-actions .action-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    margin-left: 25px;
    position: relative;
}
.header-actions .action-item:hover .action-label {
    color: #f7941d;
}
.header-actions .icon-box {
    font-size: 24px;
    margin-right: 8px;
    color: #333;
}
.header-actions .action-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}
.header-actions .action-label span {
    font-size: 14px;
    font-weight: 700;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px; /* Adjusted from left for better positioning on icon */
    left: auto;
    background-color: #f7941d;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. Sticky Nav Bar */
.header-nav-sticky {
    background-color: #fff;
    border-bottom: 2px solid #eee;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.all-categories-btn {
    background-color: #732d91;
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 5px 5px 0 0; /* Tab look or just rounded */
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 200px;
}
.all-categories-btn:hover {
    color: #fff;
    background-color: #5a2370;
}
.main-nav-links .nav-link {
    color: #333 !important;
    font-weight: 600;
    padding: 12px 15px !important;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    text-decoration: none; /* Ensure no underline */
}
.main-nav-links .nav-link:visited,
.main-nav-links .nav-link:active,
.main-nav-links .nav-link:focus {
    color: #333 !important;
    border: none;
    outline: none;
}
.main-nav-links .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 50%;
    background-color: #f7941d;
    transition: all 0.3s;
    transform: translateX(-50%);
}
.main-nav-links .nav-link:hover {
    color: #f7941d !important;
}
.main-nav-links .nav-link:hover::after {
    width: 80%;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .header-main {
        padding: 10px 0;
    }
    .header-logo img {
        max-height: 40px;
    }
    .mobile-search-area {
        margin-top: 10px;
        width: 100%;
    }
    .header-actions .action-label {
        display: none;
    }
    .header-actions .action-item {
        margin-left: 15px;
    }
    .header-actions .icon-box {
        margin-right: 0;
        font-size: 22px;
    }
    .cart-badge {
        right: -5px;
    }
}
.party-hero-slider .hero-image-wrapper {
    position: relative;
    height: 600px; /* Desktop height */
    background-color: #333;
}

.party-hero-slider .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.party-hero-slider .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.party-hero-slider .carousel-caption {
    bottom: 0;
    top: 0;
    left: 10%;
    right: 10%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 3rem;
}

.party-hero-slider h2 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.party-hero-slider p.lead {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
}

/* Mobile Adjustments for Slider */
@media (max-width: 768px) {
    .party-hero-slider .hero-image-wrapper {
        height: 400px;
    }
    
    .party-hero-slider h2 {
        font-size: 2rem;
    }
    
    .party-hero-slider p.lead {
        font-size: 1rem;
        display: none; /* Hide description on small screens to save space */
    }
    
    .party-hero-slider .btn {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    .party-hero-slider .carousel-caption {
        left: 5%;
        right: 5%;
        align-items: center;
        text-align: center;
    }
}

/* === HB STYLE LOGIN/REGISTER === */
.hb-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
    max-width: 450px;
    margin: 50px auto;
}

/* Tabs Styling */
.hb-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
}

.hb-tab-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    background: none;
    border: none;
    outline: none;
}

.hb-tab-item:hover {
    color: var(--hb-orange);
}

.hb-tab-item.active {
    color: var(--hb-orange);
    border-bottom: 3px solid var(--hb-orange);
    margin-bottom: -2px;
}

/* Form Elements */
.form-control-hb {
    background-color: var(--hb-gray-bg);
    border: 1px solid transparent;
    height: 48px;
    border-radius: 4px;
    padding-left: 15px;
    font-size: 0.95rem;
    color: #333;
    transition: border 0.3s;
    width: 100%;
    margin-bottom: 15px;
}

.form-control-hb:focus {
    background-color: #fff;
    border-color: var(--hb-orange);
    box-shadow: 0 0 0 2px rgba(247, 148, 29, 0.1);
    outline: none;
}

/* Button */
.btn-hb-primary {
    background-color: var(--hb-orange);
    color: white;
    font-weight: 700;
    height: 48px;
    border-radius: 4px;
    font-size: 1rem;
    border: none;
    transition: background 0.2s;
    width: 100%;
    cursor: pointer;
}

.btn-hb-primary:hover {
    background-color: #e08314; /* Darker Orange */
    color: white;
}

/* Social Login Icons */
.social-login-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
    color: #555;
    font-size: 1.2rem;
    text-decoration: none;
    margin: 0 5px;
}

.social-login-circle:hover {
    border-color: var(--hb-orange);
    color: var(--hb-orange);
    background: rgba(247, 148, 29, 0.05);
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin: 20px 0;
}

.social-divider::before, 
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.social-divider span {
    padding: 0 10px;
}

/* === UTILITIES === */
.hover-neon {
    transition: text-shadow 0.3s ease;
}
.hover-neon:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.col, 
[class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}

/* Typography */
body {
    overflow-x: hidden; /* Prevent horizontal scroll/sliding */
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #222;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Product Card Fixes */
.product-card {
    height: 100%;
    transition: all 0.3s;
}
.product-img-wrapper {
    position: relative; /* CRITICAL FIX */
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    aspect-ratio: 1;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s;
}
.product-info {
    padding: 15px 0;
}
.product-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.new-price {
    color: var(--hb-orange);
    font-weight: 700;
    font-size: 1.1rem;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

/* Footer Dark Mode */
footer, .footer-area {
    background-color: #000 !important;
    color: #fff !important;
}
footer a {
    color: #ccc !important;
}
footer a:hover {
    color: #fff !important;
}

/* === VISUAL CATEGORY SHOWCASE === */
.category-showcase-section {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.category-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}
.category-card:hover {
    transform: translateY(-5px);
    color: var(--hb-purple);
}
.category-img-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
    border-radius: 50%; /* Circular */
    overflow: hidden;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    background-color: #fff;
}
.category-card:hover .category-img-wrapper {
    border-color: var(--hb-orange);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card:hover .category-img {
    transform: scale(1.1);
}
.category-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .category-img-wrapper {
        width: 110px;
        height: 110px;
        border-width: 3px;
    }
    .category-title {
        font-size: 14px;
    }
    .category-showcase-section {
        padding: 40px 0 20px;
    }
}
