:root {
    --picabo-primary: #0f9d8f;
    --picabo-primary-dark: #0b7d72;
    --picabo-accent: #ff7a00;
    --picabo-bg: #f6f7f9;
}

body {
    background: var(--picabo-bg);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #232323;
}

a { text-decoration: none; }

.btn-picabo {
    background: var(--picabo-primary);
    border-color: var(--picabo-primary);
    color: #fff;
}
.btn-picabo:hover { background: var(--picabo-primary-dark); color: #fff; }

.text-picabo { color: var(--picabo-primary); }
.bg-picabo { background: var(--picabo-primary); }

.top-bar {
    background: var(--picabo-primary-dark);
    color: #fff;
    font-size: .8rem;
}
.top-bar a { color: #e6f7f5; }

.main-header {
    background: var(--picabo-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.main-header .navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
}
/* Icons/links (notifications, account, cart, mobile search toggle) are
   given `text-dark` in the blade for the old white header — force them
   light now that the header itself carries the theme's primary color.
   Bootstrap's own .text-dark ships with !important, so this needs it too
   to win the tie (last matching !important rule in source order wins). */
.main-header a,
.main-header .text-dark {
    color: #fff !important;
}
.main-header .form-control::placeholder {
    color: #6b7280;
}
/* The search button shares the header's own background color by default
   (.btn-picabo uses --picabo-primary) — on a themed header that makes it
   disappear, so it borrows the accent color instead for contrast. */
.main-header .btn-picabo {
    background: var(--picabo-accent);
    border-color: var(--picabo-accent);
}
.main-header .btn-picabo:hover {
    filter: brightness(.92);
}

.category-nav {
    background: var(--picabo-primary);
}
.category-nav .nav-link {
    color: #fff !important;
    font-size: .9rem;
    padding: .6rem 1rem;
}
.category-nav .nav-link:hover { background: var(--picabo-primary-dark); }
.category-nav .nav-item { position: relative; }

/* Mega menu layout — a themed top bar (one shade darker than the header
   above it, for visual separation without a hard line); hovering a
   category with subcategories drops a full-width, multi-column panel
   below it. That dropdown panel itself stays white/dark-text further
   down — it's a big block of column text, not the bar this themes. */
.mega-nav {
    position: relative;
    background: var(--picabo-primary-dark);
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.mega-nav .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
}
.mega-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .02em;
    padding: .9rem 1rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.mega-nav .nav-link:hover,
.mega-nav .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--picabo-accent);
}
.mega-menu-item {
    position: static;
}
.mega-menu-item.has-mega-panel {
    display: flex;
    align-items: stretch;
}
.mega-menu-toggle {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.85);
    padding: 0 .6rem;
    cursor: pointer;
    font-size: .65rem;
}
.mega-menu-toggle i {
    transition: transform .2s;
}
.mega-menu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.mega-menu-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
    z-index: 1050;
    padding: 1.5rem 0;
}
/* Hover opens it for mouse users; the chevron's .show class (JS-toggled)
   gives touch devices — which have no :hover — the same access. */
.mega-menu-item.has-mega-panel:hover .mega-menu-panel,
.mega-menu-panel.show {
    display: block;
}
.mega-menu-columns {
    columns: 3;
    column-gap: 2.5rem;
    flex: 1;
}
.mega-menu-column {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}
.mega-menu-col-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.mega-menu-col-title a {
    color: #232323;
}
.mega-menu-col-title a:hover {
    color: var(--picabo-primary);
}
.mega-menu-link {
    display: block;
    color: #555;
    font-size: .85rem;
    padding: .3rem 0;
}
.mega-menu-link:hover {
    color: var(--picabo-primary);
}
.mega-menu-image {
    flex-shrink: 0;
    width: 220px;
    margin-left: 2rem;
}
.mega-menu-image img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}
@media (max-width: 991px) {
    .mega-menu-panel { position: static; box-shadow: none; }
    .mega-menu-columns { columns: 1; }
    .mega-menu-image { display: none; }
}

.category-dropdown {
    display: flex;
    align-items: stretch;
}
.category-dropdown-toggle {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 .7rem;
    cursor: pointer;
    font-size: .7rem;
}
.category-dropdown-toggle:hover {
    background: var(--picabo-primary-dark);
}
.category-dropdown-toggle i {
    transition: transform .2s;
}
.category-dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.category-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: .4rem 0;
    min-width: 200px;
    border: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    z-index: 1050;
}
.category-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    font-size: .9rem;
    color: #232323;
}
.category-dropdown .dropdown-item:hover {
    background: #f0faf9;
    color: var(--picabo-primary);
}
.dropdown-item-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Sub-subcategories (and deeper) inside the horizontal dropdown — flyout
   submenus, opened via .dropdown-submenu-toggle's plain click-toggle JS. */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-item {
    padding-right: 2rem;
}
.dropdown-submenu-toggle {
    position: absolute;
    right: .3rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    padding: .3rem .4rem;
    cursor: pointer;
    font-size: .65rem;
    line-height: 1;
}
.dropdown-submenu-toggle:hover {
    color: var(--picabo-primary);
}
.dropdown-submenu-menu {
    display: none;
    position: absolute;
    top: -.4rem;
    left: 100%;
    margin: 0;
    padding: .4rem 0;
    min-width: 200px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    z-index: 1060;
}
.dropdown-submenu-menu.show {
    display: block;
}

