:root {
    --primary: #FF6B00;
    --primary-rgb: 255, 107, 0;
    --primary-dark: #E66000;
    --dark-portal: #0F172A;
    --white: #FFFFFF;
    --bg-body: #F8FAFC;
    --border: #E2E8F0;
    --text-main: #1E293B;
    --text-slate: #64748B;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: visible !important;
    /* CRITICAL: Allow dropdowns to overflow */
}

/* Announcement Bar - Kontrast Başlangıcı */
.top-announcement {
    background: var(--dark-portal);
    color: var(--white);
    padding: 10px 0;
    font-size: 12px;
}

.top-announcement .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-live {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    margin-right: 10px;
    font-size: 10px;
}

.top-utility {
    display: flex;
    gap: 20px;
}

.top-utility a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
}

.top-utility a:hover {
    color: var(--white);
}

/* Main White Header Row */
.contrast-header {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible !important;
    /* CRITICAL: Allow mega menu to overflow */
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

/* Logo */
.portal-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-portal);
    text-decoration: none;
    letter-spacing: 0;
}

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

.search-elevated {
    width: 100%;
    max-width: 500px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    flex: 1;
    max-width: 650px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.search-elevated:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-icon-inside {
    padding-left: 20px;
    display: flex;
    align-items: center;
    color: var(--text-slate);
}

.search-icon-inside i {
    width: 20px;
    height: 20px;
}

.search-elevated:focus-within .search-icon-inside {
    color: var(--primary);
}

.search-elevated input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
}

.search-trigger {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    margin-right: 4px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    transition: all 0.2s;
}

.search-trigger:hover {
    background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-portal);
}

.icon-circle {
    width: 44px;
    height: 44px;
    background: var(--bg-body);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.icon-circle.orange {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
}

.icon-circle i {
    width: 20px;
}

.icon-circle .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--dark-portal);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    border: 2px solid var(--white);
}

.text-box {
    display: flex;
    flex-direction: column;
}

.text-box small {
    font-size: 10px;
    color: var(--text-slate);
    font-weight: 600;
    text-transform: uppercase;
}

.text-box b {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.contrast-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-top: 1px solid #f1f5f9;
    flex-wrap: nowrap;
    overflow: visible !important;
    /* CRITICAL: Allow mega menu to overflow */
    position: relative;
    min-height: 50px;
    /* Changed from height to min-height */
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    position: static;
    /* Make static so mega-menu can center to container */
    z-index: 100;
    flex: 1;
    overflow: visible;
}

.cat-link {
    text-decoration: none;
    color: var(--text-slate);
    font-size: 12.5px;
    /* Slightly smaller to fit */
    font-weight: 700;
    padding: 0 15px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.2s;
}

.cat-link:hover {
    color: var(--dark-portal);
    background: var(--bg-body);
}

.cat-link.active {
    color: var(--primary);
    position: relative;
}

.cat-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.cat-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-link .dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.mega-menu-wrapper:hover .cat-link .dropdown-icon,
.mega-menu-wrapper.active .cat-link .dropdown-icon {
    transform: rotate(180deg);
}

/* --- Mega Menu Module - Complete Rewrite --- */
.mega-menu-wrapper {
    position: static;
    display: inline-block;
}

/* Cat link fills wrapper completely */
.mega-menu-wrapper>.cat-link {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
}

/* Mega menu container - sits directly below wrapper with no gap */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: 1240px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--primary);
}

/* Invisible bridge - ensures hover connection between link and dropdown */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 6px;
    background: transparent;
}

/* Show mega menu on hover - pure CSS approach */
.mega-menu-wrapper:hover>.mega-menu,
.mega-menu-wrapper.active>.mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu-content-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.mega-column {
    min-width: 0;
}

