/* ------------------------------------------------------------------
   AppTech homepage - scoped styles
   All rules namespaced under .apptech-home so they cannot leak into
   AppTak / DawaAppTak or any other page in the project.
   Bootstrap 5 compatible. No Tailwind, no external imports.
------------------------------------------------------------------ */

.frontend-home-apptech,
.apptech-home {
    /* Brand tokens - change here to recolor the whole AppTech surface */
    --apptech-blue:        #17194c;
    --apptech-blue-dark:   #101237;
    --apptech-blue-soft:   #24265f;
    --apptech-orange:      #f26522;
    --apptech-orange-dark: #d9551b;
    --apptech-text-light:  #ffffff;
    --apptech-muted:       #9aa6c7;
    --apptech-card:        #ffffff;
    --apptech-bg:          #f5f6fa;
}

.apptech-home {
    background: var(--apptech-bg);
    padding-bottom: 24px;
}

/* ---------- AppTech-only site chrome ---------- */
.frontend-home-apptech .container {
    max-width: 1720px;
}

.frontend-home-apptech .top-navbar {
    background-color: var(--apptech-blue) !important;
}

.frontend-home-apptech .top-navbar .container {
    max-width: 1180px;
}

.frontend-home-apptech header.bg-white {
    border-bottom-color: #e4e7f0 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}

.frontend-home-apptech header .logo-bar-area > .container > .d-flex {
    min-height: 116px;
}

.frontend-home-apptech .logo-main {
    padding-left: 0;
}

.frontend-home-apptech .logo-main img {
    max-height: 92px;
}

.frontend-home-apptech .category-menu-icon-box {
    display: none !important;
}

.frontend-home-apptech .front-header-search {
    max-width: 1110px;
}

.frontend-home-apptech .front-header-search .input-group > .form-control {
    min-height: 56px;
    border-color: #dfe3ec !important;
    border-radius: 4px 0 0 4px;
    font-size: 1.35rem;
    padding-left: 34px;
}

.frontend-home-apptech .front-header-search .input-group-append .btn {
    min-width: 88px;
    border-radius: 0 5px 5px 0;
    background-color: var(--apptech-blue) !important;
    border-color: var(--apptech-blue) !important;
}

.frontend-home-apptech .front-header-search .input-group-append .btn:hover,
.frontend-home-apptech .front-header-search .input-group-append .btn:focus {
    background-color: var(--apptech-blue-dark) !important;
    border-color: var(--apptech-blue-dark) !important;
}

.frontend-home-apptech #compare i,
.frontend-home-apptech #wishlist i,
.frontend-home-apptech #cart_items > a > .position-relative > i {
    color: var(--apptech-blue) !important;
    opacity: 1 !important;
}

.frontend-home-apptech #compare .badge-primary,
.frontend-home-apptech #wishlist .badge-primary,
.frontend-home-apptech #cart_items .badge-primary {
    background-color: var(--apptech-blue) !important;
    border-color: var(--apptech-blue) !important;
    color: var(--apptech-text-light) !important;
}

.frontend-home-apptech #footer-conditions .text-primary {
    color: var(--apptech-blue) !important;
}

.frontend-home-apptech .footer-widget,
.frontend-home-apptech footer.bg-black {
    background-color: var(--apptech-blue) !important;
}

