/* ============================================
   PREMIUM MARKETPLACE UI - COMPLETE REDESIGN
   Preserves all JS/PHP functionality
   ============================================ */
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      :root {
        --primary: #1a73e8;
        --primary-dark: #0d47a1;
        --primary-light: #e8f0fe;
        --primary-gradient: linear-gradient(135deg, #1a73e8, #0d47a1);
        --accent: #4285f4;
        --aqua-gradient: linear-gradient(
          145deg,
          #e8f4f8 0%,
          #d4eaf0 50%,
          #c0dfe8 100%
        );
        --white: #ffffff;
        --gray-100: #f8fafc;
        --gray-200: #e2e8f0;
        --gray-300: #cbd5e1;
        --gray-400: #94a3b8;
        --gray-500: #64748b;
        --gray-600: #475569;
        --gray-700: #334155;
        --gray-800: #1e293b;
        --gray-900: #0f172a;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
        --shadow-hover: 0 12px 28px -8px rgba(26, 115, 232, 0.25);
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        --radius-xl: 20px;
        --radius-2xl: 24px;
        --radius-full: 9999px;
        --container-padding: 20px;
        --transition-fast: 0.15s ease;
        --transition-base: 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      }

      body {
        font-family: "Inter", sans-serif;
        font-size: 14px;
        line-height: 1.5;
        color: var(--gray-700);
        background: var(--aqua-gradient);
        min-height: 100vh;
        -webkit-font-smoothing: antialiased;
      }

      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      .logo-text {
        font-family: "Poppins", sans-serif;
        font-weight: 600;
      }

      ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
      }

      ::-webkit-scrollbar-track {
        background: var(--gray-200);
        border-radius: var(--radius-full);
      }

      ::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: var(--radius-full);
      }

      /* Page Views */
      #storeView,
      #categoryPage,
      #productDetailPage {
        display: block;
      }
      #categoryPage,
      #productDetailPage {
        display: none;
      }
      #adminView {
        display: none;
        min-height: 100vh;
        background: var(--gray-900);
      }

      /* Header */
      .top-banner {
        background: var(--primary-gradient);
        color: white;
        text-align: center;
        padding: 8px;
        font-size: 12px;
        font-weight: 600;
      }

      .sh {
        background: white;
        position: sticky;
        top: 0;
        z-index: 400;
        box-shadow: var(--shadow-md);
        width: 100%;
      }

      .sh-inner {
        max-width: 1400px;
        margin: 0 auto;
        padding: 12px var(--container-padding);
      }

      .logo {
        display: flex;
        align-items: center;
        gap: 15px;
        cursor: pointer;
      }

      .logo-icon {
        width: 65px;
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .logo-icon img {
        width: 100%;
        height: auto;
        max-height: 65px;
        object-fit: contain;
      }

      .logo-text h1 {
        font-size: 28px;
        font-weight: 800;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        letter-spacing: -0.5px;
      }

      .logo-text p {
        font-size: 11px;
        color: var(--primary);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .search-wrapper {
        flex: 1;
        max-width: 500px;
        position: relative;
        margin: 0 15px;
      }

      .search-wrapper i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray-400);
      }

      .search-wrapper input {
        width: 100%;
        padding: 12px 16px 12px 44px;
        background: var(--gray-100);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-full);
        font-size: 14px;
      }

      .search-wrapper input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
      }

      .search-btn {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary);
        border: none;
        padding: 6px 20px;
        border-radius: var(--radius-full);
        color: white;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
      }

      .search-btn:hover {
        background: var(--primary-dark);
      }

      .header-actions {
        display: flex;
        align-items: center;
        gap: 24px;
      }

      .header-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        position: relative;
      }

      .header-action i {
        font-size: 22px;
        color: var(--primary);
      }

      .header-action span {
        font-size: 11px;
        margin-top: 4px;
        color: var(--primary);
        font-weight: 500;
      }

      .cart-badge {
        position: absolute;
        top: -10px;
        right: -14px;
        background: #e60023;
        color: white;
        font-size: 10px;
        font-weight: 800;
        min-width: 18px;
        height: 18px;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .desktop-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
      }

      .mobile-header {
        display: none;
      }

      /* Category Strip */
      .category-strip {
        background: white;
        border-bottom: 1px solid var(--gray-200);
        position: sticky;
        top: 80px;
        z-index: 399;
        padding: 6px 0;
      }

      .category-strip-inner {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 var(--container-padding);
        display: flex;
        align-items: center;
        gap: 20px;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .category-strip-inner::-webkit-scrollbar {
        display: none;
      }

      .cat-strip-link {
        padding: 8px 0;
        color: var(--gray-600);
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        border-bottom: 2px solid transparent;
      }

      .cat-strip-link:hover {
        color: var(--primary);
      }

      .cat-strip-link.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
      }

      /* Main Layout - Landing Page */
      .main-layout {
        max-width: 1400px;
        margin: 20px auto;
        padding: 0 var(--container-padding);
        display: flex;
        gap: 20px;
      }

      /* Sidebar */
      .sidebar-menu {
        width: 260px;
        flex-shrink: 0;
        background: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        position: sticky;
        top: 120px;
        height: fit-content;
      }

      .sidebar-header {
        background: var(--primary-gradient);
        padding: 14px 16px;
        color: white;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .sidebar-categories {
        list-style: none;
        padding: 8px 0;
      }

      .sidebar-categories li {
        padding: 10px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        color: var(--gray-700);
        border-left: 3px solid transparent;
        transition: all var(--transition-fast);
      }

      .sidebar-categories li i {
        width: 18px;
        color: var(--primary);
        font-size: 14px;
      }

      .sidebar-categories li:hover {
        background: var(--primary-light);
        border-left-color: var(--primary);
        color: var(--primary);
      }

      .sidebar-filters {
        padding: 16px;
        border-top: 1px solid var(--gray-200);
      }

      .sidebar-filters .filt-head {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--primary);
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .sidebar-filters .filt-section {
        margin-bottom: 12px;
      }

      .sidebar-filters .filt-label {
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 4px;
        display: block;
      }

      .sidebar-filters select,
      .sidebar-filters input {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        font-size: 12px;
      }

      .sidebar-filters .filt-price {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }

      .sidebar-filters .btn-clear {
        width: 100%;
        padding: 8px;
        background: var(--gray-100);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 8px;
      }

      .sidebar-filters .btn-clear:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
      }

      /* Center Content */
      .center-content {
        flex: 1;
        min-width: 0;
      }

      /* Hero Slider */
      .hero-slider {
        position: relative;
        width: 100%;
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-md);
        margin-bottom: 20px;
      }

      .hero-slides {
        position: relative;
        width: 100%;
      }

      .hero-slide {
        display: none;
        position: relative;
      }

      .hero-slide.active {
        display: block;
        animation: slideFadeRight 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      }

      @keyframes slideFadeRight {
        from {
          opacity: 0;
          transform: translateX(-30px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      .hero-video-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
      }

      .hero-card {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 35px 45px;
        gap: 30px;
        background: linear-gradient(
          90deg,
          rgba(0, 0, 0, 0.7) 0%,
          rgba(0, 0, 0, 0.3) 50%,
          transparent 100%
        );
      }

      .hero-card-content {
        flex: 1;
        color: white;
        animation: fadeInUp 0.6s ease-out 0.2s both;
      }

      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .hero-badge {
        display: inline-block;
        background: rgba(255, 255, 255, 0.2);
        padding: 4px 12px;
        border-radius: var(--radius-full);
        font-size: 11px;
        font-weight: 700;
        margin-bottom: 10px;
        backdrop-filter: blur(4px);
      }

      .hero-card-content h2 {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 8px;
      }

      .hero-card-content p {
        font-size: 13px;
        margin-bottom: 16px;
        opacity: 0.9;
      }

      .hero-cta {
        display: inline-flex;
        background: white;
        padding: 8px 22px;
        border-radius: var(--radius-full);
        color: var(--primary);
        font-weight: 600;
        font-size: 12px;
        text-decoration: none;
        transition: all var(--transition-base);
      }

      .hero-cta:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
      }

      .hero-card-image {
        width: 110px;
        height: 110px;
        object-fit: cover;
        border-radius: var(--radius-lg);
        animation: fadeInRight 0.6s ease-out 0.3s both;
      }

      @keyframes fadeInRight {
        from {
          opacity: 0;
          transform: translateX(30px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      .hero-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        z-index: 10;
        transition: all var(--transition-fast);
      }

      .hero-nav:hover {
        background: white;
        transform: translateY(-50%) scale(1.05);
      }

      .hero-prev {
        left: 16px;
      }

      .hero-next {
        right: 16px;
      }

      .hero-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        position: relative;
        z-index: 5;
      }

      .hero-dot {
        width: 8px;
        height: 8px;
        border-radius: var(--radius-full);
        background: var(--gray-300);
        cursor: pointer;
        transition: all var(--transition-fast);
      }

      .hero-dot.active {
        background: var(--primary);
        width: 22px;
      }

      @media (max-width: 768px) {
        .hero-card-image {
          display: none;
        }
        .hero-card {
          background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.5) 100%
          );
        }
      }

      /* Category Row */
      .category-row {
        margin-bottom: 24px;
      }

      .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
      }

      .section-header h2 {
        font-size: 18px;
        font-weight: 700;
        color: var(--gray-800);
      }

      .section-link {
        color: var(--primary);
        font-size: 12px;
        cursor: pointer;
      }

      .cats-horizontal {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
      }

      .cat-card-h {
        flex: 0 0 auto;
        width: 90px;
        background: white;
        border-radius: var(--radius-md);
        padding: 12px 6px;
        text-align: center;
        cursor: pointer;
        border: 1px solid var(--gray-200);
        transition: all var(--transition-base);
        box-shadow: var(--shadow-sm);
      }

      .cat-card-h:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary);
      }

      .cat-card-h i {
        font-size: 28px;
        color: var(--primary);
        margin-bottom: 8px;
        display: block;
      }

      .cat-card-h span {
        font-size: 11px;
        font-weight: 500;
      }

      /* Top Selling */
      .top-selling-section {
        margin-bottom: 24px;
      }

      .top-selling-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
      }

      .top-card {
        flex: 0 0 auto;
        width: 160px;
        background: white;
        border-radius: var(--radius-lg);
        overflow: hidden;
        cursor: pointer;
        border: 1px solid var(--gray-200);
        transition: all var(--transition-base);
      }

      .top-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
      }

      .top-card-img {
        width: 100%;
        height: 120px;
        object-fit: cover;
      }

      .top-card-body {
        padding: 10px;
      }

      .top-card-name {
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .top-card-price {
        font-size: 13px;
        font-weight: 700;
        color: var(--primary);
      }

      /* Products Section - ENHANCED compact cards */
      .products-main-section {
        margin-top: 8px;
      }

      .toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
      }

      .res-count {
        font-size: 13px;
        color: var(--gray-500);
      }

      .sort-sel {
        padding: 8px 16px;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-full);
        font-size: 12px;
        background: white;
        cursor: pointer;
      }

      .product-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
      }

      /* COMPACT PRODUCT CARDS */
      .pcard {
        background: white;
        border-radius: var(--radius-lg);
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        border: 1px solid var(--gray-200);
        box-shadow: var(--shadow-sm);
        position: relative;
        animation: cardDrop 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
        opacity: 0;
      }

      @keyframes cardDrop {
        0% {
          opacity: 0;
          transform: translateY(-40px) scale(0.96);
        }
        100% {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      .pcard:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary);
      }

      .pcard-img {
        aspect-ratio: 1/1;
        overflow: hidden;
        background: var(--gray-100);
        position: relative;
        height: 130px;
      }

      .pcard-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
      }

      .pcard:hover .pcard-img img {
        transform: scale(1.08);
      }

      .pcard-badges {
        position: absolute;
        top: 6px;
        left: 6px;
        display: flex;
        gap: 4px;
        z-index: 2;
      }

      .pbadge {
        padding: 2px 6px;
        border-radius: var(--radius-full);
        font-size: 8px;
        font-weight: 700;
      }

      .pbadge-sale {
        background: #e60023;
        color: white;
      }

      .pbadge-low {
        background: #ffb800;
        color: #1e293b;
      }

      .pcard-body {
        padding: 6px 8px 8px;
      }

      .pcard-cat {
        font-size: 8px;
        color: var(--primary);
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 2px;
      }

      .pcard-name {
        font-size: 11px;
        font-weight: 600;
        color: var(--gray-800);
        line-height: 1.2;
        height: 26px;
        overflow: hidden;
        margin-bottom: 3px;
      }

      .pcard-price {
        display: flex;
        align-items: baseline;
        gap: 4px;
        margin-bottom: 5px;
        flex-wrap: wrap;
      }

      .p-now {
        font-size: 12px;
        font-weight: 800;
        color: var(--primary);
      }

      .p-was {
        font-size: 9px;
        color: var(--gray-400);
        text-decoration: line-through;
      }

      .p-off {
        font-size: 8px;
        background: #e60023;
        color: white;
        padding: 1px 4px;
        border-radius: var(--radius-full);
      }

      .pcard-foot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 2px;
      }

      .p-stock {
        font-size: 8px;
      }

      .p-stock.low {
        color: #ffb800;
      }

      .p-stock.out {
        color: #e60023;
      }

      .order-now {
        background: var(--primary-gradient);
        border: none;
        color: white;
        padding: 4px 8px;
        border-radius: var(--radius-md);
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      }

      .order-now:hover {
        transform: scale(1.04);
        gap: 6px;
        background: var(--primary-dark);
      }

      .order-now:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      /* Category Wrapper */
      .category-wrapper {
        margin-bottom: 30px;
        background: white;
        border-radius: var(--radius-xl);
        padding: 18px;
        box-shadow: var(--shadow-sm);
        animation: fadeSlideIn 0.5s ease-out;
      }

      .category-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--gray-200);
      }

      .category-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--gray-800);
      }

      .category-title span {
        font-size: 12px;
        color: var(--gray-500);
        margin-left: 6px;
      }

      .show-more-btn {
        background: var(--primary);
        color: white;
        border: none;
        padding: 6px 18px;
        border-radius: var(--radius-full);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-fast);
      }

      .show-more-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
      }

      .all-products-container {
        display: none;
        margin-top: 14px;
      }

      .all-products-container.show {
        display: block;
      }

      /* RIGHT PANEL ENHANCEMENTS */
      .right-panel {
        width: 260px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
      }

      .info-card {
        background: white;
        border-radius: var(--radius-lg);
        padding: 14px;
        text-align: center;
        border: 1px solid var(--gray-200);
        transition: all var(--transition-base);
        animation: slideInRight 0.4s ease-out;
      }

      .info-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
      }

      .info-card i {
        font-size: 30px;
        color: var(--primary);
        margin-bottom: 8px;
      }

      .info-card h4 {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 4px;
      }

      .info-card p {
        font-size: 10px;
        color: var(--gray-500);
      }

      .play-now-btn {
        background: var(--primary-gradient);
        color: white;
        border: none;
        padding: 7px 14px;
        border-radius: var(--radius-full);
        font-size: 11px;
        margin-top: 8px;
        cursor: pointer;
        width: 100%;
        transition: all var(--transition-base);
      }

      .play-now-btn:hover {
        transform: scale(1.02);
      }

      /* Image Slideshow */
      .image-slideshow {
        position: relative;
        width: 100%;
        height: 180px;
        border-radius: var(--radius-lg);
        overflow: hidden;
        margin-top: 10px;
        box-shadow: var(--shadow-md);
      }

      .slide-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        border-radius: var(--radius-lg);
      }

      .slide-img.active {
        opacity: 1;
        z-index: 1;
      }

      .slideshow-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        padding: 8px;
        text-align: center;
        color: white;
        font-size: 10px;
        font-weight: 600;
        z-index: 2;
        pointer-events: none;
      }

      /* Partner Logo Slider */
      .partner-slider {
        background: white;
        border-radius: var(--radius-lg);
        padding: 12px 0;
        overflow: hidden;
        white-space: nowrap;
        border: 1px solid var(--gray-200);
        margin-top: 8px;
      }

      .partner-track {
        display: inline-block;
        animation: scrollLogos 20s linear infinite;
      }

      .partner-track:hover {
        animation-play-state: paused;
      }

      .partner-logo {
        display: inline-block;
        margin: 0 20px;
        filter: grayscale(100%);
        transition: all 0.3s ease;
        opacity: 0.6;
      }

      .partner-logo img {
        height: 35px;
        width: auto;
        max-width: 70px;
        object-fit: contain;
      }

      .partner-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.05);
      }

      @keyframes scrollLogos {
        0% {
          transform: translateX(0);
        }
        100% {
          transform: translateX(-50%);
        }
      }

      /* Global Premium Animations */
      @keyframes fadeSlideIn {
        from {
          opacity: 0;
          transform: translateY(15px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes slideInRight {
        from {
          opacity: 0;
          transform: translateX(20px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      /* Footer */
      .main-footer {
        background: white;
        border-top: 1px solid var(--gray-200);
        margin-top: 40px;
        padding: 35px 0 20px;
        animation: fadeSlideIn 0.6s ease-out;
      }

      .footer-inner {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 var(--container-padding);
      }

      .footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        margin-bottom: 25px;
      }

      .footer-col h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 14px;
      }

      .footer-col p,
      .footer-col a {
        font-size: 12px;
        color: var(--gray-500);
        line-height: 1.7;
        text-decoration: none;
        display: block;
      }

      .footer-col a:hover {
        color: var(--primary);
      }

      .social-links {
        display: flex;
        gap: 14px;
        margin-top: 10px;
      }

      .social-links i {
        font-size: 18px;
        color: var(--gray-500);
        cursor: pointer;
        transition: all var(--transition-fast);
      }

      .social-links i:hover {
        color: var(--primary);
        transform: translateY(-2px);
      }

      .footer-bottom {
        text-align: center;
        padding-top: 18px;
        border-top: 1px solid var(--gray-200);
        font-size: 11px;
        color: var(--gray-500);
      }

      /* Cart Drawer & Modal (fully preserved) */
      .cart-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 600;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
      }

      .cart-overlay.on {
        opacity: 1;
        pointer-events: all;
      }

      .cart-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: white;
        z-index: 700;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s;
        box-shadow: var(--shadow-xl);
      }

      .cart-drawer.on {
        transform: translateX(0);
      }

      .cd-head {
        padding: 18px;
        border-bottom: 1px solid var(--gray-200);
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .cd-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--gray-500);
      }

      .cd-body {
        flex: 1;
        overflow-y: auto;
        padding: 14px;
      }

      .cd-foot {
        padding: 18px;
        border-top: 1px solid var(--gray-200);
      }

      .cd-empty {
        text-align: center;
        padding: 40px 20px;
        color: var(--gray-400);
      }

      .ci {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--gray-200);
      }

      .ci-img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: var(--radius-md);
      }

      .ci-info {
        flex: 1;
      }

      .ci-name {
        font-weight: 600;
        font-size: 13px;
      }

      .qty-b {
        width: 26px;
        height: 26px;
        border: 1px solid var(--gray-200);
        background: white;
        border-radius: var(--radius-sm);
        cursor: pointer;
      }

      .btn-checkout {
        width: 100%;
        background: var(--primary);
        color: white;
        border: none;
        padding: 12px;
        border-radius: var(--radius-md);
        font-weight: 600;
        cursor: pointer;
      }

      .modal-bg {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        z-index: 800;
        display: none;
        place-items: center;
      }

      .modal-bg.on {
        display: grid;
      }

      .modal-box {
        background: white;
        border-radius: var(--radius-2xl);
        max-width: 1000px;
        width: 90%;
        max-height: 85vh;
        overflow-y: auto;
        position: relative;
      }

      .pd-modal-content {
        padding: 30px;
      }

      .close-modal {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--gray-100);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        cursor: pointer;
        font-size: 20px;
      }

      .toast-stack {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 2000;
      }

      .toast {
        background: var(--gray-800);
        color: white;
        padding: 10px 18px;
        border-radius: var(--radius-md);
        font-size: 12px;
        margin-top: 8px;
        border-left: 3px solid var(--primary);
        animation: slideIn 0.2s ease;
      }

      @keyframes slideIn {
        from {
          opacity: 0;
          transform: translateX(20px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      .slideout-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: white;
        z-index: 2000;
        transition: left 0.3s;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
      }

      .slideout-menu.open {
        left: 0;
      }

      .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        display: none;
      }

      .menu-overlay.show {
        display: block;
      }

      /* ============================================
   NEW PAGE VIEWS - CATEGORY PAGE (from 2.html)
   ============================================ */

      /* Category Page Layout */
      .category-page-container {
        max-width: 1400px;
        margin: 30px auto;
        padding: 0 24px;
      }

      .category-page-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 24px;
      }

      .category-col-content {
        grid-column: span 9;
      }

      .category-col-sidebar {
        grid-column: span 3;
      }

      /* Product Grid for Category Page - 4 columns (from 2.html) */
      .category-product-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 40px;
      }

      .category-product-card {
        background: white;
        border-radius: 20px;
        padding: 16px;
        cursor: pointer;
        transition: all 0.3s;
        border: 1px solid var(--gray-200);
        box-shadow: var(--shadow-sm);
      }

      .category-product-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
      }

      .category-product-card img {
        width: 100%;
        height: 140px;
        object-fit: contain;
      }

      .category-product-title {
        font-weight: 600;
        font-size: 13px;
        margin: 10px 0 6px;
      }

      .category-product-price {
        font-weight: 800;
        font-size: 16px;
        color: var(--primary-dark);
      }

      .category-product-buttons {
        display: flex;
        gap: 8px;
        margin-top: 12px;
      }

      .category-cart-btn,
      .category-order-btn {
        flex: 1;
        padding: 8px;
        border-radius: 30px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        border: none;
      }

      .category-cart-btn {
        background: rgba(26, 115, 232, 0.1);
        border: 1px solid var(--primary);
        color: var(--primary-dark);
      }

      .category-order-btn {
        background: var(--primary-gradient);
        color: white;
      }

      /* Category Page Sidebar Cards */
      .category-sidebar-card {
        background: white;
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 20px;
        text-align: center;
        border: 1px solid var(--gray-200);
      }

      .category-sidebar-card h3 {
        font-size: 22px;
        margin: 12px 0;
        color: var(--primary-dark);
      }

      .category-sidebar-btn {
        background: var(--primary-gradient);
        border: none;
        padding: 10px;
        border-radius: 40px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
      }

      .category-delivery-card {
        background: white;
        border-radius: 20px;
        padding: 20px;
        border: 1px solid var(--gray-200);
      }

      .category-delivery-card select {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 12px;
        border: 1px solid var(--gray-300);
      }

      /* Back Button */
      .back-to-home-btn {
        background: white;
        border: none;
        color: var(--primary-dark);
        cursor: pointer;
        margin: 20px 0;
        padding: 8px 20px;
        border-radius: 40px;
        font-weight: 600;
        box-shadow: var(--shadow-sm);
      }

      .back-to-home-btn:hover {
        background: var(--primary);
        color: white;
      }

      /* ============================================
   PRODUCT DETAIL PAGE (from 2.html)
   ============================================ */

      .detail-page-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 24px;
      }

      .detail-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 24px;
        margin: 24px 0;
      }

      .detail-card {
        background: white;
        border-radius: 24px;
        padding: 28px;
        margin-bottom: 24px;
        border: 1px solid var(--gray-200);
      }

      .detail-product {
        display: flex;
        gap: 32px;
        flex-wrap: wrap;
      }

      .detail-image {
        flex: 1;
        text-align: center;
      }

      .detail-image img {
        max-width: 280px;
        border-radius: 20px;
      }

      .detail-info {
        flex: 1.5;
      }

      .detail-price {
        font-size: 32px;
        font-weight: 800;
        color: var(--primary-dark);
      }

      .detail-buttons {
        display: flex;
        gap: 16px;
        margin-top: 24px;
      }

      .detail-cart-btn,
      .detail-order-btn {
        flex: 1;
        padding: 14px;
        border-radius: 40px;
        font-weight: 700;
        cursor: pointer;
        border: none;
      }

      .detail-cart-btn {
        background: var(--primary-gradient);
        color: white;
      }

      .detail-order-btn {
        background: transparent;
        border: 2px solid var(--primary);
        color: var(--primary-dark);
      }

      .promo-list {
        list-style: none;
        padding: 0;
      }

      .promo-list li {
        padding: 10px 0;
        border-bottom: 1px solid var(--gray-200);
      }

      .detail-scroll {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 8px 0;
      }

      .detail-scroll-item {
        min-width: 150px;
        background: var(--gray-100);
        border-radius: 16px;
        padding: 12px;
        cursor: pointer;
        text-align: center;
      }

      .detail-scroll-item img {
        width: 100%;
        height: 90px;
        object-fit: contain;
      }

      .delivery-method {
        display: flex;
        gap: 16px;
        margin: 20px 0;
        padding: 16px;
        background: var(--gray-100);
        border-radius: 16px;
      }

      .seller-info {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--gray-200);
      }

      /* ============================================
   ADMIN DASHBOARD - COMPLETE STYLING
   ============================================ */

      .adm-wrap {
        display: flex;
        min-height: 100vh;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
      }

      .adm-side {
        width: 280px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
      }

      .adm-slogo {
        background: linear-gradient(135deg, #1a73e8, #0d47a1);
        padding: 28px 24px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 12px;
        color: white;
        font-weight: 700;
        font-size: 18px;
      }

      .adm-slogo i {
        font-size: 32px;
      }

      .adm-nav {
        padding: 24px 16px;
        flex: 1;
      }

      .nav-section {
        color: #5b6e8c;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.5px;
        margin-top: 16px;
        margin-bottom: 12px;
        padding-left: 12px;
      }

      .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 12px 16px;
        background: none;
        border: none;
        color: var(--gray-400);
        border-radius: var(--radius-md);
        cursor: pointer;
        text-align: left;
        transition: all var(--transition-fast);
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 4px;
      }

      .nav-item i {
        width: 20px;
        font-size: 16px;
      }

      .nav-item:hover {
        background: rgba(26, 115, 232, 0.12);
        transform: translateX(6px);
        color: white;
      }

      .nav-item.on {
        background: linear-gradient(
          135deg,
          rgba(26, 115, 232, 0.2),
          rgba(13, 71, 161, 0.1)
        );
        border-left: 3px solid #1a73e8;
        color: white;
      }

      .adm-foot {
        padding: 20px;
        border-top: 1px solid var(--gray-800);
        margin-top: auto;
      }

      .nav-exit {
        width: 100%;
        padding: 12px;
        background: rgba(230, 0, 35, 0.1);
        border: 1px solid rgba(230, 0, 35, 0.3);
        color: var(--gray-400);
        border-radius: var(--radius-md);
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        transition: all var(--transition-fast);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      .nav-exit:hover {
        background: #e60023;
        border-color: #e60023;
        transform: translateY(-2px);
        color: white;
      }

      .adm-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-x: auto;
      }

      .adm-topbar {
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(10px);
        padding: 20px 32px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: white;
        position: sticky;
        top: 0;
        z-index: 100;
      }

      .adm-topbar h1 {
        font-size: 28px;
        font-weight: 700;
        background: linear-gradient(135deg, #ffffff, #94a3b8);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      .adm-content {
        padding: 28px;
        background: var(--gray-900);
        min-height: calc(100vh - 73px);
      }

      .adm-sec {
        display: none;
        animation: fadeInUp 0.4s ease-out;
      }

      .adm-sec.on {
        display: block;
      }

      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin-bottom: 32px;
      }

      .stat-card {
        background: linear-gradient(
          135deg,
          rgba(30, 41, 59, 0.9),
          rgba(15, 23, 42, 0.9)
        );
        backdrop-filter: blur(10px);
        border-radius: 24px;
        padding: 24px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        position: relative;
        overflow: hidden;
      }

      .stat-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1a73e8, #00a859, #ffb800);
      }

      .stat-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
      }

      .stat-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        font-size: 28px;
      }

      .stat-lbl {
        color: #94a3b8;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
      }

      .stat-val {
        color: white;
        font-size: 36px;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff, #cbd5e1);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      .dash-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 24px;
      }

      .dpanel {
        background: linear-gradient(
          135deg,
          rgba(30, 41, 59, 0.9),
          rgba(15, 23, 42, 0.9)
        );
        backdrop-filter: blur(10px);
        border-radius: 24px;
        padding: 24px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
      }

      .dpanel h3 {
        font-size: 18px;
        font-weight: 700;
        color: white;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #1a73e8;
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }

      .tbl-wrap {
        background: linear-gradient(
          135deg,
          rgba(30, 41, 59, 0.9),
          rgba(15, 23, 42, 0.9)
        );
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.05);
      }

      .adm-tbl {
        width: 100%;
        border-collapse: collapse;
      }

      .adm-tbl th {
        background: rgba(26, 115, 232, 0.1);
        padding: 16px 20px;
        color: #94a3b8;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      }

      .adm-tbl td {
        padding: 14px 20px;
        color: #cbd5e1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 13px;
      }

      .adm-tbl tr:hover td {
        background: rgba(26, 115, 232, 0.08);
        color: white;
      }

      .tbar {
        background: rgba(30, 41, 59, 0.5);
        border-radius: 16px;
        padding: 16px 20px;
        margin-bottom: 24px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        align-items: center;
      }

      .t-search {
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 40px;
        padding: 12px 20px;
        color: white;
        flex: 1;
        min-width: 200px;
      }

      .t-search:focus {
        border-color: #1a73e8;
        outline: none;
      }

      .btn-add {
        background: linear-gradient(135deg, #1a73e8, #0d47a1);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 40px;
        cursor: pointer;
        font-weight: 600;
      }

      .pf-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        z-index: 1500;
        display: none;
        place-items: center;
      }

      .pf-backdrop.on {
        display: grid;
      }

      .pf-box {
        background: linear-gradient(135deg, #1e293b, #0f172a);
        border-radius: 32px;
        padding: 32px;
        width: 550px;
        max-width: 90vw;
        color: white;
        max-height: 85vh;
        overflow-y: auto;
      }

      .pf-box h3 {
        font-size: 24px;
        margin-bottom: 24px;
        text-align: center;
        background: linear-gradient(135deg, #1a73e8, #60a5fa);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      .pf-box input,
      .pf-box select,
      .pf-box textarea {
        width: 100%;
        padding: 12px;
        margin-bottom: 16px;
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        color: white;
      }

      .pf-actions {
        display: flex;
        gap: 16px;
        margin-top: 20px;
      }

      .pf-actions button {
        flex: 1;
        padding: 12px;
        border-radius: 40px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
      }

      #pfSave {
        background: linear-gradient(135deg, #1a73e8, #0d47a1);
        color: white;
        border: none;
      }

      #pfCancel {
        background: rgba(100, 116, 139, 0.3);
        color: white;
        border: none;
      }

      .al-screen {
        position: fixed;
        inset: 0;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
      }

      .al-card {
        background: linear-gradient(
          135deg,
          rgba(30, 41, 59, 0.95),
          rgba(15, 23, 42, 0.95)
        );
        backdrop-filter: blur(20px);
        border-radius: 32px;
        padding: 40px;
        width: 380px;
        color: white;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
      }

      .al-logo {
        font-size: 56px;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #1a73e8, #60a5fa);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      .al-card input {
        width: 100%;
        padding: 14px;
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        color: white;
        margin: 20px 0;
      }

      .btn-al-submit {
        background: linear-gradient(135deg, #1a73e8, #0d47a1);
        color: white;
        border: none;
        padding: 14px;
        border-radius: 40px;
        width: 100%;
        cursor: pointer;
        font-weight: 700;
      }

      .btn-al-back {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--gray-400);
        padding: 12px;
        border-radius: 40px;
        width: 100%;
        cursor: pointer;
        margin-top: 12px;
      }

      .al-err {
        color: #ff4444;
        font-size: 12px;
        margin-top: -12px;
        margin-bottom: 12px;
        display: none;
      }

      .chart-placeholder {
        background: linear-gradient(
          135deg,
          rgba(30, 41, 59, 0.5),
          rgba(15, 23, 42, 0.5)
        );
        border-radius: 20px;
        padding: 40px;
        text-align: center;
        color: #64748b;
        border: 1px dashed rgba(26, 115, 232, 0.3);
      }

      @media (max-width: 1200px) {
        .product-grid {
          grid-template-columns: repeat(5, 1fr);
        }
        .category-product-grid {
          grid-template-columns: repeat(3, 1fr);
        }
      }

      @media (max-width: 992px) {
        .product-grid {
          grid-template-columns: repeat(4, 1fr);
        }
        .category-product-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .category-col-content {
          grid-column: span 12;
        }
        .category-col-sidebar {
          grid-column: span 12;
        }
      }

      @media (max-width: 768px) {
        .desktop-header {
          display: none;
        }
        .mobile-header {
          display: block;
        }
        .product-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 12px;
        }
        .category-product-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .sidebar-menu,
        .right-panel {
          display: none;
        }
        .main-layout {
          flex-direction: column;
        }
        .detail-grid {
          grid-template-columns: 1fr;
        }
        .footer-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .stats-grid {
          grid-template-columns: 1fr;
        }
        .dash-row {
          grid-template-columns: 1fr;
        }
      }

      /* ============================================
   ENHANCED ANIMATIONS & BEAUTY EFFECTS
   ============================================ */

      /* Floating animation for cards */
      @keyframes float {
        0%,
        100% {
          transform: translateY(0px);
        }
        50% {
          transform: translateY(-8px);
        }
      }

      @keyframes pulse-glow {
        0%,
        100% {
          box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4);
        }
        50% {
          box-shadow: 0 0 0 15px rgba(26, 115, 232, 0);
        }
      }

      @keyframes shimmer-effect {
        0% {
          background-position: -1000px 0;
        }
        100% {
          background-position: 1000px 0;
        }
      }

      @keyframes rotate-slow {
        from {
          transform: rotate(0deg);
        }
        to {
          transform: rotate(360deg);
        }
      }

      /* Premium Card Hover Effects */
      .category-product-card,
      .pcard,
      .top-card {
        position: relative;
        overflow: hidden;
      }

      .category-product-card::before,
      .pcard::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.3),
          transparent
        );
        transition: left 0.5s ease;
        z-index: 1;
        pointer-events: none;
      }

      .category-product-card:hover::before,
      .pcard:hover::before {
        left: 100%;
      }

      /* Glossy Effect for Product Images */
      .pcard-img,
      .category-product-card img,
      .top-card-img {
        position: relative;
      }

      .pcard-img::after,
      .category-product-card img::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.2) 0%,
          rgba(255, 255, 255, 0) 50%
        );
        pointer-events: none;
      }

      /* Enhanced Button Effects */
      .order-now,
      .category-cart-btn,
      .category-order-btn,
      .detail-cart-btn {
        position: relative;
        overflow: hidden;
      }

      .order-now::after,
      .category-cart-btn::after,
      .detail-cart-btn::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transform: translate(-50%, -50%);
        transition:
          width 0.6s,
          height 0.6s;
      }

      .order-now:active::after,
      .category-cart-btn:active::after {
        width: 100px;
        height: 100px;
      }

      /* Glassmorphism Effect for Sidebar */
      .sidebar-menu,
      .right-panel .info-card,
      .category-sidebar-card {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
      }

      /* Gradient Border Animation */
      .category-wrapper,
      .detail-card {
        position: relative;
        background: white;
      }

      .category-wrapper::before,
      .detail-card::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 2px;
        border-radius: var(--radius-xl);
        background: linear-gradient(
          135deg,
          var(--primary),
          var(--primary-dark),
          #00a859,
          var(--primary)
        );
        mask:
          linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
        -webkit-mask:
          linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
      }

      .category-wrapper:hover::before,
      .detail-card:hover::before {
        opacity: 1;
      }

      /* Premium Scrollbar */
      ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
      }

      ::-webkit-scrollbar-track {
        background: var(--gray-200);
        border-radius: var(--radius-full);
      }

      ::-webkit-scrollbar-thumb {
        background: var(--primary-gradient);
        border-radius: var(--radius-full);
      }

      ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
      }

      /* Loading Skeleton Animation */
      .skeleton {
        background: linear-gradient(
          90deg,
          var(--gray-200) 25%,
          var(--gray-300) 50%,
          var(--gray-200) 75%
        );
        background-size: 200% 100%;
        animation: shimmer-effect 1.5s infinite;
        border-radius: var(--radius-md);
      }

      /* Enhanced Hero Slider */
      .hero-slide {
        position: relative;
        overflow: hidden;
      }

      .hero-slide::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
          135deg,
          rgba(0, 0, 0, 0.4),
          rgba(0, 0, 0, 0.2)
        );
        z-index: 1;
      }

      .hero-card-content {
        position: relative;
        z-index: 2;
      }

      /* Price Tag Sticker Effect */
      .p-now {
        position: relative;
        display: inline-block;
      }

      .p-now::before {
        content: "₦";
        position: absolute;
        left: -8px;
        top: 0;
        font-size: 10px;
      }

      /* Discount Badge Animation */
      .pbadge-sale {
        animation: pulse-glow 1.5s infinite;
      }

      /* Success Toast Animation */
      @keyframes slideInRight {
        from {
          transform: translateX(100%);
          opacity: 0;
        }
        to {
          transform: translateX(0);
          opacity: 1;
        }
      }

      .toast {
        animation: slideInRight 0.3s ease-out;
      }

      /* 3D Hover Effect for Product Cards */
      .pcard,
      .category-product-card {
        transform-style: preserve-3d;
        perspective: 1000px;
      }

      .pcard:hover,
      .category-product-card:hover {
        transform: translateY(-5px) rotateX(2deg);
        box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.2);
      }

      /* Neon Glow for Buttons */
      .detail-cart-btn,
      .category-order-btn {
        position: relative;
      }

      .detail-cart-btn:hover,
      .category-order-btn:hover {
        box-shadow: 0 0 15px rgba(26, 115, 232, 0.5);
      }

      /* Image Gallery Lightbox Effect */
      .category-product-card img,
      .pcard-img img {
        transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      }

      .category-product-card:hover img,
      .pcard:hover img {
        transform: scale(1.1);
      }

      /* Animated Counter for Cart */
      .cart-badge {
        animation: pulse-glow 2s infinite;
      }

      /* Gradient Text for Headers */
      .section-header h2,
      .category-title {
        background: linear-gradient(135deg, var(--gray-800), var(--primary));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      /* Floating Action Button Effect */
      .chat-assistant-btn,
      .truth-assistant-btn {
        animation: float 3s ease-in-out infinite;
      }

      /* Enhanced Partner Slider - Multiple Rows */
      .partner-slider-enhanced {
        background: white;
        border-radius: var(--radius-lg);
        padding: 20px 0;
        overflow: hidden;
        margin-top: 15px;
        border: 1px solid var(--gray-200);
      }

      .partner-track-enhanced {
        display: flex;
        animation: scrollLogos 25s linear infinite;
        gap: 40px;
      }

      .partner-track-enhanced:hover {
        animation-play-state: paused;
      }

      .partner-logo-enhanced {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        filter: grayscale(100%);
        transition: all 0.3s ease;
        opacity: 0.7;
        min-width: 100px;
      }

      .partner-logo-enhanced img {
        height: 50px;
        width: auto;
        max-width: 100px;
        object-fit: contain;
      }

      .partner-logo-enhanced span {
        font-size: 11px;
        color: var(--gray-600);
        font-weight: 500;
      }

      .partner-logo-enhanced:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: translateY(-5px);
      }

      /* ============================================
   COMPACT ENHANCEMENTS - LEFT SIDEBAR STYLE
   ============================================ */