.mega-title {
    font-size: 13px;
    color: var(--dark-portal);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-list li {
    margin-bottom: 8px;
}

.mega-list a {
    text-decoration: none;
    color: var(--text-slate);
    font-size: 13px;
    font-weight: 600;
    display: block;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-list a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.part-lite {
    font-size: 11px;
    opacity: 0.6;
    font-weight: 400;
    margin-left: 4px;
}

.view-all {
    margin-top: 12px;
}

.view-all a {
    color: var(--primary) !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.mega-banner {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.mega-banner-img-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.mega-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease;
    display: block;
}

.mega-banner-img-link:hover .mega-banner-img {
    transform: scale(1.03);
}

.banner-box {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px dashed #cbd5e1;
}

.banner-box .tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 12px;
    width: fit-content;
}

.banner-box h4 {
    font-size: 16px;
    color: var(--dark-portal);
    margin-bottom: 8px;
    font-weight: 800;
}

.banner-box p {
    font-size: 13px;
    color: var(--text-slate);
    line-height: 1.4;
}

.view-all-link:hover {
    background: rgba(255, 107, 0, 0.1) !important;
}

.view-all-link i {
    width: 16px;
    height: 16px;
}

/* Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.brand-card {
    padding: 18px 15px;
    background: var(--bg-body);
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.brand-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

.brand-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-portal);
    margin-bottom: 6px;
}

.brand-count {
    font-size: 11px;
    color: var(--text-slate);
    font-weight: 600;
}

.view-all-brands {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
}

.view-all-brands .brand-name,
.view-all-brands .brand-count {
    color: white;
}

.view-all-brands:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-color: transparent;
}

/* Featured Items */
.featured-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.featured-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-body);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.featured-item:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.featured-item i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Mega Menu Search */
.mega-menu-search {
    margin-top: auto;
}

.mega-menu-search h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--dark-portal);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-search-form {
    width: 100%;
}

.mega-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-body);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.mega-search-input:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.mega-search-input i {
    width: 18px;
    height: 18px;
    color: var(--text-slate);
    flex-shrink: 0;
}

.mega-search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-portal);
    outline: none;
}

.mega-search-input input::placeholder {
    color: var(--text-slate);
}

/* Responsive Mega Menu */
@media (max-width: 1024px) {
    .mega-menu-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .mega-menu-panel.mega-menu-featured {
        grid-column: 1 / -1;
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu {
        width: calc(100vw - 40px);
        left: 20px;
        padding: 30px 20px;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-items {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .featured-item {
        flex: 1;
        min-width: calc(50% - 5px);
    }
}

.nav-express {
    display: flex;
    align-items: center;
}

.nav-express a {
    text-decoration: none;
    color: #10B981;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modern Portal Hero Section */
.portal-hero {
    position: relative;
    padding: 80px 0;
    background: #f8fafc;
    overflow: hidden;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.hero-content-side {
    position: relative;
    z-index: 2;
}

.hero-visual-side {
    position: relative;
    height: 450px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.15);
}

.hero-visual-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-super-title {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-content-side h1 {
    font-size: 4rem;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--dark-portal);
    letter-spacing: -2px;
}

.hero-content-side h1 span {
    color: var(--primary);
}

.hero-search-center {
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    margin-top: 40px;
    max-width: 550px;
}

.main-input-group {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 0 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.main-input-group:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.1);
    transform: translateY(-2px);
}

.main-input-group i {
    color: var(--text-slate);
    width: 24px;
    height: 24px;
    margin-right: 20px;
}

.main-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-portal);
    outline: none;
}

/* Stats Line */
.hero-footer-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item i {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.stat-item b {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--dark-portal);
    line-height: 1;
}

.stat-item span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-slate);
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

/* Modern Portal Sections */
.portal-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 25px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--dark-portal);
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    font-size: 15px;
    color: var(--text-slate);
    margin-top: 8px;
    font-weight: 500;
}

.view-all-btn {
    text-decoration: none;
    color: var(--dark-portal);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.view-all-btn i {
    width: 16px;
    color: var(--primary);
}

.view-all-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(5px);
}

/* Product Grid System */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-discount {
    background: #E11D48;
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
}

.badge-original {
    background: var(--dark-portal);
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
}

/* Image Area */
.product-image {
    width: 100%;
    aspect-ratio: 1.1;
    background: var(--grey-50);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.quick-add {
    display: none !important;
}

/* Product Details */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-slate);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark-portal);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.old-price {
    font-size: 18px;
    color: #94a3b8;
    font-weight: 600;
}

.campaign-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.campaign-label {
    font-size: 10px;
    font-weight: 800;
    color: #F59E0B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaign-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.current-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.25);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-portal);
    padding: 18px 45px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--border);
    margin-left: 15px;
}

.btn-portal {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.2);
}

.btn-portal:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.3);
}

.btn-portal:active {
    transform: translateY(-1px);
}