.frontend-home-apptech footer.bg-black {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Section spacing ---------- */
.apptech-home > section {
    padding-top: 10px;
    padding-bottom: 10px;
}

.apptech-home > section:first-of-type {
    padding-top: 14px;
}

.apptech-home > section:last-of-type {
    padding-bottom: 22px;
}

/* ---------- Generic section header ---------- */
.apptech-home .apptech-home__section-head {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.apptech-home .apptech-home__section-title {
    color: var(--apptech-text-light);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.1px;
}

.apptech-home .apptech-home__section-title--on-light {
    color: var(--apptech-blue);
}

.apptech-home .apptech-home__section-title-underline {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--apptech-orange);
}

.apptech-home .apptech-home__section-head--on-orange {
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.apptech-home .apptech-home__section-head--on-orange .apptech-home__section-title {
    color: var(--apptech-text-light);
}

.apptech-home .apptech-home__section-head--on-orange .apptech-home__section-title-underline {
    border-bottom-color: var(--apptech-text-light);
}

.apptech-home .apptech-home__see-more {
    color: var(--apptech-text-light);
    background: rgba(0, 0, 0, 0.18);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
}

.apptech-home .apptech-home__see-more:hover {
    background: rgba(0, 0, 0, 0.32);
}

/* ---------- HERO + CATEGORIES SIDEBAR ---------- */
.apptech-home .apptech-home__hero {
    padding-top: 12px;
}

.apptech-home .apptech-home__categories {
    background: var(--apptech-blue);
    color: var(--apptech-text-light);
    border-radius: 10px;
    padding: 18px 16px;
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.apptech-home .apptech-home__categories-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.apptech-home .apptech-home__categories-title {
    font-weight: 700;
    font-size: 1rem;
}

.apptech-home .apptech-home__categories-see-all {
    color: var(--apptech-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.apptech-home .apptech-home__categories-see-all:hover {
    color: var(--apptech-text-light);
    text-decoration: underline;
}

.apptech-home .apptech-home__categories-list {
    flex: 1 1 auto;
}

.apptech-home .apptech-home__categories-list li + li {
    margin-top: 2px;
}

.apptech-home .apptech-home__category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 4px;
    color: var(--apptech-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.25;
    transition: background 0.15s ease, transform 0.15s ease;
}

.apptech-home .apptech-home__category-link:hover,
.apptech-home .apptech-home__category-link:focus {
    background: var(--apptech-blue-soft);
    color: var(--apptech-text-light);
    transform: translateX(2px);
}

.apptech-home .apptech-home__category-bullet {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--apptech-text-light);
    flex: 0 0 4px;
    opacity: 0.85;
}

.apptech-home .apptech-home__category-name {
    flex: 1 1 auto;
    line-height: 1.2;
}

/* ---------- HERO CAROUSEL ---------- */
.apptech-home .apptech-home__hero-carousel {
    background: #e9ecf5;
    border-radius: 10px;
    overflow: hidden;
    min-height: 280px;
    height: 100%;
}

.apptech-home .apptech-home__hero-carousel .carousel-inner,
.apptech-home .apptech-home__hero-carousel .carousel-item {
    height: 100%;
}

.apptech-home .apptech-home__hero-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 430px;
    object-fit: cover;
    object-position: center;
}

.apptech-home .apptech-home__hero-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.65);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
}

.apptech-home .apptech-home__hero-indicators .active {
    background-color: var(--apptech-orange);
}

.apptech-home .apptech-home__hero-control {
    opacity: 1;
    width: 64px;
    z-index: 3;
}

.apptech-home .apptech-home__hero-control .carousel-control-prev-icon,
.apptech-home .apptech-home__hero-control .carousel-control-next-icon {
    background-color: var(--apptech-orange);
    background-size: 17px 17px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    height: 42px;
    width: 42px;
}

/* ---------- PROMO BANNER ROWS ---------- */
.apptech-home .apptech-home__promo-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 30, 80, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.apptech-home .apptech-home__promo-card:hover,
.apptech-home .apptech-home__promo-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 30, 80, 0.12);
}

.apptech-home .apptech-home__promo-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- PRODUCT SECTIONS ---------- */
.apptech-home .apptech-home__products-card {
    border-radius: 8px;
    padding: 16px 16px 12px;
}

.apptech-home .apptech-home__products-card--light {
    background: var(--apptech-card);
    box-shadow: 0 2px 6px rgba(20, 30, 80, 0.05);
}

