
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #222;
    background: #f7f7f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #111;
}

a {
    font-family: 'Inter', sans-serif;
}

button {
    font-family: 'Inter', sans-serif;
}

input,
select,
textarea {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

p,
span,
label {
    font-family: 'Inter', sans-serif;
}

.hero-section {
    position: relative;
    overflow: visible;
    margin-bottom: 0;
    padding-bottom: 30px;
    background: #f7f7f7;
}


.hero-section .carousel {
    margin-bottom: 0px;
}

.hero-banner {
    width: 100%;
    height: 650px;
    object-fit: cover;
    object-position:center;
    display: block;
}


.hero-section::before {
    content: none;
}


.hero-product-boxes {
    position: relative;
    left: auto;
    transform: none;
    bottom: auto;
    width: 95%;
    max-width: 1500px;
    margin: -150px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 5;
    padding: 0 15px;
}

.hero-box {
    background: #fff;
    padding: 20px;
    min-height: 390px;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.hero-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.hero-box h5 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #111;
    line-height: 30px;
    position: relative;
    padding-bottom: 10px;
}


.hero-box h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 2px;
}


.hero-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
}

.hero-product-item {
    display: flex;
    flex-direction: column;
}

.hero-product-item a {
    text-decoration: none;
    color: #111;
}

.hero-product-item img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.hero-product-item img:hover {
    transform: scale(1.04);
}

.hero-product-item span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 18px;
    color: #222;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}


.category-card {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.category-card:hover {
    background: #ebebeb;
    transform: scale(1.02);
}

.hero-link {
    margin-top: 15px;
    text-decoration: none;
    color: #007185;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-link:hover {
    color: #C7511F;
}

@media (max-width: 1400px) {

    .hero-product-boxes{
        width:96%;
        gap:18px;
        margin-top:-120px;
    }

}

@media (max-width: 1200px) {

    .hero-banner{
        height:520px;
        object-fit:cover;
        object-position:top center;
    }

    .hero-product-boxes{
        grid-template-columns:repeat(2,1fr);
        width:96%;
        margin:-100px auto 0;
        gap:18px;
    }

    .hero-box{
        min-height:340px;
    }

}

@media (max-width:991px){

    .hero-section{
        padding-bottom:60px;
    }

    .hero-section .carousel{
        margin-bottom:0;
    }

    .hero-banner{
        height:400px;
        object-fit:cover;
        object-position:top center;
    }

    .hero-product-boxes{
        width:96%;
        grid-template-columns:repeat(2,1fr);
        margin:-90px auto 0;
        gap:16px;
        padding:0 10px;
    }

    .hero-box{
        min-height:320px;
        padding:18px;
    }

}

/* Mobile Landscape */
@media (max-width:767px){

    .hero-section{
        padding-bottom:40px;
    }

    .hero-section .carousel{
        margin-bottom:0;
    }

    .hero-banner{
        height:260px;
        object-fit:cover;
        object-position:top center;
    }

    .hero-product-boxes{
        position:relative;
        left:auto;
        bottom:auto;
        transform:none;
        width:100%;
        margin:-85px auto 0;
        padding:0 10px;
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .hero-box{
        min-height:auto;
        padding:14px;
    }

    .hero-box h5{
        font-size:18px;
        margin-bottom:12px;
        padding-bottom:8px;
    }

    .hero-box h5::after{
        width:30px;
        height:2px;
    }

    .hero-product-grid{
        grid-template-columns:repeat(2,1fr);
        gap:8px;
    }

    .hero-product-item img{
        height:90px;
        object-fit:contain;
    }

    .hero-product-item span{
        font-size:12px;
        line-height:15px;
    }

    .category-card{
        height:80px;
        font-size:12px;
    }

    .hero-link{
        font-size:13px;
        margin-top:10px;
    }

}

/* Mobile Portrait */
@media (max-width:480px){

    .hero-banner{
        height:220px;
        object-fit:cover;
        object-position:top center;
    }

    .hero-product-boxes{
        margin:-45px auto 0;
        gap:10px;
        padding:0 8px;
    }

    .hero-box{
        padding:12px;
    }

    .hero-box h5{
        font-size:16px;
        margin-bottom:10px;
    }

    .hero-product-item img{
        height:75px;
    }

    .hero-product-item span{
        font-size:11px;
        line-height:14px;
    }

    .category-card{
        height:70px;
        font-size:11px;
    }

    .hero-link{
        font-size:12px;
    }

}

/* Very Small Mobile */
@media (max-width:360px){

    .hero-banner{
        height:190px;
        object-fit:cover;
        object-position:top center;
    }

    .hero-product-boxes{
        margin:-35px auto 0;
        gap:8px;
        padding:0 5px;
    }

    .hero-box{
        padding:10px;
    }

    .hero-box h5{
        font-size:14px;
    }

    .hero-product-item img{
        height:65px;
    }

    .hero-product-item span{
        font-size:10px;
        line-height:13px;
    }

    .category-card{
        height:60px;
        font-size:10px;
    }

}



.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Mobile Carousel Controls */
@media (max-width: 767px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }
}


.hero-box h5,
.hero-product-item span {
    text-rendering: optimizeLegibility;
}

.hero-link:focus-visible,
.category-card:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   SHOP BY CATEGORY
========================================================== */

.category-section {
    padding: 70px 0;
    background: #f7f7f7;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #0d4b57;
    line-height: 1.2;
}

.section-header a {
    text-decoration: none;
    color: #007185;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.section-header a:hover {
    color: #C7511F;
}

.section-header a i {
    font-size: 12px;
}

/* ==========================
   LAYOUT - WIDER
========================== */

.category-layout {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    align-items: flex-start;
}

/* ==========================
   CATEGORY MENU - SCROLLABLE
========================== */

.category-menu {
    width: 280px;
    min-width: 280px;
    background: #fafafa;
    border-right: 1px solid #ececec;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
}

.category-menu::-webkit-scrollbar {
    width: 5px;
}

.category-menu::-webkit-scrollbar-track {
    background: #f3f3f3;
}

.category-menu::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 20px;
}