/* Make banners more compact */
.main-banner-slideshow {
    height: 250px !important;
    margin-bottom: 20px !important;
    border-radius: var(--radius-lg) !important;
}

.main-banner-slideshow .banner-content h2 {
    font-size: 28px !important;
}

.main-banner-slideshow .banner-content p {
    font-size: 14px !important;
}

.main-banner-slideshow .banner-btn {
    padding: 8px 24px !important;
    font-size: 13px !important;
}

/* Compact Promo Grid - 3 columns but smaller */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.promo-card {
    padding: 15px 12px !important;
}

.promo-card i {
    font-size: 28px !important;
    margin-bottom: 8px !important;
}

.promo-card h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

.promo-card p {
    font-size: 10px !important;
    margin-bottom: 8px !important;
}

.promo-tag {
    font-size: 9px !important;
    padding: 3px 10px !important;
}

/* ============================================
   NEW LAYOUT: Flash Sale + Partner on LEFT SIDEBAR
   ============================================ */

/* Hide default sidebar on category page */
.category-col-sidebar {
    display: none !important;
}

/* Make content area full width */
.category-col-content {
    grid-column: span 12 !important;
}

/* Create two-column layout for main content + right sidebar ads */
.category-page-grid {
    display: flex !important;
    gap: 20px !important;
}