.apptech-home .apptech-home__products-section--dark .apptech-home__products-card {
    background: var(--apptech-blue);
    color: var(--apptech-text-light);
}

.apptech-home .apptech-home__products-section--dark .apptech-home__section-head {
    border-bottom-color: rgba(255, 255, 255, 0.92);
}

.apptech-home .apptech-home__products-section--dark .apptech-home__section-title {
    color: var(--apptech-orange);
}

/* Product cards inside the dark band keep their own white surface, but
   the typography and "OFF" badges inherit a tighter contrast. */
.apptech-home .apptech-home__products-section--dark .aiz-card-box {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border-radius: 6px !important;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: auto !important;   /* override the global 265px mobile rule */
}

.apptech-home .apptech-home__products-section--dark .aiz-card-box > .position-relative {
    flex: 0 0 auto;                /* image keeps its natural 210px */
}

.apptech-home .apptech-home__products-section--dark .aiz-card-box > .p-md-3,
.apptech-home .apptech-home__products-section--dark .aiz-card-box > .p-2 {
    flex: 0 0 auto;
}

.apptech-home .apptech-home__products-section--dark .aiz-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}

.apptech-home .apptech-home__products-section--dark .aiz-carousel .slick-list {
    padding-bottom: 14px;
}

.apptech-home .apptech-home__products-section--dark .aiz-carousel .slick-slide {
    height: auto !important;
}