/* Philips Master Portal Box (Referans Görsel Stili) */
.philips-portal-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.philips-master-box {
    background: #0b5ed7;
    /* Philips Blue */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(11, 94, 215, 0.15);
}

.philips-box-header {
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-text h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 5px;
}

.header-text p {
    font-size: 15px;
    opacity: 0.8;
}

.header-logo {
    font-size: 28px;
    font-weight: 950;
    letter-spacing: 2px;
    opacity: 0.3;
}

.philips-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 sütun (8 ürün için 2 satır olur) */
    gap: 2px;
    /* İnce beyaz çizgiler için */
    background: rgba(255, 255, 255, 0.1);
    /* Ayracı çizgiler */
}

.philips-item {
    background: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.item-img {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.item-img img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-portal);
    line-height: 1.5;
    margin-bottom: 15px;
    height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-status {
    font-size: 10px;
    font-weight: 800;
    color: #16a34a;
    /* Başarılı yeşili */
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.item-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--dark-portal);
    margin-top: auto;
}

.philips-box-footer {
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.philips-box-footer a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
}

.philips-box-footer a:hover {
    gap: 20px;
}

.philips-box-footer a i {
    width: 18px;
}

/* Technical Catalog Section */
.technical-catalog {
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.filter-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.pill {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-slate);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pill.active {
    background: var(--dark-portal);
    color: white;
    border-color: var(--dark-portal);
}

.pill:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.catalog-item {
    border-radius: 16px;
    padding: 20px;
    background: white;
}

.catalog-item .product-image {
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

.catalog-footer {
    margin-top: 50px;
    text-align: center;
}

.load-more-btn {
    background: white;
    border: 2px solid var(--border);
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-portal);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.load-more-btn i {
    width: 18px;
}

/* Product Detail Page Styles */
.product-detail-page {
    padding: 40px 0 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-slate);
}

.breadcrumb a {
    color: var(--text-slate);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb i {
    width: 14px;
    opacity: 0.5;
}

.breadcrumb span {
    color: var(--dark-portal);
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    background: white;
    border: 1px solid var(--border);
    border-radius: 32px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    position: relative;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image .badge-original {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--dark-portal);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumb {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    aspect-ratio: 1;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb.active {
    border-color: var(--primary);
    border-width: 2px;
}

.thumb img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Product Info */
.brand-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.product-essentials h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark-portal);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.product-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-item .label {
    font-weight: 700;
    color: var(--text-slate);
}

.meta-item .value {
    font-weight: 950;
    color: var(--dark-portal);
}

.meta-item .value.success {
    color: #16a34a;
}

.price-box {
    background: #f8fafc;
    padding: 35px;
    border-radius: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.price-box .old-price {
    font-size: 18px;
    color: var(--text-slate);
    margin-bottom: 5px;
    font-weight: 700;
}

.price-box .current-price {
    font-size: 44px;
    font-weight: 950;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    gap: 10px;
    letter-spacing: -2px;
}

.price-box .current-price span {
    font-size: 16px;
    color: var(--text-slate);
    font-weight: 700;
    letter-spacing: 0;
}

.stock-info {
    margin-top: 20px;
    font-size: 14px;
    color: var(--dark-portal);
    font-weight: 700;
}

.stock-info span {
    color: #16a34a;
    font-weight: 900;
}

.purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 5px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--dark-portal);
    display: flex;
}

.qty-btn i {
    width: 18px;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 900;
    font-size: 18px;
    color: var(--dark-portal);
}

.buy-btn {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 900;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.25);
    padding: 15px 30px;
}

.whatsapp-btn {
    width: 100%;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    padding: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
    padding: 0;
}

.trust-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 15px;
    font-size: 11px;
    font-weight: 800;
    color: var(--dark-portal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.trust-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.trust-item i {
    width: 28px;
    height: 28px;
    color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
    padding: 6px;
    border-radius: 10px;
}

/* Specs Table */
.product-tabs {
    margin-top: 20px;
}

.tab-header {
    display: flex;
    gap: 40px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}

.tab-link {
    background: none;
    border: none;
    padding: 15px 0;
    font-weight: 900;
    font-size: 16px;
    color: var(--text-slate);
    cursor: pointer;
    position: relative;
}

.tab-link.active {
    color: var(--dark-portal);
}

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

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.specs-table td:first-child {
    font-weight: 800;
    color: var(--text-slate);
    width: 250px;
    background: #fbfcfd;
}

.specs-table td:last-child {
    font-weight: 900;
    color: var(--dark-portal);
}

.product-description-content {
    padding: 30px;
    background: #fbfcfd;
    border-radius: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

.product-description-content h1,
.product-description-content h2,
.product-description-content h3 {
    color: var(--dark-portal);
    font-weight: 800;
    margin-top: 25px;
    margin-bottom: 15px;
}

.product-description-content p {
    margin-bottom: 15px;
}

.product-description-content ul,
.product-description-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.product-description-content li {
    margin-bottom: 8px;
}

.product-description-content strong {
    font-weight: 800;
    color: var(--dark-portal);
}

/* PORTAL BANNERS SECTION */
.portal-banners {
    padding: 80px 0;
    background: #fff;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 25px;
}

.banner-item {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.banner-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.2);
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.banner-item:hover img {
    transform: scale(1.12);
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.banner-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.banner-content p {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
    max-width: 90%;
}

/* Grid Spans */
.banner-robot {
    grid-column: span 8;
}

.banner-kitchen {
    grid-column: span 4;
}

.banner-washing {
    grid-column: span 4;
}

.banner-shaver {
    grid-column: span 8;
}

@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }

    .banner-robot,
    .banner-kitchen,
    .banner-washing,
    .banner-shaver {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .banner-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .banner-robot,
    .banner-kitchen,
    .banner-washing,
    .banner-shaver {
        grid-column: span 1;
    }

    .banner-content h3 {
        font-size: 1.4rem;
    }
}

/* Pagination System */
.pagination-wrap {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-portal);
    font-weight: 800;
    font-size: 14px;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Cart Modal Overlay */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.cart-modal {
    background: white;
    border-radius: 32px;
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.cart-modal-icon i {
    width: 40px;
    height: 40px;
    color: white;
}

.cart-modal h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-portal);
    margin-bottom: 15px;
}

.cart-modal-product {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-slate);
    margin-bottom: 8px;
    line-height: 1.5;
}

.cart-modal-qty {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-slate);
    margin-bottom: 35px;
}

