:root {
    /* Premium Color Palette (HSL for better control) */
    --primary-h: 217;
    --primary-s: 91%;
    --primary-l: 60%;
    --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-hover: hsl(var(--primary-h), var(--primary-s), 50%);
    --primary-light: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);

    --secondary-h: 160;
    --secondary-s: 84%;
    --secondary-l: 39%;
    --secondary-color: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));

    --corporate-color: #0f172a;
    /* Midnight Blue for Corporate */
    --verified-color: #3b82f6;

    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);

    --text-main: #1e293b;
    --text-muted: #334155; /* Contrast improved from #475569 */
    --text-light: #4b5563; /* Contrast improved from #64748b (needed 4.5:1+) */

    --border-color: #e2e8f0;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-lg: 32px;

    --box-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --box-shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    --header-main-height: 80px;
    --header-bottom-height: 48px;
    --header-total-height: 128px;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass-blur: blur(12px);
    --glass-saturate: saturate(180%);
}

/* Header Overrides moved from header.php */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-container {
    height: var(--header-main-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header-bottom {
    height: var(--header-bottom-height);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .header-container {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 15px 1rem !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .header-left {
        width: 100% !important;
        justify-content: center !important;
        position: relative !important;
    }

    .search-bar {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .app-header .logo {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .app-header .logo img {
        max-height: 38px !important;
    }
}

@media (max-width: 768px) {
    .categories-btn {
        padding: 0 10px !important;
        min-width: 44px;
        justify-content: center !important;
    }
    .categories-btn span, 
    .categories-btn .fa-chevron-down {
        display: none !important;
    }
    .popular-cats-flat li:nth-child(n+3) {
        display: none !important;
    }
    .header-bottom-container {
        padding: 0 10px !important;
    }
}

/* Tablet Nav */
@media (min-width: 769px) and (max-width: 1024px) {
    .desktop-nav {
        transform: scale(0.9);
        transform-origin: right center;
    }
    .header-container {
        gap: 5px;
    }
}

.animate-hover-up { 
    transition: var(--transition);
}
.animate-hover-up:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-premium) !important;
}

/* Glassmorphism Classes */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--verified-color);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.corporate-tag {
    background: var(--corporate-color);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Membership Badges */
.membership-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plus-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.pro-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.membership-status-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.membership-status-badge.standard {
    background: #f1f5f9;
    color: #64748b;
}

.membership-status-badge.plus {
    background: #eff6ff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.membership-status-badge.pro {
    background: #faf5ff;
    color: #8b5cf6;
    border: 2px solid #8b5cf6;
}

.btn-upgrade {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-upgrade:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-outline-blue {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.8rem;
    transition: var(--transition);
}

.badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.badge-urgent {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
}

.badge-super {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.badge-campaign {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    z-index: 11;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.badge-flash {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #fca5a5);
    color: #991b1b;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 900;
    z-index: 12;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Filter Sidebar Styles */
.filter-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    max-height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    cursor: pointer;
}

.filter-title i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.filter-title.collapsed i {
    transform: rotate(-180deg);
}

/* Category List */
.filter-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-category-item {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.filter-category-item.active {
    color: var(--primary-color);
    font-weight: 700;
}

.category-count {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Location Inputs */
.location-inputs select,
.location-inputs input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.btn-current-location {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-current-location:hover {
    background: #dbeafe;
}

/* Toggles */
/* Horizontal Scroll Helpers */
.scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 8px;
    /* Added for focus/shadow clearance */
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.filter-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.8rem;
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-new-tiny {
    background: #3b82f6;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

/* Custom Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #3b82f6;
}

input:checked+.slider:before {
    transform: translateX(18px);
}

/* Price Range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

/* Radio Buttons */
.filter-radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Sticky Action Buttons */
.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 1.5rem;
}

.btn-filter-apply {
    background: #ff4757;
    /* Pink/Red from screenshot */
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-apply:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-filter-clear {
    background: white;
    color: #ff4757;
    border: 1px solid #ff4757;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-clear:hover {
    background: #fff5f5;
}

/* Product Listing Layout with Sidebar */
.search-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
}

@media (max-width: 992px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding-top: var(--header-height);
    /* Mobile default */
    padding-bottom: var(--bottom-nav-height);
    /* For mobile */
}

@media (min-width: 993px) {
    body {
        padding-top: 135px;
        /* Precision adjustment: Header(80)+Bottom(48)+Buffer(7) */
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -1px;
    transition: var(--transition);
    padding: 5px 0;
}

.logo img {
    max-height: 70px !important;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo:hover img {
    filter: drop-shadow(0 8px 15px rgba(59, 130, 246, 0.2));
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
}

.search-bar form {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-bar form:focus-within {
    background-color: white;
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.8rem 1.2rem;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.search-bar button {
    background: transparent;
    border: none;
    padding: 0 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-bar form:focus-within button {
    color: var(--primary-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.desktop-nav .nav-item {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.desktop-nav .nav-item:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.dropdown-trigger:hover {
    background: white;
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: white;
    border-radius: 18px;
    box-shadow: var(--box-shadow-premium);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    overflow: hidden;
    padding: 8px;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: var(--transition);
    width: 100%;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 1.2rem;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 12px;
}

.dropdown-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 50px;
    margin-left: auto;
    font-weight: 800;
}

.trigger-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 2px solid white;
}

.btn-sell {
    border-radius: var(--border-radius-lg);
    padding: 0.7rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.btn-sell:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-lg);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    transition: var(--transition);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item i {
    font-size: 1.5rem;
}

.btn-sell-premium,
.btn-sell {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 8px 16px -4px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    white-space: nowrap;
    text-decoration: none;
}

.btn-sell-premium:hover,
.btn-sell:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 20px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
    filter: brightness(1.1);
}

.sell-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -35px;
    box-shadow: 0 10px 20px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
    border: 4px solid white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sell-button:hover .sell-icon-wrapper {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
}

/* Footer (Desktop) */
.app-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-premium);
    border-color: var(--primary-color);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f1f5f9;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new {
    background-color: #e6f7ff;
    color: #0088cc;
}

.badge-used {
    background-color: #f1f5f9;
    color: #334155;
}

.badge-organic {
    background: #dcfce7;
    color: #15803d;
    font-weight: 800;
    border: 1px solid #86efac;
}

/* Categories Bar (Horizontal Scroll on Mobile) */
.categories-bar {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1.5rem 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 90px;
    transition: var(--transition);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-item:hover {
    transform: translateY(-4px);
}

.category-item:hover .category-icon {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.category-item:hover .category-name {
    color: var(--primary-color);
}

/* Responsive Rules */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
        /* Hide top nav items */
    }

    .mobile-bottom-nav {
        display: flex;
        /* Show bottom nav menu */
    }

    .app-footer {
        display: none;
        /* Hide large footer */
    }

    body {
        padding-bottom: calc(var(--bottom-nav-height) + 20px);
    }

    .search-bar {
        margin: 0.5rem 0;
        width: 100%;
        order: 3;
        /* Search bar below logo and profile if space is tight */
    }

    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info {
        padding: 0.75rem;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    word-break: break-word;
    /* Fix overflow */
}

.toast-success {
    border-left: 4px solid var(--secondary-color);
    color: #065f46;
}

.toast-error {
    border-left: 4px solid var(--primary-color);
    color: #991b1b;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Common Layout & Spacing */
.page-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-premium);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fee2e2;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #dcfce7;
}

/* Product Page Premium Enhancements */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: flex-start;
}

.product-gallery {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #fdfdfd;
    transition: 0.3s ease-in-out;
}

.thumbnail-strip {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-item.active {
    border-color: var(--primary-color);
    transform: scale(0.95);
}

.buy-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 100px;
}

.price-tag-v2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    margin: 1rem 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.seller-profile-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 16px;
    margin-top: 2rem;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.seller-profile-v2:hover {
    background: #f1f5f9;
}

.seller-avatar-v2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-description-v2 {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

@media (max-width: 992px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .buy-box {
        position: static;
        margin-top: 2rem;
    }
}


/* Premium Components */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-lg);
}

.content-card {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

/* Header & Search Refinement */
.search-bar form {
    background-color: rgba(241, 245, 249, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Layout Stability Fixes */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* --- Mobile UI/UX Structural Refactoring (QA Ultimate) --- */

@media (max-width: 991px) {
    /* Horizontal Scroll Enforcement */
    .discount-boxes-grid, 
    .category-nav-scroll,
    .campaign-grid,
    .products-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 5px 0 20px 0 !important;
        scrollbar-width: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .discount-boxes-grid::-webkit-scrollbar,
    .products-grid::-webkit-scrollbar { display: none !important; }

    .discount-box, .product-card {
        flex: 0 0 160px !important;
        min-width: 160px !important;
        max-width: 180px !important;
    }
}

@media (max-width: 768px) {
    /* Header Refactor */
    .app-header {
        height: auto !important;
    }

    .header-container {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 80px !important;
        padding: 12px 1rem !important;
        gap: 15px !important;
        position: relative !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Reset All Absolute Logo Traces */
    .header-center, .app-header .logo {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        order: -1 !important; /* Always at top */
    }

    .app-header .logo img {
        max-height: 38px !important;
        margin: 0 auto !important;
    }

    .mobile-menu-btn {
        position: absolute !important;
        left: 15px !important;
        top: 20px !important;
        z-index: 100;
        margin: 0 !important;
    }

    .search-bar {
        width: 100% !important;
        display: none !important;
        position: relative !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    .search-bar form { width: 100% !important; margin: 0 !important; }

    .header-right { display: none !important; }

    /* Product Detail Page Gallery Visibility - Aggressive */
    .product-detail-wrapper {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
        padding-top: 20px !important;
    }

    .main-content-area {
        display: block !important;
        width: 100% !important;
    }

    .gallery-container {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 300px !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 2rem !important;
        overflow: visible !important;
    }

    .product-gallery {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
    }

    .main-image-wrapper {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        background: #f8fafc !important;
        position: relative !important;
    }

    .gallery-main {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 250px !important;
        max-height: 400px !important;
        object-fit: contain !important;
        visibility: visible !important;
    }

    /* Breadcrumbs clipped fixed */
    .breadcrumb {
        white-space: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0.8rem 1rem !important;
        scrollbar-width: none !important;
    }
    .breadcrumb::-webkit-scrollbar { display: none !important; }

    /* App Banner overlap fix */
    #cookie-consent, .app-promo-banner {
        z-index: 999 !important;
        bottom: 75px !important; /* Above Bottom Nav */
    }
}

/* Cookie Consent UI Polish */
#cookie-consent {
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    max-width: none !important;
    width: auto !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    z-index: 10000 !important;
}

/* --- Auth & Global Form Styles --- */
.auth-wrapper {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: radial-gradient(circle at top left, rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.05), transparent),
        radial-gradient(circle at bottom right, rgba(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.05), transparent);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 0 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.input-with-icon input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.input-with-icon input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
    outline: none;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

/* Social Login Styles */
.social-login-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0.9rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.btn-social i {
    font-size: 1.2rem;
}

.btn-social:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-social.google {
    background: white;
}

.btn-social.google i {
    color: #ea4335;
}

.btn-social.facebook {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.btn-social.facebook:hover {
    background: #166fe5;
    color: white;
}

.btn-social.apple {
    background: #000;
    color: white;
    border-color: #000;
}

.btn-social.phone {
    background: #f1f5f9;
    color: #1e293b;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.auth-divider span {
    padding: 0 15px;
}

/* Favorite Button */
.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 10;
    color: #94a3b8;
}

.btn-favorite:hover {
    transform: scale(1.1);
    background: #f1f5f9;
}

.btn-favorite.active {
    color: #ef4444;
}

.btn-favorite i {
    font-size: 1.2rem;
}

/* --- Product Comparison System --- */

/* Card Actions Update */
.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

    .btn-favorite,
    .btn-compare {
        position: static;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: white;
        border: none;
        box-shadow: var(--box-shadow);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        color: #64748b;
        font-size: 0.9rem;
    }

    .btn-favorite:hover,
    .btn-favorite.active {
        color: #ef4444 !important;
        background: #fee2e2 !important;
    }

    .btn-compare:hover,
    .btn-compare.active {
        color: var(--primary-color) !important;
        background: var(--primary-light) !important;
    }

    /* Floating Tray */
    .compare-tray {
        position: fixed;
        bottom: calc(var(--bottom-nav-height) + 20px);
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 600px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 1rem 1.5rem;
        color: white;
        z-index: 1000;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        animation: slideUpTray 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes slideUpTray {
        from {
            transform: translate(-50%, 100px);
            opacity: 0;
        }

        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }

    .tray-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .tray-info {
        display: flex;
        flex-direction: column;
    }

    .tray-title {
        font-weight: 800;
        font-size: 0.9rem;
    }

    .tray-count {
        font-size: 0.75rem;
        opacity: 0.7;
        font-weight: 600;
    }

    .tray-thumbs {
        display: flex;
        gap: 10px;
        flex: 1;
        overflow-x: auto;
    }

    .tray-item {
        position: relative;
        flex-shrink: 0;
    }

    .tray-item img {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        object-fit: cover;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mini-remove {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 18px;
        height: 18px;
        background: #ef4444;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 0.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .tray-actions {
        display: flex;
        gap: 8px;
    }

    /* Detail Page Button */
    .btn-compare-detail {
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        background: transparent;
        transition: var(--transition);
    }

    .btn-compare-detail.active {
        background: var(--primary-color);
        color: white;
    }

    .btn-compare-detail:hover {
        background: var(--primary-light);
    }

    /* Responsive Tray */
    @media (max-width: 768px) {
        .compare-tray {
            bottom: calc(var(--bottom-nav-height) + 10px);
            padding: 0.8rem;
        }

        .tray-title {
            display: none;
        }

        .tray-actions .btn {
            padding: 4px 10px;
            font-size: 0.7rem;
        }
    }

/* --- Zeybu UI Components & Modals --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-right: 1.5rem;
}

.nav-categories-dropdown {
    position: relative;
}

.categories-btn {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.categories-btn:hover {
    background: #f1f5f9;
}

.dropdown-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 10px 0;
    margin-top: 0px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.nav-categories-dropdown:hover .dropdown-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cat-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.cat-icon {
    width: 24px;
    color: #64748b;
    margin-right: 12px;
    text-align: center;
}

.cat-link:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.subcategories-panel {
    position: absolute;
    top: -1px;
    left: 100%;
    width: 300px;
    min-height: calc(100% + 2px);
    background: white;
    border-radius: 0 16px 16px 0;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-left: none;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s;
    z-index: 999;
}

.cat-item:hover .subcategories-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.header-bottom {
    background: white;
    border-top: 1px solid #e1e8ee;
    border-bottom: 1px solid #e1e8ee;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-bottom-container {
    display: flex;
    align-items: center;
    height: 48px;
    gap: 2rem;
}

.popular-cats-flat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.popular-cats-flat::-webkit-scrollbar {
    display: none;
}

.popular-cats-flat a {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 48px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

/* Product Actions Extensions */
.btn-quickview {
    background: white;
    color: var(--primary-color);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

/* Skeleton Loading Premium */
.skeleton-box {
    background: #f1f5f9;
    background-image: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card .product-image-wrapper { height: 220px; margin-bottom: 1rem; border-radius: 20px; }
.skeleton-text { height: 12px; margin-bottom: 10px; border-radius: 6px; }
.skeleton-price { width: 45%; height: 22px; margin-bottom: 15px; }
.skeleton-title { width: 95%; height: 16px; }
.skeleton-meta { width: 65%; height: 14px; margin-top: 10px; }

/* Active Filters UI */
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    align-items: center;
    padding: 0.5rem 0;
}

.filter-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: default;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.filter-tag:hover {
    border-color: #cbd5e1;
    background: white;
}

.filter-tag .remove-filter {
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s;
}

.filter-tag .remove-filter:hover {
    background: #fee2e2;
    color: #ef4444;
}

.btn-clear-filters {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ef4444;
    text-decoration: none;
    margin-left: 10px;
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-clear-filters:hover {
    background: #fef2f2;
}

/* AJAX Transitions */
.products-grid.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s;
}

.empty-state-ajax {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick View Modal */
.qv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9999;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.qv-content {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.qv-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .qv-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* --- Order Timeline & Checkout Modern --- */
.order-timeline-wrapper {
    margin: 2rem 0;
    padding: 0 1rem;
}

.order-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #94a3b8;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-line {
    position: absolute;
    top: 22.5px;
    left: 50%;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.timeline-step.completed .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.timeline-step.completed .step-line {
    background: var(--primary-color);
}

.timeline-step.active .step-icon {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
}

.timeline-step.active .step-label {
    color: var(--primary-color);
    font-weight: 800;
}

.step-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
}

.order-timeline-cancelled {
    background: #fee2e2;
    color: #ef4444;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    text-align: center;
    margin: 1.5rem 0;
}

/* Checkout Stepper UI */
.checkout-stepper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.checkout-step-item {
    flex: 1;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: all 0.3s;
}

.checkout-step-item.active {
    opacity: 1;
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-sm);
}

.checkout-step-item.completed {
    background: #f0fdf4;
    opacity: 0.8;
}

.cs-num {
    width: 28px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.checkout-step-item.active .cs-num {
    background: var(--primary-color);
    color: white;
}

.checkout-step-item.completed .cs-num {
    background: #10b981;
    color: white;
}

.cs-label { font-weight: 700; font-size: 0.9rem; }

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pm-selector {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: white;
}

.pm-selector:hover { border-color: var(--primary-color); background: var(--primary-light); }
.pm-selector.active { border-color: var(--primary-color); background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.05); }

.pm-icon { font-size: 1.8rem; color: #64748b; }
.pm-selector.active .pm-icon { color: var(--primary-color); }
.pm-label { font-weight: 800; font-size: 0.95rem; }

/* Order Summary Box */
.order-summary-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #64748b;
}

.summary-item.total {
    border-top: 2px dashed #f1f5f9;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
}
/* Product Gallery Modernization */
.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f8fafc;
    cursor: zoom-in;
}

.zoom-effect {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image-wrapper:hover .zoom-effect {
    transform: scale(1.1);
}

.zoom-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.main-image-wrapper:hover .zoom-overlay {
    opacity: 1;
}

.gal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    opacity: 0;
}

.main-image-wrapper:hover .gal-nav {
    opacity: 1;
}

.gal-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.gal-nav.prev { left: 20px; }
.gal-nav.next { right: 20px; }

.thumbnail-strip {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumb-item-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumb-item-wrapper:hover {
    transform: translateY(-3px);
}

.thumb-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.thumb-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* --- Redesigned Footer & Cookie Banner --- */
.app-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 4rem 0 2rem;
    color: #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.payment-icon-img {
    height: 24px;
    object-fit: contain;
    filter: grayscale(0.8) opacity(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-icon-img:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
}

.footer-social-tray {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: #f1f5f9;
    color: #64748b;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    color: white;
}

.social-icon.fb:hover { background: #1877f2; }
.social-icon.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.tw:hover { background: #1da1f2; }

.footer-app-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-badge img {
    height: 40px;
    transition: all 0.3s;
    border-radius: 8px;
}

.app-badge:hover img {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.footer-bottom-bar {
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links-inline {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-inline a {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.footer-links-inline a:hover { color: var(--primary-color); }

/* ==========================================================================
   UNIQUE PRIVACY HUB (REDESIGNED COOKIE BANNER)
   ========================================================================== */
.privacy-hub-card {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto !important;
    width: 380px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    padding: 30px;
    z-index: 9999;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: slideInUpPremium 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes slideInUpPremium {
    0% { transform: translateY(100px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.privacy-hub-card.fade-out {
    animation: slideOutDownPremium 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideOutDownPremium {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(50px) scale(0.95); opacity: 0; }
}

.ph-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ph-icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.ph-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ph-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
}

.ph-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-ph-primary {
    background: #0f172a;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.btn-ph-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.btn-ph-ghost {
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ph-ghost:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #1e293b;
}

@media (max-width: 480px) {
    .privacy-hub-card {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 32px 32px 0 0;
        padding: 25px;
    }
}

/* ==========================================================================
   PREMIUM CATEGORY NAVIGATION (MODERNIZED)
   ========================================================================== */
.category-nav-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 15px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-scroll-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #475569;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-scroll-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.nav-scroll-item svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.nav-scroll-item:hover svg {
    transform: scale(1.15);
}

/* Theme-Specific Active States */
.homemade-page .nav-scroll-item.active {
    background: #059669;
    color: white !important;
    border-color: #059669;
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.25);
}

.secondhand-page .nav-scroll-item.active {
    background: #d97706;
    color: white !important;
    border-color: #d97706;
    box-shadow: 0 8px 16px rgba(217, 119, 6, 0.25);
}

.nav-scroll-item.active svg {
    filter: brightness(0) invert(1);
}

.scroll-wrapper-relative {
    position: relative;
    margin-bottom: 2rem;
}

.scroll-wrapper-relative::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(to right, transparent, rgba(248, 250, 252, 0.9));
    pointer-events: none;
    z-index: 2;
    border-radius: 0 50px 50px 0;
}

/* Mobile Sidebar Auth Section */
.panel-auth-guest {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guest-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.guest-info strong {
    display: block;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.guest-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.guest-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-panel-login {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-panel-register {
    background: #f1f5f9;
    color: #475569;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.panel-auth-user {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-panel-avatar {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.user-panel-info strong {
    display: block;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.user-panel-info a {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Header Height Fixes */
@media (max-width: 768px) {
    body {
        padding-top: 75px !important;
    }
}

/* --- Product Detail Page Modernization --- */

/* Breadcrumb Styling */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none !important;
    font-weight: 700;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i.separator {
    font-size: 0.7rem;
    color: #cbd5e1;
    margin: 0 4px;
}

/* --- FINAL MOBILE UX & STRUCTURAL REPAIR (QA PHASE 6 - ULTIMATE) --- */

@media (max-width: 991px) {
    /* Forced Horizontal Scroll for All Critical Grids */
    .discount-boxes-grid, 
    .category-nav-scroll,
    .campaign-grid,
    .products-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 5px 1rem 25px !important;
        scrollbar-width: none !important;
        width: 100vw !important;
        box-sizing: border-box !important;
        margin-left: -1rem !important; /* Counter for container-padding */
        position: relative !important;
    }

    .discount-boxes-grid::-webkit-scrollbar,
    .products-grid::-webkit-scrollbar { display: none !important; }

    .discount-box, .product-card {
        flex: 0 0 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
        scroll-snap-align: start !important;
    }
}

@media (max-width: 768px) {
    /* Product Detail Page - Global Container Stabilization */
    .product-detail-wrapper {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding-top: 15px !important;
    }

    /* Forced Visibility for Gallery - Countering any Bootstrap hidden classes */
    .main-content-area, .gallery-container, .product-gallery, .main-image-wrapper {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
    }

    .gallery-container {
        min-height: 320px !important;
        margin-bottom: 2rem !important;
    }

    .gallery-main {
        display: block !important;
        width: 100% !important;
        min-height: 300px !important;
        max-height: 450px !important;
        object-fit: contain !important;
        background: #f8fafc !important;
        border-radius: 0 !important;
    }

    /* Fixed UI spacing for long breadcrumbs */
    .breadcrumb {
        white-space: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
        gap: 6px !important;
        border-radius: 10px !important;
        margin-top: 35px !important;
        margin-bottom: 0 !important;
        background: rgba(255, 255, 255, 0.5) !important;
        backdrop-filter: blur(10px) !important;
    }

    /* Banner & Bottom Nav Polish */
    #cookie-consent, .app-promo-banner, .web-app-promo {
        bottom: 90px !important; /* Safely above standard Bottom Nav height */
        z-index: 999 !important;
    }

    .mobile-bottom-nav {
        z-index: 1001 !important;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.1) !important;
    }
}

/* --- FINAL MOBILE UX & STRUCTURAL REPAIR (QA ULTIMATE) --- */

@media (max-width: 991px) {
    /* Horizontal Scroll Enforcement for Grids - Container Safe */
    .discount-boxes-grid, 
    .category-nav-scroll,
    .campaign-grid,
    .flash-sales-container .products-grid,
    .products-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 5px 1rem 20px 1rem !important;
        scrollbar-width: none !important;
        width: calc(100% + 2rem) !important;
        box-sizing: border-box !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        min-height: 120px !important;
    }

    .discount-boxes-grid::-webkit-scrollbar,
    .category-nav-scroll::-webkit-scrollbar,
    .campaign-grid::-webkit-scrollbar,
    .products-grid::-webkit-scrollbar { display: none !important; }

    .discount-box, .product-card {
        flex: 0 0 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
        scroll-snap-align: start !important;
    }
}

@media (max-width: 768px) {
    /* Product Detail Page Gallery - Absolute Visibility Force */
    .product-detail-wrapper {
        display: block !important;
        width: 100% !important;
    }

    .main-content-area {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .gallery-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 320px !important;
        margin-bottom: 2rem !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .product-gallery, .main-image-wrapper {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
    }

    .gallery-main {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
        max-height: 480px !important;
        object-fit: contain !important;
        background: #f8fafc !important;
        border-radius: 0 !important;
    }

    /* Fixed Header Spacing for Product Page */
    .breadcrumb {
        margin-top: 35px !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 15px !important;
    }

    /* Cookie Consent as a subtle Bottom Banner */
    #cookie-consent {
        bottom: 85px !important; /* Above Mobile Bottom Nav */
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        border-radius: 16px !important;
        padding: 1.25rem !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        backdrop-filter: blur(20px) !important;
        background: rgba(255,255,255,0.95) !important;
    }

    /* App Banner overlap prevention */
    .app-promo-banner {
        z-index: 99 !important;
        bottom: 80px !important;
    }
}

/* Search Autocomplete Dropdown */
.search-suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    z-index: 3000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 6px;
    border: 1px solid rgba(0,0,0,0.06);
}
.suggestion-section-title {
    padding: 10px 16px 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.15s;
}
.suggestion-item:hover {
    background: #f1f5f9;
}
.suggestion-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.suggestion-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.suggestion-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggestion-price {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-color);
}
.suggestion-empty {
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
}

/* ==========================================================================
   Profile & Account Layout Styles (Global)
   ========================================================================== */

.profile-modern-container { padding: 3rem 0; max-width: 1200px; margin: 0 auto; }

.profile-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem;
    border-radius: 32px;
    margin-bottom: 2rem;
    background: white;
}

.profile-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Nav */
.profile-sidebar-nav {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 100px;
}

.nav-group { margin-bottom: 2rem; }
.nav-group:last-child { margin-bottom: 0; }
.profile-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.hero-text h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.25rem;
}

.name-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.badges-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 5px;
    position: relative;
}

.nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
}

.notif-count {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Content Area */
.profile-content-area {
    min-height: 600px;
}

.card-modern {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--box-shadow-sm);
}

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.stat-box { padding: 1.5rem; border-radius: 20px; display: flex; align-items: center; gap: 1rem; background: white; border: 1px solid #f1f5f9; }
.stat-icon { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.icon-blue { background: #eff6ff; color: #3b82f6; }
.icon-emerald { background: #ecfdf5; color: #10b981; }
.text-gold { color: #f59e0b; }

/* Modern Rating Grid */
.rating-modern-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem; 
    margin-top: 1rem;
}
.rating-card { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    padding: 1.5rem; 
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}
.rating-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 6px solid #f1f5f9;
}
.rating-seller { border-color: #fef3c7; color: #f59e0b; }
.rating-buyer { border-color: #d1fae5; color: #10b981; }
.big-score { font-size: 1.8rem; font-weight: 900; }
.rating-label { font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; }
.rating-stars { display: flex; gap: 3px; margin-bottom: 5px; }
.rating-stars i { font-size: 0.8rem; color: #e2e8f0; }
.rating-stars i.active { color: #f59e0b; }
.rating-meta { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* Verification */
.verification-list { display: flex; flex-direction: column; gap: 1.25rem; }
.verify-item { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-radius: 20px; background: #f8fafc; border: 1px solid #e2e8f0; }

.p-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.p-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1.1rem;
}

.p-input-wrapper input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text-main);
}

.p-input-wrapper input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
    outline: none;
}

.p-form-group.disabled .p-input-wrapper input {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 800;
    border: none;
    box-shadow: 0 8px 16px -4px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
    filter: brightness(1.1);
}

.btn-block { width: 100%; }

.address-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.address-card { background: white; padding: 1.5rem; border-radius: 20px; border: 1px solid #e2e8f0; position: relative; }
.addr-actions { display: flex; gap: 10px; margin-top: 1rem; border-top: 1px solid #f1f5f9; padding-top: 1rem; }

.toggle-setting { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.comm-pref-item { padding: 0.5rem 0; font-weight: 500; color: var(--text-muted); }

.empty-state { text-align: center; padding: 3rem; color: var(--text-light); font-weight: 500; }

/* My Ads List */
.my-ads-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.ad-item-row { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem; border-radius: 18px; }
.ad-img { width: 80px; height: 80px; flex-shrink: 0; }
.ad-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.ad-details { flex: 1; }
.ad-details h4 { font-size: 1.1rem; margin-bottom: 8px; }
.ad-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; }
.ad-price { font-weight: 800; color: var(--primary-color); }
.ad-date { color: var(--text-muted); }
.badge-success { background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 0.75rem; }
.badge-secondary { background: #f1f5f9; color: #64748b; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 0.75rem; }
.ad-actions { display: flex; gap: 10px; }

/* Favorites */
.favorites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.favorite-item { padding: 1rem; position: relative; }
.favorite-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 15px; margin-bottom: 10px; }
.fav-info h4 { font-size: 0.95rem; margin-bottom: 5px; }
.fav-price { font-weight: 800; color: var(--primary-color); }
.fav-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

/* Notifications */
.notifications-list { display: flex; flex-direction: column; gap: 1rem; }
.notification-item { display: flex; gap: 1rem; padding: 1.25rem; border-radius: 18px; border: 1px solid #f1f5f9; transition: all 0.2s; }
.notification-item.unread { background: #eff6ff; border-color: #dbeafe; }
.notif-icon { width: 40px; height: 40px; border-radius: 12px; background: #3b82f6; color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-body h4 { font-size: 1rem; margin-bottom: 4px; }
.notif-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; }
.notif-time { font-size: 0.75rem; color: var(--text-light); }

/* Credit Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.add-card-placeholder { border: 2px dashed #e2e8f0; border-radius: 20px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-light); cursor: pointer; transition: all 0.2s; }
.add-card-placeholder:hover { border-color: var(--primary-color); color: var(--primary-color); background: var(--primary-light); }

.credit-card { height: 180px; border-radius: 20px; padding: 1.5rem; color: white; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.credit-card.visa { background: linear-gradient(135deg, #1a1a1a, #4a4a4a); }
.credit-card.mastercard { background: linear-gradient(135deg, #eb001b, #ff5f00); }
.card-chip { width: 45px; height: 35px; background: #ffd700; border-radius: 8px; margin-bottom: 1rem; }
.card-number { font-size: 1.25rem; letter-spacing: 3px; font-family: 'Courier New', monospace; font-weight: 700; }
.card-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.card-holder { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.card-exp { font-size: 0.9rem; font-weight: 700; }
.card-brand-logo { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; font-weight: 900; font-style: italic; }

/* Security */
.security-options { display: flex; flex-direction: column; gap: 1.5rem; }
.security-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.danger-zone h3 { color: #ef4444; }
.btn-danger { background: #fee2e2; color: #ef4444; border: 1px solid #ef4444; font-weight: 700; }
.btn-danger:hover { background: #ef4444; color: white; }

.membership-duration {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-social-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-item {
    font-size: 0.9rem;
    color: #1e293b;
}

.stat-item i {
    color: var(--primary-color);
    margin-right: 4px;
}

.stat-sep {
    color: #cbd5e1;
    font-size: 0.7rem;
}

.users-grid-social {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.user-social-card {
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.user-social-card .u-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
}

.user-social-card .u-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-social-card h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1e293b;
}

.profile-avatar-wrapper:hover .avatar-hover-overlay { opacity: 1 !important; }

@media (max-width: 992px) {
    .profile-main-layout { grid-template-columns: 1fr; }
    .profile-sidebar-nav { position: static; margin-bottom: 2rem; }
}

@media (max-width: 768px) {
    .profile-modern-container { padding: 1.5rem 0.5rem; }
    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        border-radius: 20px;
        gap: 1rem;
    }
    .hero-left {
        flex-direction: column !important;
        align-items: center !important;
    }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 1.4rem; }
    .name-badge-row { justify-content: center; }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .hero-actions .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
    .hero-follow-stats { justify-content: center; }
    .stats-row { gap: 1rem; }
    .stat-box { padding: 1rem; }
    .stat-icon { width: 40px; height: 40px; font-size: 1rem; }
    .big-score { font-size: 1.4rem; }
    .rating-modern-grid { grid-template-columns: 1fr; }
    .rating-card { padding: 1rem; gap: 1rem; }
    .rating-circle { width: 60px; height: 60px; border-width: 4px; }
    .rating-circle .big-score { font-size: 1.3rem; }
    .rating-label { font-size: 0.85rem; }
    .rating-meta { font-size: 0.75rem; }
    .card-modern { padding: 1.5rem; border-radius: 18px; }
    .profile-sidebar-nav { padding: 1rem; border-radius: 18px; }
    .nav-link { padding: 0.7rem 1rem; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .profile-modern-container { padding: 1rem 0.25rem; }
    .profile-hero { padding: 1rem; border-radius: 16px; }
    .hero-text h1 { font-size: 1.2rem; }
    .profile-avatar-wrapper { width: 65px; height: 65px; }
    .stats-row { grid-template-columns: 1fr; gap: 0.75rem; }
    .stat-box { padding: 0.8rem; }
    .big-score { font-size: 1.2rem; }
    .stat-icon { width: 36px; height: 36px; font-size: 0.9rem; border-radius: 10px; }
    .hero-follow-stats { gap: 0.5rem; font-size: 0.8rem; }
    .hero-actions .btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .card-modern { padding: 1rem; border-radius: 14px; }
    .nav-link { padding: 0.6rem 0.8rem; font-size: 0.85rem; }
    .rating-card { padding: 0.8rem; gap: 0.8rem; }
    .rating-circle { width: 50px; height: 50px; }
    .rating-circle .big-score { font-size: 1.1rem; }
}

/* ==========================================================================
   Premium Modal System (Bootstrap-Free)
   ========================================================================== */

.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.3s ease;
}

.premium-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-modal-header {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.premium-modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
}

.premium-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.premium-modal-body {
    padding: 2.5rem 2rem;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Helper Classes */
.p-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

