/* ==========================================================================
   4BUDDY CLOTHING - LARAVEL ENTERPRISE LUXURY DESIGN SYSTEM
   Inspired by Libas UX/UI | Styled with 4Buddy Logo Color Palette
   ========================================================================== */

:root {
    /* 4Buddy Logo Color Combination */
    --primary: #E6007E;
    --primary-hover: #C8006C;
    --primary-light: #FFE5F1;
    --secondary: #00C2FF;
    --secondary-dark: #0088B3;
    --accent-gold: #FACC15;
    --accent-gold-dark: #CA8A04;

    /* Neutrals & Surfaces */
    --dark: #0F172A;
    --slate: #1E293B;
    --gray-text: #64748B;
    --border: #E2E8F0;
    --surface: #FFFFFF;
    --surface-soft: #FFF8FA;
    --bg-page: #F8FAFC;

    /* Typography */
    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 0 20px rgba(230, 0, 126, 0.25);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR (4Buddy Magenta Gradient)
   ========================================================================== */
.announcement-bar {
    background: linear-gradient(90deg, #E6007E 0%, #B80065 50%, #E6007E 100%);
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.announcement-badge {
    background: var(--accent-gold);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ==========================================================================
   LUXURY HEADER & NAVBAR
   ========================================================================== */
.site-header, .libas-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: 84px !important;
    max-height: 84px !important;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img, img.header-logo, .header-logo img, .header-logo {
    max-height: 80px !important;
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    vertical-align: middle;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

/* Dynamic Search Bar */
.header-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px 16px;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: var(--surface);
}

.search-input-wrapper input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
    color: var(--dark);
}

.search-input-wrapper button {
    border: none;
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-wrapper button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Header Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Header Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--dark);
    font-size: 1.15rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   HERO BANNER POSTER (Pure Clickable Banner - No Text / Button / Filter Overlays)
   ========================================================================== */
.hero-poster-banner {
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: cover;
    object-position: center top;
    display: block;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-item a:hover .hero-poster-banner {
    transform: scale(1.012);
}
@media (max-width: 1024px) {
    .hero-poster-banner {
        max-height: 440px;
    }
}
@media (max-width: 768px) {
    .hero-poster-banner {
        max-height: 340px;
    }
}

/* ==========================================================================
   LIBAS-STYLE MULTI-FILTER SIDEBAR & COLLECTION PAGE
   ========================================================================== */
.shop-layout {
    max-width: 1440px;
    margin: 24px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.filter-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 96px;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.clear-btn {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.filter-group {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--slate);
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    border-radius: 4px;
}

/* Color Swatches inside Filter */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.color-swatch.active, .color-swatch:hover {
    border-color: var(--dark);
    transform: scale(1.15);
}

/* Size Chips */
.size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-chip {
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.size-chip.active, .size-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================================================
   PRODUCT CARDS (Libas Inspired Luxury Grid)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card {
    position: relative !important;
    overflow: visible !important;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border, #E2E8F0);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-thumb {
    position: relative !important;
    aspect-ratio: 3/4 !important;
    overflow: visible !important;
    background: #F8FAFC !important;
    border-radius: 12px 12px 0 0 !important;
    clip-path: inset(-20px -20px 0px -20px round 12px 12px 0 0) !important;
}

.product-thumb > a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
    position: absolute !important;
    inset: 0 !important;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

/* RIBBON CORNER BADGE (adha card se bahar and adha card pr) */
.tag-badge {
    position: absolute !important;
    top: 8px !important;
    left: -6px !important;
    background: var(--primary, #E6007E) !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 3px 4px 4px 0 !important;
    letter-spacing: 0.4px !important;
    z-index: 10 !important;
    text-transform: uppercase !important;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.18) !important;
}

.tag-badge::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 5px solid #9B0053 !important;
    border-left: 6px solid transparent !important;
}

.tag-badge.sale {
    background: linear-gradient(135deg, #DC2626, #E6007E) !important;
}
.tag-badge.sale::after {
    border-top-color: #991B1B !important;
}

.tag-badge.new-arr {
    background: #0EA5E9 !important;
}
.tag-badge.new-arr::after {
    border-top-color: #0369A1 !important;
}

.tag-badge.bestseller {
    background: #F59E0B !important;
    color: #1A0000 !important;
}
.tag-badge.bestseller::after {
    border-top-color: #B45309 !important;
}

.tag-badge.cod {
    background: #10B981 !important;
}
.tag-badge.cod::after {
    border-top-color: #047857 !important;
}

/* COMPACT CORNER WISHLIST BUTTON */
.wishlist-btn {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
    color: #475569 !important;
    font-size: 0.8rem !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
}

.wishlist-btn:hover, .wishlist-btn.active {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: scale(1.12) !important;
}

/* Quick Size overlay on card hover */
.quick-sizes {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(6px) !important;
    padding: 10px 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    transform: translateY(102%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.28s ease !important;
    z-index: 5 !important;
}

.product-card:hover .quick-sizes,
.product-thumb:hover .quick-sizes {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.quick-size-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
}

.quick-size-btn:hover {
    background: var(--primary, #E6007E) !important;
    border-color: var(--primary, #E6007E) !important;
    color: white !important;
    transform: scale(1.06) !important;
}

.product-info {
    padding: 10px 10px 12px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.72rem !important;
    color: var(--gray-text);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 3px !important;
}

.product-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--dark);
    margin: 2px 0 6px !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 6px !important;
    margin-top: auto;
}

.current-price {
    font-size: 1.05rem !important;
    font-weight: 800;
    color: var(--dark);
}

.original-price {
    font-size: 0.82rem !important;
    color: var(--gray-text);
    text-decoration: line-through;
}

.discount-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(230, 0, 126, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 126, 0.45);
}

.btn-secondary {
    background: var(--dark);
    color: white;
}

.btn-secondary:hover {
    background: var(--slate);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   ENTERPRISE ADMIN PANEL STYLING
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #0F172A;
    align-items: stretch;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: #1E293B;
    color: #F8FAFC;
    padding: 24px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0 !important;
    margin: 0 !important;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
}

.admin-brand span {
    color: var(--primary);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: #CBD5E1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.admin-main {
    flex: 1;
    min-width: 0;
    background: #F8FAFC;
    color: var(--dark);
    padding: 32px;
    min-height: 100vh;
}

.kpi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.kpi-title {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-weight: 700;
    text-transform: uppercase;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 4px;
}

.kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ==========================================================================
   ULTRA-PREMIUM COMPLETE MOBILE-FIRST RESPONSIVE DESIGN ENGINE (A to Z)
   ========================================================================== */

/* TABLETS & SMALL LAPTOPS (<= 1024px) */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .filter-sidebar {
        position: static;
        margin-bottom: 24px;
    }
    .hero-banner h1 {
        font-size: 2.4rem !important;
    }
}

/* SMARTPHONES & MOBILE DEVICES (<= 768px) */
@media (max-width: 768px) {
    /* 1. STOREFRONT HEADER & NAVIGATION */
    .header-main {
        flex-wrap: wrap;
        padding: 10px 14px !important;
        gap: 10px;
    }
    .brand-logo img {
        height: 32px !important;
    }
    .header-actions {
        gap: 12px !important;
    }
    .action-btn {
        font-size: 1.15rem !important;
    }
    /* Full-width touch search box on mobile */
    .search-form {
        order: 3;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        margin: 4px 0 0 !important;
    }
    /* Swipeable horizontal pill menu for mobile navigation */
    .nav-menu {
        order: 4;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 0 4px !important;
        margin: 0 !important;
        gap: 16px !important;
        border-top: 1px solid #F1F5F9;
    }
    .nav-link {
        white-space: nowrap !important;
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
        background: #F8FAFC;
        border-radius: 999px;
    }
    .nav-link.active {
        background: #FFF0F7 !important;
        color: #E6007E !important;
    }

    /* 2. PRODUCT SHOPPING GRID (MYNTRA / LIBAS 2-COLUMN MOBILE GRID) */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .product-card {
        border-radius: 12px !important;
    }
    .product-image-container {
        aspect-ratio: 3/4 !important;
    }
    .product-title {
        font-size: 0.88rem !important;
    }
    .product-price {
        font-size: 0.95rem !important;
    }

    /* 3. KPI CARDS & ADMIN DASHBOARD RESPONSIVE STACKING */
    .kpi-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .kpi-card {
        padding: 16px !important;
    }
    .admin-main {
        padding: 14px !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* 3. HERO SECTION & BANNER SLIDERS */
    .hero-banner {
        padding: 40px 16px !important;
        min-height: 360px !important;
    }
    .hero-banner h1 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }
    .hero-banner p {
        font-size: 0.95rem !important;
    }

    /* 4. PRODUCT DETAILS, CART & CHECKOUT PAGE RESPONSIVE STACKING */
    .product-detail-grid,
    .cart-grid,
    .checkout-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 5. FOOTER RESPONSIVE GRID */
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
}

/* COMPACT MOBILE DEVICES (<= 480px) */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-banner h1 {
        font-size: 1.55rem !important;
    }
}

/* ===== TICKER SCROLL ANIMATION ===== */
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HERO FULL-WIDTH POSTER BANNER (OPTIMIZED FOR LAPTOP & DESKTOP VIEWPORTS) ===== */
.hero-poster-banner {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 105px) !important;
    min-height: 640px !important;
    max-height: 860px !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-poster-banner {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 5 !important;
        min-height: 520px !important;
        max-height: 680px !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}