.cart-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-continue,
.btn-go-cart {
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-continue {
    background: #f1f5f9;
    color: var(--dark-portal);
    border: 1px solid #e2e8f0;
}

.btn-continue:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-go-cart {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.25);
}

.btn-go-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.35);
}

.btn-continue i,
.btn-go-cart i {
    width: 18px;
    height: 18px;
}

/* Toast Notifications */
.custom-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    z-index: 10001;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast-icon i {
    width: 22px;
    height: 22px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark-portal);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-slate);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-slate);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f1f5f9;
    color: var(--dark-portal);
}

.toast-close i {
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Mobile Responsive for Modal */
@media (max-width: 600px) {
    .cart-modal {
        padding: 40px 25px;
    }

    .cart-modal-actions {
        grid-template-columns: 1fr;
    }

    .custom-toast {
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* --- MOBILE RESPONSIVE & HAMBURGER MENU --- */

/* Hide hamburger by default */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark-portal);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    /* Controlled by JS */
    flex-direction: column;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
    margin-bottom: 40px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    transition: color 0.2s;
}

.mobile-menu-links a:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .header-main-row {
        gap: 20px;
    }

    .search-elevated {
        max-width: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-announcement {
        display: none;
        /* Hide top bar on small mobile for space */
    }

    .header-main-row {
        flex-wrap: wrap;
        padding: 15px 0;
        gap: 15px;
    }

    .portal-logo {
        order: 1;
        font-size: 24px;
    }

    .header-actions {
        order: 2;
        gap: 10px;
    }

    .mobile-nav-toggle {
        display: block;
        order: 0;
    }

    .search-elevated {
        order: 3;
        width: 100%;
        margin-top: 5px;
    }

    .contrast-nav {
        display: none;
        /* Hide desktop nav */
    }

    /* Hero Responsive */
    .hero-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 30px;
    }

    .hero-content-side h1 {
        font-size: 2rem;
    }

    .hero-visual-side {
        height: 250px;
    }

    .hero-footer-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    /* Grid Responsive */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        padding: 15px;
        border-radius: 16px;
    }

    .product-title {
        font-size: 14px;
        height: 40px;
        overflow: hidden;
    }

    .campaign-price,
    .current-price {
        font-size: 18px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .view-all-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .text-box {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-item .text-box {
        display: none;
        /* Only icons on very small screens */
    }

    .icon-circle {
        width: 40px;
        height: 40px;
    }
}

/* --- PRODUCT DETAIL MOBILE RESPONSIVE --- */

@media (max-width: 992px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-essentials h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .main-image {
        padding: 30px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px 0 40px;
    }

    .breadcrumb {
        margin-bottom: 20px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        line-height: 1.6;
    }

    .breadcrumb a,
    .breadcrumb span,
    .breadcrumb i {
        display: inline-block;
        vertical-align: middle;
    }

    .product-meta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }

    .price-box {
        padding: 20px;
        border-radius: 16px;
    }

    .price-box .current-price {
        font-size: 32px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .trust-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
        text-align: left;
    }

    .trust-item i {
        width: 35px;
        height: 35px;
    }

    .purchase-actions {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .buy-btn {
        width: 100%;
    }

    .tab-header {
        gap: 20px;
    }

    .tab-link {
        font-size: 14px;
    }

    .description-header {
        padding: 20px;
    }

    .description-header h2 {
        font-size: 1.2rem;
    }

    .description-body {
        padding: 20px;
        font-size: 1rem;
    }
}

/* Hide elements on mobile */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* Mobile Menu User Greeting */
.mobile-user-greeting {
    padding: 0 0 20px 0;
    text-align: left;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.mobile-user-greeting small {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.mobile-user-greeting b {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.mobile-menu-links i {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    vertical-align: middle;
    opacity: 0.8;
}

/* --- GLOBAL RESPONSIVE ENHANCEMENTS --- */

/* Fix for inline grid layouts */
@media (max-width: 992px) {

    /* Cart Page Layout */
    .cart-page-wrapper .container>div[style*="grid-template-columns: 1fr 400px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cart-summary-sidebar {
        position: static !important;
        width: 100% !important;
    }

    /* Auth Page Layout */
    .auth-page-wrapper .container>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        max-width: 500px !important;
    }

    /* Account Page Layout */
    .portal-section .container>div[style*="grid-template-columns: 280px 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {

    /* Header & General UI */
    .section-header h1 {
        font-size: 24px !important;
    }

    .container {
        padding: 0 15px !important;
    }

    /* Cart Item Rows */
    .cart-item-row {
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 15px !important;
        padding: 20px 0 !important;
    }

    .cart-item-row .item-img-box {
        width: 80px !important;
        height: 80px !important;
        grid-row: span 2;
    }

    .cart-items-list {
        padding: 0 15px !important;
    }

    /* Column hiding for complex rows on mobile */
    .cart-item-row>div:nth-child(3),
    /* Quantity */
    .cart-item-row>div:nth-child(4)

    /* Subtotal */
        {
        grid-column: 2;
    }

    .cart-item-row .remove-btn {
        position: absolute;
        top: 10px;
        right: 0;
    }

    .cart-header h1 {
        font-size: 1.8rem !important;
    }

    .checkout-stepper {
        display: none !important;
        /* Hide stepper on mobile to save space */
    }

    /* Account Sidebar */
    aside[style*="background: white"] {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* Order Card Details */
    .orders-list-item header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .orders-list-item header div:last-child {
        text-align: left !important;
    }

    /* Force full width on buttons */
    .btn-portal {
        width: 100% !important;
    }
}

/* Fix for SEO boxes and descriptions with inline styles */
.category-seo-box,
.product-description-section {
    padding: 30px 15px !important;
    margin-top: 40px !important;
}

/* Category header responsiveness */
.section-header {
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
}

.section-header .section-title h1 {
    font-size: 28px !important;
}

/* Responsive Table Fixes (if any) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {

    /* Order Detail Grid */
    .portal-section .container>div[style*="max-width: 1000px"]>div[style*="grid-template-columns: 1fr 350px"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {

    /* Table Responsive for Order Details */
    .portal-section table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .portal-section thead {
        display: none;
    }

    .portal-section tr {
        display: flex;
        flex-direction: column;
        padding: 20px 0 !important;
        border-bottom: 2px solid #f1f5f9 !important;
    }

    .portal-section td {
        display: flex;
        justify-content: space-between;
        padding: 10px 0 !important;
        border: none !important;
    }

    .portal-section td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--text-slate);
        font-size: 12px;
        text-transform: uppercase;
    }

    /* Cart Summary Adjustments */
    .price-box .current-price {
        font-size: 28px !important;
    }

    /* Category SEO Box */
    .category-seo-box {
        margin-top: 40px !important;
        padding: 20px !important;
    }

    /* Auth Page spacing */
    .auth-page-wrapper {
        padding: 40px 0 !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* --- CLEAN RESPONSIVE LAYOUTS --- */
@media (max-width: 992px) {

    .cart-layout-grid,
    .account-layout-grid,
    .auth-page-wrapper .container>div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {

    /* Category SEO Box Padding */
    .category-seo-box {
        padding: 20px !important;
        margin-top: 30px !important;
    }

    /* Info pages padding */
    .portal-section {
        padding: 40px 0 !important;
    }
}

/* Fix for breadcrumb on small screens */
.breadcrumb {
    font-size: 13px;
}

/* Ensure container doesn't overflow */
.container {
    overflow: visible;
}

/* Static Page Styles */
.page-header {
    background: #f8fafc;
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-portal);
    letter-spacing: -1px;
}

.static-content-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.05);
    line-height: 1.8;
    color: #475569;
}

.static-content-wrap h2 {
    color: var(--dark-portal);
    margin: 40px 0 20px;
    font-size: 1.5rem;
    font-weight: 800;
}

.static-content-wrap p {
    margin-bottom: 25px;
}

.static-content-wrap ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.static-content-wrap li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .static-content-wrap {
        padding: 30px 20px;
        border-radius: 20px;
    }
}

/* ============================================
   MEGA FOOTER STYLES
   ============================================ */

/* ============================================
   MEGA FOOTER STYLES (MATCHING MEGAMENU)
   ============================================ */

.mega-footer {
    background: var(--white);
    border-top: 2px solid var(--border);
    margin-top: 100px;
    position: relative;
    z-index: 10;
}

.footer-middle {
    padding: 80px 0 60px;
}

.footer-mega-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.brand-column {
    padding-right: 40px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-portal);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 25px;
}

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

.footer-description {
    color: var(--text-slate);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-body);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-portal);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.social-link i {
    width: 20px;
    height: 20px;
}

/* Category Columns - Matching Megamenu Styles */
.mega-column .mega-title {
    font-size: 13px;
    color: var(--dark-portal);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-body);
    position: relative;
}