.category-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.category-menu-item {
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
}

.category-menu-item:hover {
    background: #f0f0f0;
    color: #007185;
}

.category-menu-item.active {
    background: #e8f4f8;
    color: #007185;
    border-left-color: #007185;
    font-weight: 600;
}

/* Sub-category items */
.category-menu-item.sub-category {
    padding-left: 40px !important;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    border-left-color: transparent;
}

.category-menu-item.sub-category.active {
    background: #f0f7fa;
    color: #007185;
    border-left-color: #007185;
}

.category-menu-item.sub-category:hover {
    background: #f5f5f5;
}

/* Sub-category level 2 */
.category-menu-item.sub-category-level-2 {
    padding-left: 58px !important;
    font-size: 12px;
    color: #666;
}

/* Parent category with toggle indicator */
.category-menu-item.has-children {
    position: relative;
}

.category-menu-item.has-children::after {
    content: '▶';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}

.category-menu-item.has-children.expanded::after {
    transform: translateY(-50%) rotate(90deg);
}

/* Sub-category wrapper */
.sub-category-wrapper {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ==========================
   PRODUCTS - WIDER GRID
========================== */

.category-products-wrapper {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ==========================
   CARD
========================== */

.category-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #222;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid transparent;
}

.category-product-card:hover {
    transform: translateY(-4px);
    border-color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    background: #fafafa;
}

.category-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 4px 4px;
}

.category-product-info h5 {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    min-height: 40px;
    margin-bottom: 8px;
    color: #111;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.category-product-price {
    margin-top: auto;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.category-product-price span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #777;
    font-weight: 400;
}

/* ==========================
   VIEW MORE
========================== */

.view-more-wrap {
    text-align: center;
    margin-top: 25px;
}

.view-more-btn {
    display: inline-block;
    padding: 10px 32px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-more-btn:hover {
    background: #007185;
    color: #fff;
}

.view-more-btn i {
    font-size: 12px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1400px) {
    .category-products-grid {
        gap: 20px;
    }
    .category-product-card img {
        height: 180px;
    }
}

@media (max-width: 1200px) {
    .category-menu {
        width: 240px;
        min-width: 240px;
    }
    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .category-product-card img {
        height: 170px;
    }
}

@media (max-width: 992px) {
    .category-menu {
        width: 200px;
        min-width: 200px;
    }
    .category-menu-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    .category-menu-item.sub-category {
        padding-left: 32px !important;
        font-size: 12px;
    }
    .category-menu-item.sub-category-level-2 {
        padding-left: 48px !important;
        font-size: 11px;
    }
    .category-products-wrapper {
        padding: 18px 20px;
    }
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .category-product-card img {
        height: 160px;
    }
    .category-product-info h5 {
        font-size: 13px;
        line-height: 18px;
        min-height: 36px;
    }
    .category-product-price {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .category-section {
        padding: 50px 0;
    }
    .section-header {
        margin-bottom: 20px;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .category-layout {
        flex-direction: column;
        border-radius: 10px;
    }
    /* Horizontal Category Menu */
    .category-menu {
        width: 100%;
        min-width: 100%;
        max-height: none;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        border-right: none;
        border-bottom: 1px solid #ececec;
        padding: 4px 0;
        scrollbar-width: none;
    }
    .category-menu::-webkit-scrollbar {
        display: none;
    }
    .category-menu-item {
        flex: 0 0 auto;
        padding: 10px 18px;
        font-size: 13px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .category-menu-item.active {
        border-left-color: transparent;
        border-bottom-color: #007185;
    }
    .category-menu-item.has-children::after {
        display: none;
    }
    /* Hide sub-categories on mobile */
    .category-menu-item.sub-category {
        display: none !important;
    }
    .category-menu-item.sub-category-level-2 {
        display: none !important;
    }
    .sub-category-wrapper {
        display: none !important;
    }
    .category-products-wrapper {
        padding: 15px;
    }
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .category-product-card img {
        height: 150px;
    }
    .category-product-info h5 {
        font-size: 13px;
        line-height: 18px;
        min-height: 36px;
    }
    .category-product-price {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .category-section {
        padding: 40px 0;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .section-header h2 {
        font-size: 22px;
    }
    .category-products-wrapper {
        padding: 12px;
    }
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-product-card {
        padding: 6px;
    }
    .category-product-card img {
        height: 130px;
    }
    .category-product-info {
        padding: 8px 2px 2px;
    }
    .category-product-info h5 {
        font-size: 12px;
        line-height: 16px;
        min-height: 32px;
        margin-bottom: 4px;
    }
    .category-product-price {
        font-size: 15px;
    }
    .category-product-price span {
        font-size: 10px;
    }
    .view-more-btn {
        padding: 8px 24px;
        font-size: 13px;
        width: 100%;
        border-radius: 6px;
    }
}

@media (max-width: 400px) {
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .category-product-card img {
        height: 110px;
    }
    .category-product-info h5 {
        font-size: 11px;
        line-height: 15px;
        min-height: 30px;
    }
    .category-product-price {
        font-size: 13px;
    }
    .category-products-wrapper {
        padding: 8px;
    }
}