.vertical-category-menu {
    overflow: hidden;
}
.vertical-category-item {
    border-bottom: 1px solid #eee;
}
.vertical-category-item:last-child {
    border-bottom: none;
}
.vertical-category-header {
    display: flex;
    align-items: stretch;
    background: var(--picabo-primary);
}
.vertical-category-link {
    display: block;
    flex: 1;
    padding: .7rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
}
.vertical-category-link:hover {
    background: var(--picabo-primary-dark);
    color: #fff;
}
.vertical-category-toggle {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 .9rem;
    cursor: pointer;
    font-size: .75rem;
}
.vertical-category-toggle:hover {
    background: var(--picabo-primary-dark);
}
.vertical-category-toggle i {
    transition: transform .2s;
}
.vertical-category-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.vertical-category-children {
    margin: 0;
    padding: .3rem 0;
}
.vertical-category-children li a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1rem;
    font-size: .85rem;
    color: #232323;
}
.vertical-category-children li a .dropdown-item-img {
    width: 32px;
    height: 32px;
}
.vertical-category-children li a:hover {
    background: #f0faf9;
    color: var(--picabo-primary);
}
/* Each nesting level indents a bit further and gets its own mini header
   row (link + toggle) for sub-subcategories and deeper. */
.vertical-category-children .vertical-category-children {
    padding-left: 1rem;
}
.vertical-category-children .vertical-category-header {
    background: transparent;
}
.vertical-category-children .vertical-category-header a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1rem;
    font-size: .85rem;
    color: #232323;
    flex: 1;
}
.vertical-category-children .vertical-category-header a:hover {
    background: #f0faf9;
    color: var(--picabo-primary);
}
.vertical-category-children .vertical-category-toggle {
    color: #999;
}
.vertical-category-children .vertical-category-toggle:hover {
    background: transparent;
    color: var(--picabo-primary);
}

.hero-slider img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 380px;
}

.section-title {
    font-weight: 700;
    border-left: 4px solid var(--picabo-primary);
    padding-left: .6rem;
    margin-bottom: 1.2rem;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .15s ease;
    height: 100%;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.product-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f1f1f1;
}
.product-card .price {
    color: var(--picabo-primary);
    font-weight: 700;
}
.product-card .price-old {
    text-decoration: line-through;
    color: #999;
    font-size: .85rem;
}
.badge-discount {
    background: var(--picabo-accent);
    color: #fff;
}

.category-tile {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    padding: 1rem .5rem;
    color: #232323;
    display: block;
}
.category-tile img { width: 100%; max-width: 64px; margin: 0 auto .5rem; display: block; }
.category-tile:hover { border-color: var(--picabo-primary); color: var(--picabo-primary); }

.image-radio-option:hover { border-color: var(--picabo-primary); }
.image-radio-option:has(input:checked) {
    border-color: var(--picabo-primary);
    background: #f0faf9;
    box-shadow: 0 0 0 1px var(--picabo-primary);
}

.top-footer-section {
    background: #fff;
    border-top: 1px solid #eee;
}
.top-footer-section :last-child {
    margin-bottom: 0;
}

.footer {
    background: #17252a;
    color: #cfd8d7;
    margin-top: 3rem;
}
.footer a { color: #cfd8d7; }
.footer h5 { color: #fff; font-size: 1rem; }
.footer-logo {
    display: inline-block;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
}
.footer-logo img { max-height: 36px; display: block; }

.cart-badge {
    background: var(--picabo-accent);
    color: #fff;
    border-radius: 50%;
    font-size: .65rem;
    padding: 1px 6px;
    position: relative;
    top: -10px;
    left: -8px;
}

.floating-contact-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.floating-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    border: none;
    transition: transform .15s ease;
}
.floating-icon-btn:hover {
    transform: scale(1.08);
    color: #fff;
}
.floating-icon-phone { background: #0f9d8f; }
.floating-icon-whatsapp { background: #25D366; }
.floating-icon-messenger { background: #0084FF; }
.floating-icon-complain { background: #dc3545; }

.product-slider-wrap {
    margin-left: 4px;
    margin-right: 4px;
}
.product-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
}
.product-slider::-webkit-scrollbar { height: 6px; }
.product-slider::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.product-slider > [class*="col-"] {
    flex: 0 0 200px;
    max-width: 200px;
    scroll-snap-align: start;
    margin-bottom: 0 !important;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    color: #232323;
}
.slider-nav:hover { color: var(--picabo-primary); }
.slider-nav-prev { left: -14px; }
.slider-nav-next { right: -14px; }

.product-gallery-thumbs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px;
}
.product-gallery-thumbs::-webkit-scrollbar { height: 6px; }
.product-gallery-thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.product-gallery-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid #eee;
    border-radius: 6px;
    cursor: pointer;
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--picabo-primary);
}

.product-image-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.product-image-fullscreen.active { display: flex; }
.product-image-fullscreen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-image-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
}
.product-image-fullscreen-close:hover { background: rgba(255, 255, 255, .3); }

.star-rating-input {
    font-size: 1.5rem;
    display: inline-flex;
    gap: .25rem;
}
.star-rating-star {
    color: #ddd;
    cursor: pointer;
    transition: color .1s ease-in-out;
}
.star-rating-star.filled { color: #ffc107; }
