/* FUTECH SOLUTIONS & SERVICES - NEW ORANGE ECOMMERCE DESIGN */

:root {
    --orange: #f57224;
    --orange-dark: #e96312;
    --dark: #252525;
    --light: #fff7f1;
    --border: #eeeeee;
    --text: #333333;
    --muted: #777777;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #f7f7f7;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1200px, 94%);
    margin: auto;
}

/* TOP BAR */
.futech-topbar {
    background: var(--dark);
    color: #fff;
    font-size: 12px;
}

.futech-topbar-inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.futech-topbar a {
    color: #fff;
    margin-left: 16px;
}

/* MAIN HEADER */
.futech-header {
    background: var(--orange);
    color: #fff;
}

.futech-mainbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.futech-logo {
    display: flex;
    align-items: center;
    flex: 0 0 190px;
    max-width: 190px;
    overflow: hidden;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
}

.futech-logo span {
    color: #252525;
}

.futech-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 52px;
    object-fit: contain;
}

.futech-search {
    display: flex;
    flex: 1;
    max-width: 650px;
    height: 42px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.futech-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 15px;
    font-size: 14px;
}

.futech-search button {
    width: 52px;
    border: 0;
    background: #ffe1cf;
    color: var(--orange-dark);
    font-size: 19px;
    cursor: pointer;
}

.futech-search button:hover {
    background: #ffd0b3;
}

.futech-cart {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}

/* NAVIGATION */
.futech-navigation {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 5px rgba(0,0,0,.04);
}

.futech-nav-inner {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 27px;
}

.futech-nav-inner > a,
.futech-category-menu summary {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.futech-nav-inner > a:hover,
.futech-category-menu summary:hover {
    color: var(--orange);
}

.futech-nav-inner .futech-home-link {
    color: var(--orange);
}

.futech-category-menu {
    position: relative;
}

.futech-category-menu summary {
    list-style: none;
}

.futech-category-menu summary::-webkit-details-marker {
    display: none;
}

.futech-category-dropdown {
    position: absolute;
    z-index: 1000;
    top: 28px;
    left: 0;
    width: 230px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
    border-radius: 5px;
}

.futech-category-dropdown a {
    display: block;
    padding: 9px 14px;
    color: #333;
    font-size: 13px;
}

.futech-category-dropdown a:hover {
    background: var(--light);
    color: var(--orange);
}

/* GENERAL CONTENT */
.section {
    padding-top: 35px;
    padding-bottom: 35px;
}

h1, h2, h3 {
    color: #252525;
    line-height: 1.25;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 23px;
}

.btn,
button.btn {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 11px 20px;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover,
button.btn:hover {
    background: var(--orange-dark);
}

/* PRODUCT CARDS */
.product-card,
.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.product-card:hover,
.category-card:hover {
    box-shadow: 0 5px 16px rgba(0,0,0,.09);
}

.product-card img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #fff;
}

.product-card h3 {
    font-size: 15px;
}

.product-card .price {
    color: var(--orange);
    font-size: 18px;
    font-weight: bold;
}

/* TABLES AND FORMS */
.tablewrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--light);
}

input, select, textarea {
    max-width: 100%;
}

/* FOOTER */
footer {
    background: #252525;
    color: #eee;
    padding: 35px 0;
}

footer a {
    color: #fff;
}