.category-col-content {
    flex: 2 !important;
    min-width: 0 !important;
}

/* New Right Sidebar for Flash Sale & Partner */
.category-ads-sidebar {
    flex: 1 !important;
    width: 280px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Flash Sale Banner - Vertical/Static Version */
.flash-sale-vertical {
    background: linear-gradient(135deg, #E60023, #FF6B6B);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.flash-sale-vertical::before {
    content: '⚡';
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 80px;
    opacity: 0.15;
}

.flash-sale-vertical h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.flash-sale-vertical p {
    font-size: 11px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.flash-sale-timer-vertical {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.timer-unit-vertical {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    min-width: 60px;
}

.timer-number-vertical {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.timer-label-vertical {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.8;
}

.flash-sale-btn {
    background: white;
    color: #E60023;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* Partner Section - Vertical/Static */
.partner-vertical {
    background: white;
    border-radius: var(--radius-lg);
    padding: 15px;
    border: 1px solid var(--gray-200);
}

.partner-vertical h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-800);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    width: 100%;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    cursor: pointer;
}

.partner-item:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
}

.partner-item img {
    height: 35px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

.partner-item span {
    font-size: 10px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .category-page-grid {
        flex-direction: column !important;
    }
    
    .category-ads-sidebar {
        width: 100% !important;
        position: static !important;
    }
    
    .partner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .main-banner-slideshow {
        height: 180px !important;
    }
    
    .main-banner-slideshow .banner-content h2 {
        font-size: 18px !important;
    }
    
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}




/* ============================================
   COMPLETE CATEGORY PAGE CSS WITH SLIDESHOW
   ============================================ */

/* Container */
.category-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-to-home-btn {
    background: white;
    border: none;
    color: #0D47A1;
    cursor: pointer;
    margin: 15px 0;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.back-to-home-btn:hover {
    background: #1A73E8;
    color: white;
}

/* ============================================
   BANNER SLIDESHOW - COMPACT
   ============================================ */

.main-banner-slideshow {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 15px;
}

.banner-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.banner-btn {
    display: inline-block;
    background: white;
    color: #1A73E8;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slideshow-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: white;
    width: 24px;
    border-radius: 10px;
}

/* ============================================
   PROMO SLIDESHOW - COMPACT CAROUSEL
   ============================================ */

.promo-slideshow-container {
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
}

.promo-slides-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.promo-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.promo-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 5px;
}

.promo-card {
    background: linear-gradient(135deg, #1A73E8, #0D47A1);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg);
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.promo-card i {
    font-size: 32px;
    margin-bottom: 10px;
}

.promo-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-card p {
    font-size: 11px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.promo-tag {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
}

/* Promo Navigation Buttons */
.promo-prev, .promo-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1A73E8;
}

.promo-prev {
    left: -18px;
}

.promo-next {
    right: -18px;
}

.promo-prev:hover, .promo-next:hover {
    background: #1A73E8;
    color: white;
    transform: translateY(-50%) scale(1.05);
}

/* Promo Dots */
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s;
}

.promo-dot.active {
    background: #1A73E8;
    width: 24px;
    border-radius: 10px;
}

/* ============================================
   MAIN LAYOUT - 2 COLUMN
   ============================================ */

.category-page-grid {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.category-col-content {
    flex: 2;
    min-width: 0;
}

.category-ads-sidebar {
    flex: 1;
    width: 280px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ============================================
   TOOLBAR
   ============================================ */

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.res-count {
    font-size: 13px;
    color: #64748B;
}

.sort-sel {
    padding: 8px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 30px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

/* ============================================
   PRODUCT GRID
   ============================================ */

.category-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-product-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(26,115,232,0.25);
    border-color: #1A73E8;
}

.category-product-card img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-product-title {
    font-weight: 600;
    font-size: 13px;
    margin: 8px 0 5px;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    color: #1E293B;
}

.category-product-price {
    font-weight: 800;
    font-size: 15px;
    color: #0D47A1;
    margin-bottom: 10px;
}

.category-product-buttons {
    display: flex;
    gap: 8px;
}

.category-cart-btn {
    flex: 1;
    padding: 7px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #1A73E8;
    background: rgba(26,115,232,0.1);
    color: #0D47A1;
    transition: all 0.2s;
}

.category-order-btn {
    flex: 1;
    padding: 7px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #1A73E8, #0D47A1);
    color: white;
    transition: all 0.2s;
}

.category-cart-btn:hover, .category-order-btn:hover {
    transform: scale(1.02);
}

/* ============================================
   FLASH SALE - RIGHT SIDEBAR
   ============================================ */

.flash-sale-vertical {
    background: linear-gradient(135deg, #E60023, #FF4444);
    border-radius: 20px;
    padding: 20px 15px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(230,0,35,0.3);
}

.flash-sale-vertical::before {
    content: '⚡';
    position: absolute;
    right: -15px;
    top: -15px;
    font-size: 80px;
    opacity: 0.15;
}

.flash-sale-vertical h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.flash-sale-vertical p {
    font-size: 11px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.flash-sale-timer-vertical {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.timer-unit-vertical {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
}

.timer-number-vertical {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.timer-label-vertical {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
}

.flash-sale-btn {
    background: white;
    color: #E60023;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
}

.flash-sale-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================
   PARTNERS - RIGHT SIDEBAR
   ============================================ */

.partner-vertical {
    background: white;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.partner-vertical h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1E293B;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #1A73E8;
    display: inline-block;
    width: 100%;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: #F8FAFC;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.partner-item:hover {
    transform: translateY(-3px);
    background: #E8F0FE;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.partner-item img {
    height: 35px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

.partner-item span {
    font-size: 10px;
    color: #64748B;
    font-weight: 500;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.category-product-grid:empty::after {
    content: 'No products found';
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #94A3B8;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .category-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-page-grid {
        flex-direction: column;
    }
    
    .category-ads-sidebar {
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .promo-prev, .promo-next {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-banner-slideshow {
        height: 140px;
    }
    
    .banner-content h2 {
        font-size: 16px;
    }
    
    .banner-content p {
        font-size: 10px;
    }
    
    .banner-btn {
        padding: 4px 14px;
        font-size: 10px;
    }
    
    .promo-slide {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .promo-card {
        padding: 12px 8px;
    }
    
    .promo-card i {
        font-size: 24px;
    }
    
    .promo-card h3 {
        font-size: 13px;
    }
    
    .category-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-ads-sidebar {
        grid-template-columns: 1fr;
    }
    
    .flash-sale-timer-vertical {
        gap: 8px;
    }
    
    .timer-unit-vertical {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .timer-number-vertical {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* ============================================
   FLASH SALE BANNER - LEFT SIDE (ABOVE PRODUCTS)
   ============================================ */

.flash-sale-banner {
    background: linear-gradient(135deg, #E60023, #FF4444);
    border-radius: 16px;
    padding: 15px 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.25);
}

/* Animated background effect */
.flash-sale-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    animation: rotateBg 10s linear infinite;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Lightning bolt decorations */
.flash-sale-banner::after {
    content: '⚡⚡⚡';
    position: absolute;
    bottom: 5px;
    right: 20px;
    font-size: 40px;
    opacity: 0.1;
    letter-spacing: 10px;
}

/* Left side info */
.flash-sale-info {
    position: relative;
    z-index: 2;
}

.flash-sale-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flash-sale-info p {
    font-size: 12px;
    opacity: 0.9;
}

/* Timer container */
.flash-sale-timer {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 2;
}

/* Individual timer units */
.timer-unit {
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 15px;
    border-radius: 12px;
    min-width: 70px;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.timer-unit:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.35);
}

/* Timer numbers */
.timer-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Timer labels */
.timer-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* Pulsing animation for urgency */
@keyframes pulseUrgency {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.timer-unit {
    animation: pulseUrgency 1.5s infinite;
}

.timer-unit:nth-child(2) {
    animation-delay: 0.3s;
}

.timer-unit:nth-child(3) {
    animation-delay: 0.6s;
}

/* Responsive design */
@media (max-width: 768px) {
    .flash-sale-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    .flash-sale-info h3 {
        font-size: 20px;
    }
    
    .flash-sale-info p {
        font-size: 11px;
    }
    
    .flash-sale-timer {
        gap: 10px;
    }
    
    .timer-unit {
        min-width: 55px;
        padding: 6px 10px;
    }
    
    .timer-number {
        font-size: 22px;
    }
    
    .timer-label {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .flash-sale-timer {
        gap: 8px;
    }
    
    .timer-unit {
        min-width: 45px;
        padding: 5px 8px;
    }
    
    .timer-number {
        font-size: 18px;
    }
}

.floating-cart-summary {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 12px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid var(--gray-200);
}

.floating-cart-summary:hover {
    transform: scale(1.05);
}

.floating-cart-icon {
    position: relative;
}

.floating-cart-icon i {
    font-size: 24px;
    color: var(--primary);
}

.floating-cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e60023;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 10px;
}

.price-range input {
    width: 100%;
    margin: 10px 0;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-600);
}

.filter-group {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 12px;
}

.filter-header {
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filter-content.open {
    max-height: 200px;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26,115,232,0.4);
}

[data-theme="dark"] {
    --gray-100: #1a1a2e;
    --gray-200: #16213e;
    --gray-700: #e2e8f0;
    --gray-800: #f8fafc;
    --white: #0f172a;
}

[data-theme="dark"] .pcard,
[data-theme="dark"] .category-wrapper {
    background: #1e293b;
}

/* PRODUCT DETAIL PAGE STYLES - COMPATIBLE WITH EXISTING CSS */
    #productDetailPage {
        min-height: 100vh;
        background: var(--aqua-gradient, linear-gradient(145deg, #e8f4f8 0%, #d4eaf0 50%, #c0dfe8 100%));
    }

    .detail-page-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 20px 24px;
    }

    .detail-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 24px;
        margin-top: 20px;
    }

    .main-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .detail-card {
        background: white;
        border-radius: 20px;
        padding: 28px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 1px solid var(--gray-200, #e2e8f0);
    }

    .detail-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .detail-product {
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
    }

    .detail-image {
        flex: 1;
        min-width: 250px;
        text-align: center;
        background: var(--gray-100, #f8fafc);
        border-radius: 16px;
        padding: 20px;
    }

    .detail-image img {
        max-width: 100%;
        max-height: 350px;
        object-fit: contain;
        border-radius: 12px;
    }

    .detail-info {
        flex: 1.5;
    }

    .flash-badge {
        background: var(--primary-gradient, linear-gradient(135deg, #1a73e8, #0d47a1));
        color: white;
        padding: 6px 16px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 600;
        display: inline-block;
    }

    .product-title {
        font-size: 26px;
        font-weight: 700;
        margin: 16px 0;
        color: var(--gray-800, #1e293b);
    }

    .product-brand {
        color: var(--gray-600, #475569);
        font-size: 14px;
        margin-bottom: 16px;
    }

    .brand-name {
        color: var(--primary-dark, #0d47a1);
        font-weight: 600;
    }

    .separator {
        margin: 0 8px;
        color: var(--gray-400, #94a3b8);
    }

    .premium-badge {
        background: #fef3c7;
        color: #d97706;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
    }

    .price-section {
        margin: 20px 0;
        display: flex;
        align-items: baseline;
        gap: 12px;
        flex-wrap: wrap;
    }

    .detail-price {
        font-size: 32px;
        font-weight: 800;
        color: var(--primary-dark, #0d47a1);
    }

    .old-price {
        text-decoration: line-through;
        color: var(--gray-400, #94a3b8);
        font-size: 16px;
    }

    .detail-buttons {
        display: flex;
        gap: 16px;
        margin: 24px 0;
    }

    .detail-cart-btn, .detail-order-btn {
        flex: 1;
        padding: 14px 24px;
        border-radius: 40px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .detail-cart-btn {
        background: var(--primary-gradient, linear-gradient(135deg, #1a73e8, #0d47a1));
        color: white;
        border: none;
    }

    .detail-cart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
    }

    .detail-order-btn {
        background: transparent;
        border: 2px solid var(--primary, #1a73e8);
        color: var(--primary-dark, #0d47a1);
    }

    .detail-order-btn:hover {
        background: var(--primary-light, #e8f0fe);
        transform: translateY(-2px);
    }

    .product-meta {
        display: flex;
        gap: 20px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--gray-200, #e2e8f0);
        flex-wrap: wrap;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--gray-600, #475569);
    }

    .meta-item i {
        color: var(--primary, #1a73e8);
        font-size: 14px;
    }

    .promotions-card h4, .related-section h4, .recent-section h4, .delivery-card h4, .seller-card h4, .safety-card h4 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 20px;
        color: var(--gray-800, #1e293b);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .promo-list {
        list-style: none;
        padding: 0;
    }

    .promo-list li {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-200, #e2e8f0);
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--gray-700, #334155);
    }

    .promo-list li i {
        color: var(--primary, #1a73e8);
        width: 20px;
    }

    .detail-scroll {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 8px 4px;
        scrollbar-width: thin;
    }

    .detail-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .detail-scroll-item {
        min-width: 150px;
        background: var(--gray-100, #f8fafc);
        border-radius: 16px;
        padding: 16px;
        cursor: pointer;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid var(--gray-200, #e2e8f0);
    }

    .detail-scroll-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-color: var(--primary, #1a73e8);
    }

    .detail-scroll-item img {
        width: 100%;
        height: 100px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    .detail-scroll-item p {
        font-size: 12px;
        font-weight: 600;
        margin: 8px 0;
        color: var(--gray-800, #1e293b);
    }

    .detail-scroll-item strong {
        font-size: 13px;
        color: var(--primary, #1a73e8);
    }

    .scroll-loading {
        text-align: center;
        padding: 40px;
        color: var(--gray-500, #64748b);
        width: 100%;
    }

    /* SIDEBAR STYLES */
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .delivery-options {
        margin-bottom: 20px;
    }

    .delivery-select {
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 12px;
        border: 1px solid var(--gray-300, #cbd5e1);
        border-radius: 12px;
        font-size: 13px;
        background: white;
        cursor: pointer;
    }

    .delivery-select:focus {
        outline: none;
        border-color: var(--primary, #1a73e8);
    }

    .delivery-method {
        display: flex;
        gap: 16px;
        padding: 16px;
        background: var(--gray-100, #f8fafc);
        border-radius: 16px;
        margin-top: 8px;
    }

    .delivery-icon {
        width: 48px;
        height: 48px;
        background: var(--primary-light, #e8f0fe);
        border-radius: 50%;
        display: flex;
            align-items: center;
        justify-content: center;
    }

    .delivery-icon i {
        font-size: 24px;
        color: var(--primary, #1a73e8);
    }

    .delivery-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .delivery-details strong {
        font-size: 14px;
        color: var(--gray-800, #1e293b);
    }

    .delivery-fee {
        font-size: 12px;
        color: var(--primary, #1a73e8);
        font-weight: 600;
    }

    .delivery-date {
        font-size: 11px;
        color: var(--gray-500, #64748b);
    }

    /* SELLER CARD */
    .seller-header {
        display: flex;
        gap: 16px;
        margin-bottom: 20px;
    }

    .seller-logo {
        width: 56px;
        height: 56px;
        background: var(--primary-gradient, linear-gradient(135deg, #1a73e8, #0d47a1));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .seller-logo i {
        font-size: 28px;
        color: white;
    }

    .seller-details {
        flex: 1;
    }

    .seller-name {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .seller-rating {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 6px;
    }

    .seller-rating i {
        color: #ffb800;
        font-size: 12px;
    }

    .rating-score {
        font-size: 11px;
        color: var(--gray-600, #475569);
    }

    .seller-badge {
        font-size: 11px;
        color: var(--primary, #1a73e8);
    }

    .seller-badge i {
        font-size: 11px;
        margin-right: 4px;
    }

    .seller-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin: 20px 0;
        padding: 16px 0;
        border-top: 1px solid var(--gray-200, #e2e8f0);
        border-bottom: 1px solid var(--gray-200, #e2e8f0);
    }

    .stat {
        text-align: center;
    }

    .stat-value {
        display: block;
        font-size: 16px;
        font-weight: 800;
        color: var(--primary, #1a73e8);
    }

    .stat-label {
        display: block;
        font-size: 10px;
        color: var(--gray-500, #64748b);
        margin-top: 4px;
    }

    .contact-seller-btn {
        width: 100%;
        padding: 12px;
        background: var(--gray-100, #f8fafc);
        border: 1px solid var(--gray-300, #cbd5e1);
        border-radius: 40px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .contact-seller-btn:hover {
        background: var(--primary, #1a73e8);
        color: white;
        border-color: var(--primary, #1a73e8);
    }

    /* SAFETY LIST */
    .safety-list {
        list-style: none;
        padding: 0;
    }

    .safety-list li {
        padding: 10px 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        color: var(--gray-600, #475569);
    }

    .safety-list li i {
        color: #00a859;
        font-size: 14px;
    }

    /* CART DRAWER STYLES */
    .cart-summary {
        margin-bottom: 16px;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        font-size: 13px;
        color: var(--gray-600, #475569);
    }

    .summary-row.total {
        font-weight: 700;
        font-size: 16px;
        color: var(--gray-800, #1e293b);
        border-top: 1px solid var(--gray-200, #e2e8f0);
        margin-top: 8px;
        padding-top: 12px;
    }

    .continue-shopping-btn {
        background: var(--primary-light, #e8f0fe);
        border: none;
        padding: 10px 20px;
        border-radius: 30px;
        color: var(--primary, #1a73e8);
        font-weight: 600;
        cursor: pointer;
        margin-top: 16px;
    }

    /* RESPONSIVE DESIGN */
    @media (max-width: 992px) {
        .detail-grid {
            grid-template-columns: 1fr;
        }
        
        .detail-product {
            flex-direction: column;
        }
        
        .product-title {
            font-size: 22px;
        }
        
        .detail-price {
            font-size: 28px;
        }
    }

    @media (max-width: 768px) {
        .detail-page-container {
            padding: 16px;
        }
        
        .detail-card {
            padding: 20px;
        }
        
        .detail-buttons {
            flex-direction: column;
        }
        
        .product-meta {
            gap: 12px;
        }
        
        .seller-stats {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .detail-scroll-item {
            min-width: 120px;
        }
    }

    @media (max-width: 480px) {
        .detail-scroll-item {
            min-width: 100px;
        }
        
        .detail-scroll-item img {
            height: 70px;
        }
    }