:root {
    --primary-orange: #f36f21;
    --primary-blue: #0f146d;
    --bg-gray: #ffffff;
    --text-main: #212121;
    --text-muted: #757575;
    --white: #ffffff;
    --shadow-light: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Public Sans', 'Inter', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-main);
    font-size: 14px;
}

/* Header Styles */
.top-banner {
    background: linear-gradient(90deg, #1b0c3d 0%, #3d1b8e 100%);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
}

.secondary-nav {
    background-color: #f7f7f7;
    padding: 5px 0;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.secondary-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.secondary-nav a:hover {
    color: var(--primary-orange);
}

.main-header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.search-box {
    background-color: #f5f5f5;
    border-radius: 2px;
    display: flex;
    overflow: hidden;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    flex-grow: 1;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
}

.search-btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 0 20px;
    transition: background 0.2s;
}

.search-btn:hover {
    background-color: #d15615;
}

.cart-icon {
    font-size: 24px;
    color: var(--primary-blue);
    position: relative;
    padding: 0 15px;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: 0px;
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    color: white;
    font-size: 9px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(255, 78, 80, 0.4);
    border: 2px solid white;
    transform: translate(25%, -25%);
}

/* Home Styles */
.hero-container {
    padding: 20px 0;
}

.main-slider {
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 1;
    height: auto;
    /* Let aspect-ratio handle it */
}

.side-promo {
    aspect-ratio: 1 / 1;
    /* Match the layout height if possible */
    background-color: var(--white);
    border-radius: 4px;
    padding: 15px;
    box-shadow: var(--shadow-light);
    height: 100%;
}

/* Product Card - Lazada Style */
.product-card {
    background: var(--white);
    border: none;
    border-radius: 2px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card img {
    border-radius: 2px 2px 0 0;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 13px;
    line-height: 18px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
}

.product-price {
    color: var(--primary-orange);
    font-size: 17px;
    font-weight: 700;
}

.product-original-price {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--text-muted);
}

.btn-lazada {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 2px;
    font-weight: 600;
    width: 100%;
}

.btn-lazada:hover {
    background-color: #d15615;
    color: white;
}

/* Category grid */
.category-item {
    background: white;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    transition: color 0.2s;
}

.category-item:hover {
    box-shadow: var(--shadow-light);
    color: var(--primary-orange);
}

.category-item i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary-orange);
}

.product-card .btn-outline-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card .btn-outline-primary:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 16px;
    position: relative;
    text-transform: uppercase;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-orange);
}

footer a {
    color: #b0b0b0 !important;
    transition: all 0.3s;
}

footer a:hover {
    color: var(--primary-orange) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 1;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Breadcrumb Reset & Styling (Fix for Opera/Legacy glitches) */
.breadcrumb {
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}

.breadcrumb-item a {
    background: none !important;
    padding: 0 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-orange) !important;
}

/* Remove any phantom arrows or shapes */
.breadcrumb-item::after,
.breadcrumb-item::before {
    content: none !important;
    display: none !important;
}

/* Re-implement clean Bootstrap divider */
.breadcrumb-item+.breadcrumb-item {
    padding-left: 0.5rem !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block !important;
    /* content: "/" !important; */
    padding-right: 0.5rem !important;
    color: var(--text-muted) !important;
}

/* Pagination Styling & Reset (Ultimate Fix for Opera/Legacy glitches) */
.pagination {
    gap: 12px !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.page-item {
    background: none !important;
    border: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-item::before,
.page-item::after {
    content: none !important;
    display: none !important;
}

.page-item .page-link {
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    color: var(--text-main) !important;
    background-color: #f0f0f0 !important;
    transition: all 0.2s ease !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
}

.page-item.active .page-link {
    background-color: var(--primary-orange) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(243, 111, 33, 0.25) !important;
}

.page-item.disabled .page-link {
    background-color: #f8f8f8 !important;
    color: #cccccc !important;
    cursor: not-allowed !important;
}

.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #e2e2e2 !important;
    color: var(--primary-orange) !important;
    transform: translateY(-1px) !important;
}