/* MOBILE */
@media (max-width: 700px) {
    .futech-topbar-inner {
        min-height: 34px;
        font-size: 11px;
    }

    .futech-mainbar {
        min-height: auto;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .futech-logo {
        flex: 1;
        max-width: 150px;
        font-size: 25px;
    }

    .futech-logo img {
        max-width: 145px;
        max-height: 42px;
    }

    .futech-search {
        order: 3;
        flex: 0 0 100%;
        max-width: none;
        height: 40px;
    }

    .futech-cart {
        font-size: 13px;
    }

    .futech-nav-inner {
        gap: 18px;
        overflow-x: auto;
        white-space: nowrap;
        min-height: 42px;
    }

    .section {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

/* FUTECH HOMEPAGE HERO - COMPACT ORANGE DESIGN */
.futech-logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 180px !important;
    max-height: 52px !important;
    object-fit: contain !important;
}

.hero {
    background: #fff7f1;
    padding: 55px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 35px;
}

.hero .eyebrow {
    color: #f57224;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 12px 0;
}

.hero h1 span {
    color: #f57224;
}

.hero p {
    color: #666;
    max-width: 550px;
}

.hero-art {
    min-height: 250px;
    max-width: 400px;
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffe7d7;
    border-radius: 18px;
}

.hero-art .orb {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #f57224;
    opacity: .12;
}

.hero-art .glass {
    position: relative;
    width: min(270px, 85%);
    min-height: 150px;
    padding: 25px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-art .glass b {
    color: #f57224;
    font-size: 34px;
}

.hero-art .glass small {
    color: #555;
    font-size: 11px;
}

.hero-art .signal {
    color: #f57224;
    font-size: 28px;
}

.btn.ghost {
    background: #fff;
    color: #f57224;
    border: 1px solid #f57224;
}

.home-category {
    color: #333;
}

.home-category:hover {
    border-color: #f57224;
}

.fiber-section {
    background: #f57224 !important;
    color: #fff !important;
}

.fiber-section h2,
.fiber-section p {
    color: #fff !important;
}

@media(max-width:700px) {
    .hero {
        padding: 30px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-art {
        min-height: 190px;
    }

    .hero-art .glass {
        min-height: 125px;
    }
}

/* FINAL COMPACT HEADER LOGO */
.futech-mainbar .futech-logo {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: 50px !important;
    flex: 0 0 120px !important;
    overflow: hidden !important;
}

.futech-mainbar .futech-logo img {
    display: block !important;
    width: 120px !important;
    height: 45px !important;
    max-width: 120px !important;
    max-height: 45px !important;
    object-fit: contain !important;
}

@media(max-width:700px) {
    .futech-mainbar .futech-logo {
        width: 105px !important;
        min-width: 105px !important;
        max-width: 105px !important;
        flex: 0 0 105px !important;
    }

    .futech-mainbar .futech-logo img {
        width: 105px !important;
        height: 40px !important;
        max-width: 105px !important;
        max-height: 40px !important;
    }
}

/* FUTECH PRODUCT GRID - COMPACT DARAZ STYLE */
.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch;
}

.products .product {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
}

.products .product > a:first-child {
    display: flex;
    width: 100%;
    height: 145px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.products .product > a:first-child img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.products .product .placeholder {
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f57224;
    font-weight: bold;
}

.products .pbody {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 7px;
}

.products .pbody h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 3px 0;
    min-height: 39px;
}

.products .pbody > b {
    color: #f57224;
    font-size: 16px;
}

.products .smallbtn {
    display: block;
    margin-top: auto;
    padding: 8px 5px;
    text-align: center;
    background: #f57224;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

@media(max-width:900px) {
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media(max-width:600px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .products .product > a:first-child {
        height: 125px;
    }

    .products .product .placeholder {
        height: 125px;
    }

    .products .pbody {
        padding: 8px;
    }

    .products .pbody h3 {
        font-size: 13px;
    }
}

/* FUTECH HOMEPAGE BANNER SLIDER */
.home-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f7fa;
}

.home-slides {
    position: relative;
    width: 100%;
}

.home-slide {
    display: none;
    width: 100%;
}

.home-slide.active {
    display: block;
    animation: futechFade .5s ease;
}

.home-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2048 / 768;
    object-fit: cover;
}

.home-slide a {
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(20,35,60,.65);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    cursor: pointer;
}

.slider-dot.active {
    background: #f57224;
    transform: scale(1.25);
}

@keyframes futechFade {
    from { opacity: .55; }
    to { opacity: 1; }
}

@media(max-width:600px) {
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }
    .slider-dots { bottom: 7px; gap: 7px; }
    .slider-dot { width: 8px; height: 8px; }
}

/* FIX: SHOW COMPLETE BANNER IMAGE */
.home-slide {
    width: 100%;
    aspect-ratio: 8 / 3;
    background: #ffffff;
    overflow: hidden;
}

.home-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

@media(max-width:600px) {
    .home-slide {
        aspect-ratio: 8 / 3;
    }
}

/* Slider arrows alignment */
.slider-arrow {
    left: 12px;
}
.slider-arrow.next {
    left: auto;
    right: 12px;
}

/* FINAL FIX: Remove extra white space around slider */
.home-slide {
    width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: hidden;
}

.home-slide img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center;
}

.home-slides {
    height: auto !important;
}