.apptech-home .apptech-home__products-section--dark .aiz-carousel .slick-slide > div,
.apptech-home .apptech-home__products-section--dark .aiz-carousel .carousel-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.apptech-home .apptech-home__products-section--dark .aiz-carousel .carousel-box {
    max-width: 245px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.apptech-home .apptech-home__product-carousel .badge-custom {
    display: inline-flex;
    align-items: center;
    background: var(--apptech-orange);
    color: var(--apptech-text-light);
}

.apptech-home .apptech-home__product-carousel .aiz-p-hov-icon {
    top: 10px;
    right: 10px;
    z-index: 4;
}

.apptech-home .apptech-home__product-carousel .aiz-p-hov-icon a {
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.apptech-home .apptech-home__product-carousel .aiz-p-hov-icon a:hover,
.apptech-home .apptech-home__product-carousel .aiz-p-hov-icon a:focus {
    background: var(--apptech-orange);
    color: #ffffff;
}

.apptech-home .apptech-home__product-carousel .aiz-card-box {
    border-radius: 4px !important;
    box-shadow: none !important;
}

.apptech-home .apptech-home__product-carousel .aiz-card-box > .position-relative {
    background: #ffffff;
}

.apptech-home .apptech-home__product-carousel .aiz-card-box img.img-fit {
    display: block;          /* kills the inline-image baseline gap */
    height: 190px !important;
    width: auto;
    max-width: 86%;
    object-fit: contain;
    padding: 12px 14px 2px;  /* phone sits near the bottom edge of the white area */
    margin: 0 auto;
    background: #ffffff;
    vertical-align: top;
}

.apptech-home .apptech-home__product-carousel .aiz-card-box img.img-fit[src*="placeholder"] {
    max-width: 52%;
    opacity: 0.55;
}

@media (min-width: 1400px) {
    .apptech-home .apptech-home__product-carousel .aiz-card-box img.img-fit {
        height: 210px !important;
    }
}

@media (max-width: 991.98px) {
    .apptech-home .apptech-home__product-carousel .aiz-card-box img.img-fit {
        height: 168px !important;
    }
}

@media (max-width: 767.98px) {
    .apptech-home .apptech-home__product-carousel .aiz-card-box img.img-fit {
        height: 150px !important;
        padding: 10px 10px 2px;
    }
}

/* Image wrapper inherits white so the photo area stays a clean white
   block from edge to edge, and line-height:0 nukes any leftover
   text-baseline whitespace inside the wrapper. */
.apptech-home .apptech-home__products-section--dark .aiz-card-box > .position-relative {
    background: #ffffff;
    line-height: 0;
    font-size: 0;
}

.apptech-home .apptech-home__products-section--dark .aiz-card-box > .position-relative > a {
    display: block;
    line-height: 0;
    font-size: 0;
}

.apptech-home .apptech-home__products-section--dark .aiz-card-box > .p-md-3,
.apptech-home .apptech-home__products-section--dark .aiz-card-box > .p-2 {
    background: var(--apptech-blue);
    color: var(--apptech-text-light);
    padding: 10px 14px 14px !important;
    margin-top: 0;
    padding-top: 10px !important;
    position: relative;
    z-index: 1;
}

.apptech-home .apptech-home__products-section--dark .aiz-card-box h3 a {
    color: var(--apptech-text-light) !important;
}

.apptech-home .apptech-home__products-section--dark .aiz-card-box .rating i,
.apptech-home .apptech-home__products-section--dark .aiz-card-box .text-primary {
    color: var(--apptech-orange) !important;
}

.apptech-home .apptech-home__products-section--dark .aiz-card-box del {
    display: inline !important;
    color: var(--apptech-text-light) !important;
    opacity: 0.72 !important;
}

/* Slight breathing room between price line and rating row */
.apptech-home .apptech-home__products-section--dark .aiz-card-box .fs-15 {
    margin-bottom: 4px;
    font-size: 0.95rem !important;
    font-weight: 700;
}

.apptech-home .apptech-home__products-section--dark .aiz-card-box h3 {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin-top: 4px !important;
    height: auto !important;
    max-height: 3em;
    overflow: hidden;
}

/* Split product name (JS-injected) — model on line 1, storage variant
   on line 2, matching the Techsirat mockup. The DB string is untouched;
   this is purely a presentation transform inside the dark band. */
.apptech-home .apptech-home__products-section--dark .aiz-card-box h3 a {
    display: block;
}

.apptech-home .apptech-home__products-section--dark .apptech-name-model {
    display: block;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apptech-home .apptech-home__products-section--dark .apptech-name-variant {
    display: block;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    line-height: 1.25;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.apptech-home .apptech-home__products-card--light .aiz-card-box {
    border-color: #edf0f6 !important;
    border-radius: 0 !important;
}

.apptech-home .apptech-home__products-card--light .aiz-card-box .text-primary,
.apptech-home .apptech-home__products-card--light .aiz-card-box .rating i.active,
.apptech-home .apptech-home__products-card--light .aiz-card-box .text-rating {
    color: var(--apptech-orange) !important;
}

.apptech-home .apptech-home__products-card--light .aiz-card-box h3 a {
    color: var(--apptech-blue) !important;
}

/* Carousel arrows from the AIZ theme - keep but recolor to orange */
.apptech-home .apptech-home__product-carousel .slick-arrow {
    background: var(--apptech-orange);
    color: var(--apptech-text-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    opacity: 1;
}

.apptech-home .apptech-home__product-carousel .slick-arrow:hover {
    background: var(--apptech-orange-dark);
    color: var(--apptech-text-light);
}

.apptech-home .apptech-home__product-carousel--light .slick-arrow {
    background: var(--apptech-blue);
}

.apptech-home .apptech-home__product-carousel--light .slick-arrow:hover {
    background: var(--apptech-blue-dark);
}

.apptech-home .apptech-home__top-category {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 12px;
    color: var(--apptech-blue);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(24, 42, 115, 0.1);
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.apptech-home .apptech-home__top-category:hover,
.apptech-home .apptech-home__top-category:focus {
    color: var(--apptech-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 30, 80, 0.12);
}

.apptech-home .apptech-home__top-category-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    background: #f5f6fa;
    border-radius: 12px;
}

.apptech-home .apptech-home__top-category-img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.apptech-home .apptech-home__top-category-name {
    display: block;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

/* ---------- MANUFACTURERS ---------- */
.apptech-home .apptech-home__manufacturers-card {
    background: var(--apptech-orange);
    border-radius: 8px;
    padding: 18px 22px 26px;
    color: var(--apptech-text-light);
}

.apptech-home .apptech-home__manufacturers-grid {
    margin-top: 6px;
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.apptech-home .apptech-home__manufacturers-grid > [class*="col-"] {
    display: flex;
    justify-content: center;
}

.apptech-home .apptech-home__manufacturer-tile {
    display: block;
    width: 170px;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
}

.apptech-home .apptech-home__manufacturer-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apptech-card);
    border-radius: 50%;
    width: 170px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    padding: 12px;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .apptech-home .apptech-home__manufacturer-circle {
        padding: 8px;
    }
}

.apptech-home .apptech-home__manufacturer-tile:hover .apptech-home__manufacturer-circle,
.apptech-home .apptech-home__manufacturer-tile:focus .apptech-home__manufacturer-circle {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.apptech-home .apptech-home__manufacturer-img {
    max-width: 88%;
    max-height: 78%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---------- FAQ from shared partial, scoped to AppTech only ---------- */
.apptech-home > .container.mb-4 {
    max-width: 1720px;
    margin-top: 18px;
}

.apptech-home > .container.mb-4 > section {
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 40px 24px 28px !important;
}

.apptech-home > .container.mb-4 h2 {
    color: var(--apptech-blue);
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
}

.apptech-home > .container.mb-4 .lead {
    color: #333b4b !important;
    font-size: clamp(0.92rem, 1.05vw, 1.05rem);
    line-height: 1.45;
}

.apptech-home > .container.mb-4 hr {
    width: 38% !important;
    margin-bottom: 32px !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
}

.apptech-home > .container.mb-4 .accordion .card {
    background: transparent;
    border: 0;
    margin-bottom: 16px;
}

.apptech-home > .container.mb-4 .accordion .card-header {
    background: var(--apptech-blue) !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 0 !important;
}

.apptech-home > .container.mb-4 .accordion .btn-link {
    color: var(--apptech-text-light) !important;
    font-size: clamp(0.92rem, 1.05vw, 1.1rem);
    font-weight: 600 !important;
    padding: 14px 22px;
    text-decoration: none !important;
}

.apptech-home > .container.mb-4 .accordion .card-body {
    color: #334155;
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-top: 0;
}

.apptech-home > .container.mb-4 .btn-primary {
    background: var(--apptech-blue) !important;
    border-color: var(--apptech-blue) !important;
}

.apptech-home > .container.mb-4 .btn-primary:hover,
.apptech-home > .container.mb-4 .btn-primary:focus {
    background: var(--apptech-blue-dark) !important;
    border-color: var(--apptech-blue-dark) !important;
}

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 1199.98px) {
    .frontend-home-apptech .container {
        max-width: 1140px;
    }
}

@media (max-width: 991.98px) {
    .frontend-home-apptech .front-header-search .input-group > .form-control {
        min-height: 44px;
        font-size: 1rem;
        padding-left: 14px;
    }

    .frontend-home-apptech .front-header-search .input-group-append .btn {
        min-width: 56px;
    }

    .frontend-home-apptech .logo-main img {
        max-height: 68px;
    }

    .frontend-home-apptech header .logo-bar-area > .container > .d-flex {
        min-height: 88px;
    }

    .apptech-home .apptech-home__hero-carousel {
        min-height: 200px;
    }

    .apptech-home .apptech-home__hero-img {
        min-height: 200px;
    }

    .apptech-home .apptech-home__section-title {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .apptech-home > section {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .apptech-home .apptech-home__hero-carousel {
        min-height: 160px;
    }

    .apptech-home .apptech-home__hero-img {
        min-height: 160px;
    }

    .apptech-home .apptech-home__products-card {
        padding: 12px 10px 8px;
    }

    .apptech-home .apptech-home__manufacturers-card {
        padding: 14px 12px 18px;
    }

    .apptech-home .apptech-home__manufacturers-grid {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .apptech-home .apptech-home__products-card {
        padding: 10px 8px 6px;
    }

    .apptech-home .apptech-home__section-title {
        font-size: 0.95rem;
    }

    .apptech-home > .container.mb-4 > section {
        padding: 24px 14px 18px !important;
    }

    .apptech-home > .container.mb-4 .accordion .btn-link {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .frontend-home-apptech .apptech-product-detail {
        padding: 14px 0 22px;
    }
}

/* Prevent earlier .home-banner-area styles from leaking - namespace wins
   because we never use .home-banner-area inside .apptech-home. */


/* ==================================================================
   SEARCH DROPDOWN  (Techsirat-Screen-2.jpg)
   Scoped to .frontend-home-apptech so AppTak/DawaAppTak stay default.
   ================================================================== */

.frontend-home-apptech .typed-search-box {
    border-radius: 6px !important;
    box-shadow: 0 12px 28px rgba(20, 30, 80, 0.18) !important;
    border: 1px solid #e4e7f0;
    max-height: min(68vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0 !important;
    padding: 0;
}

.frontend-home-apptech .typed-search-box .search-preloader {
    background: #ffffff;
    padding: 10px 0;
}

.frontend-home-apptech .typed-search-box .dot-loader > div {
    background: var(--apptech-orange);
}

.frontend-home-apptech .typed-search-box .search-nothing {
    padding: 18px 16px !important;
    color: var(--apptech-blue);
    font-size: 0.95rem;
}

/* Category Suggestions / Product Suggestions section headers
   (rendered by frontend.partials.search_content). */
.frontend-home-apptech .typed-search-box .bg-soft-secondary {
    background: var(--apptech-orange) !important;
    color: #ffffff !important;
    text-align: right;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
    font-weight: 600;
}

.frontend-home-apptech .typed-search-box .list-group-raw {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.frontend-home-apptech .typed-search-box .list-group-item {
    border: 0;
    border-bottom: 1px solid #f0f2f7;
    padding: 10px 16px;
    background: #ffffff;
    transition: background 0.15s ease;
}

.frontend-home-apptech .typed-search-box .list-group-item:last-child {
    border-bottom: 0;
}

.frontend-home-apptech .typed-search-box .list-group-item:hover,
.frontend-home-apptech .typed-search-box .list-group-item:focus-within {
    background: #f8f9fc;
}

.frontend-home-apptech .typed-search-box .list-group-item a {
    color: var(--apptech-blue);
    text-decoration: none;
}

.frontend-home-apptech .typed-search-box .search-product .product-name {
    color: var(--apptech-blue);
    font-weight: 500;
}

.frontend-home-apptech .typed-search-box .search-product .text-primary,
.frontend-home-apptech .typed-search-box .search-product .fs-16.text-primary {
    color: var(--apptech-orange) !important;
    font-weight: 700;
}

.frontend-home-apptech .typed-search-box .search-product img {
    border: 1px solid #eef1f6;
    background: #ffffff;
}

/* Navy "See All" footer bar - rendered by search_content.blade.php
   only when current_home_key() === 'apptech'. */
.frontend-home-apptech .typed-search-box .apptech-search-see-all {
    display: block;
    background: var(--apptech-blue);
    color: #ffffff !important;
    text-align: center;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease;
}

.frontend-home-apptech .typed-search-box .apptech-search-see-all:hover,
.frontend-home-apptech .typed-search-box .apptech-search-see-all:focus {
    background: var(--apptech-blue-dark);
    color: #ffffff !important;
}


/* ==================================================================
   PRODUCT DETAIL PAGE  (Techsirat-Screen-3.jpg)
   Wrapper added in product_details.blade.php only when
   current_home_key() === 'apptech'.
   ================================================================== */

.frontend-home-apptech .apptech-product-detail {
    background: var(--apptech-blue);
    padding: 28px 0 36px;
    margin-bottom: -1.5rem; /* eat .mb-4 from last inner section */
}

.frontend-home-apptech .apptech-product-detail > section {
    margin-bottom: 18px !important;
    padding-top: 0 !important;
}

.frontend-home-apptech .apptech-product-detail > section:last-of-type {
    margin-bottom: 0 !important;
}

/* White card wrappers in the product detail layout */
.frontend-home-apptech .apptech-product-detail .bg-white {
    background: #ffffff !important;
}

.frontend-home-apptech .apptech-product-detail .shadow-sm,
.frontend-home-apptech .apptech-product-detail .bg-white.rounded {
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

/* Recolor every "primary" surface inside the card to AppTech orange.
   This catches price strings, ratings, links, and primary buttons
   without touching the underlying templates. */
.frontend-home-apptech .apptech-product-detail .text-primary {
    color: var(--apptech-orange) !important;
}

.frontend-home-apptech .apptech-product-detail .btn-primary {
    background-color: var(--apptech-orange) !important;
    border-color: var(--apptech-orange) !important;
    color: #ffffff !important;
}

.frontend-home-apptech .apptech-product-detail .btn-primary:hover,
.frontend-home-apptech .apptech-product-detail .btn-primary:focus {
    background-color: var(--apptech-orange-dark) !important;
    border-color: var(--apptech-orange-dark) !important;
}

.frontend-home-apptech .apptech-product-detail .btn-soft-primary {
    background-color: rgba(242, 101, 34, 0.12) !important;
    border-color: rgba(242, 101, 34, 0.28) !important;
    color: var(--apptech-orange) !important;
}

.frontend-home-apptech .apptech-product-detail .btn-soft-primary:hover,
.frontend-home-apptech .apptech-product-detail .btn-soft-primary:focus {
    background-color: rgba(242, 101, 34, 0.2) !important;
    color: var(--apptech-orange-dark) !important;
}

.frontend-home-apptech .apptech-product-detail .btn-link,
.frontend-home-apptech .apptech-product-detail .btn-link:hover,
.frontend-home-apptech .apptech-product-detail .btn-link:focus {
    color: var(--apptech-orange) !important;
    text-decoration: none;
}

/* Variant chip buttons (Variant Attribute) — apptech shows them as
   stacked full-width rows (screenshot 3 has long variant labels). */
.frontend-home-apptech .apptech-product-detail .aiz-radio-inline {
    display: block;
}

.frontend-home-apptech .apptech-product-detail .aiz-radio-inline > .aiz-megabox {
    display: block;
    width: 100%;
    margin: 0 0 8px 0 !important;
    padding-left: 0 !important;
}

.frontend-home-apptech .apptech-product-detail .aiz-radio-inline > .aiz-megabox:last-child {
    margin-bottom: 0 !important;
}

.frontend-home-apptech .apptech-product-detail .aiz-megabox .aiz-megabox-elem {
    border: 1px solid #dfe3ec !important;
    color: var(--apptech-blue) !important;
    background: #ffffff !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 10px 16px !important;
    width: 100%;
}

.frontend-home-apptech .apptech-product-detail .aiz-megabox input:checked + .aiz-megabox-elem {
    border-color: var(--apptech-orange) !important;
    color: var(--apptech-orange) !important;
    box-shadow: 0 0 0 1px var(--apptech-orange) inset;
}

/* Color chips (when product uses color attribute) stay inline so a
   row of swatches still reads like the AIZ default. */
.frontend-home-apptech .apptech-product-detail .aiz-radio-inline.apptech-color-row > .aiz-megabox,
.frontend-home-apptech .apptech-product-detail .aiz-radio-inline > .aiz-megabox:has(.size-30px) {
    display: inline-block;
    width: auto;
    margin: 0 8px 8px 0 !important;
}

.frontend-home-apptech .apptech-product-detail .aiz-radio-inline > .aiz-megabox:has(.size-30px) .aiz-megabox-elem {
    width: auto;
    padding: 4px !important;
    justify-content: center !important;
}

/* Quantity stepper */
.frontend-home-apptech .apptech-product-detail .aiz-plus-minus {
    border: 1px solid #dfe3ec;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.frontend-home-apptech .apptech-product-detail .aiz-plus-minus .btn {
    background: #ffffff !important;
    color: var(--apptech-blue) !important;
    border-radius: 0 !important;
}

/* Ratings */
.frontend-home-apptech .apptech-product-detail .rating i.active,
.frontend-home-apptech .apptech-product-detail .rating .las.la-star.active {
    color: #f5b942 !important;
}

/* Manufacturer / Sold by labels stay neutral; just normalize spacing */
.frontend-home-apptech .apptech-product-detail hr {
    border-color: #eef1f6;
    opacity: 1;
}

/* Tabs strip (Description / Specifications / Reviews) */
.frontend-home-apptech .apptech-product-detail .aiz-nav-tabs {
    padding: 0 18px;
}

.frontend-home-apptech .apptech-product-detail .aiz-nav-tabs a {
    color: var(--apptech-blue) !important;
    border-bottom: 2px solid transparent !important;
    position: relative;
}

.frontend-home-apptech .apptech-product-detail .aiz-nav-tabs a.active,
.frontend-home-apptech .apptech-product-detail .aiz-nav-tabs a.show {
    color: var(--apptech-blue) !important;
    border-bottom: 2px solid var(--apptech-orange) !important;
    margin-bottom: -1px;
}

/* Related products carousel inside the white card */
.frontend-home-apptech .apptech-product-detail .aiz-carousel .aiz-card-box {
    border-color: #eef1f6 !important;
}

.frontend-home-apptech .apptech-product-detail .aiz-carousel .text-primary,
.frontend-home-apptech .apptech-product-detail .aiz-carousel .fw-700.text-primary {
    color: var(--apptech-orange) !important;
}

.frontend-home-apptech .apptech-product-detail .aiz-carousel .aiz-card-box h3 a {
    color: var(--apptech-blue) !important;
}

.frontend-home-apptech .apptech-product-detail .aiz-carousel .slick-arrow {
    background: var(--apptech-blue) !important;
    color: #ffffff !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    opacity: 1;
}

.frontend-home-apptech .apptech-product-detail .aiz-carousel .slick-arrow:hover {
    background: var(--apptech-blue-dark) !important;
    color: #ffffff !important;
}

/* Top Selling Products sidebar card */
.frontend-home-apptech .apptech-product-detail .bg-white .fs-16.fw-600,
.frontend-home-apptech .apptech-product-detail .bg-white h3.fs-16.fw-600 {
    color: var(--apptech-blue);
}

.frontend-home-apptech .apptech-product-detail .bg-white .list-group-item h4 a {
    color: var(--apptech-blue) !important;
}

/* Section underline accent on card headers like
   "Top Selling Products", "Related products", "Description" */
.frontend-home-apptech .apptech-product-detail .border-bottom > .fs-16.fw-600,
.frontend-home-apptech .apptech-product-detail .p-3.border-bottom > h3 {
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--apptech-orange);
}

/* Share row icons - leave their brand colors alone, just hover */
.frontend-home-apptech .apptech-product-detail .aiz-share a:hover {
    opacity: 0.85;
}

/* Make the whole product detail body navy on small screens too */
@media (max-width: 767.98px) {
    .frontend-home-apptech .apptech-product-detail {
        padding: 18px 0 24px;
    }

    .frontend-home-apptech .apptech-product-detail .aiz-nav-tabs {
        padding: 0 8px;
        flex-wrap: wrap;
    }
}