.mega-column .mega-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.mega-column .mega-title a {
    color: inherit;
    text-decoration: none;
}

.mega-column .mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column .mega-list li {
    margin-bottom: 12px;
}

.mega-column .mega-list a {
    color: var(--text-slate);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: block;
}

.mega-column .mega-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.mega-column .view-all {
    margin-top: 20px;
}

.mega-column .view-all a {
    color: var(--primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* Contact Column Specifics */
.mega-contact-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mega-contact-box .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark-portal);
    font-size: 14px;
    font-weight: 600;
}

.mega-contact-box .contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-contact-box .contact-item b {
    font-size: 16px;
    font-weight: 800;
}

/* Features Bar */
.footer-features {
    background: var(--bg-body);
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    border-color: var(--primary);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    width: 26px;
    height: 26px;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark-portal);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-slate);
    line-height: 1.4;
    font-weight: 600;
}

/* Copyright Row */
.footer-copyright {
    padding: 30px 0;
    background: var(--dark-portal);
    color: rgba(255, 255, 255, 0.6);
}

.copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-row p {
    font-size: 13px;
    font-weight: 600;
}

.powered-by a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    transition: opacity 0.3s;
}

.powered-by a:hover {
    opacity: 0.8;
}

.payment-badges {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 700;
}

.payment-badges img {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.payment-badges img:hover {
    opacity: 1;
}

/* RESPONSIVE FOOTER */
@media (max-width: 1200px) {
    .footer-mega-grid {
        grid-template-columns: 1fr repeat(3, 1fr);
        gap: 40px 30px;
    }

    .brand-column {
        grid-column: span 4;
        padding-right: 0;
        text-align: center;
        max-width: 600px;
        margin: 0 auto 40px;
    }

    .footer-description {
        margin-bottom: 25px;
    }

    .footer-social {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-column {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-middle {
        padding: 60px 0 40px;
    }

    .footer-mega-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .brand-column {
        grid-column: span 1;
    }

    .mega-column .mega-title {
        margin-bottom: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .copyright-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .payment-badges {
        flex-direction: column;
        gap: 10px;
    }
}