/*
 * Compact Orange Ecommerce Theme
 * Inspired by the layout density and orange/black visual language of the
 * reference storefront supplied by the client. No third-party source code,
 * logos or proprietary assets are included.
 */
:root{
    --g-orange:#ff5a0a;
    --g-orange-dark:#e94b00;
    --g-black:#111111;
    --g-text:#222222;
    --g-muted:#777777;
    --g-line:#ececec;
    --g-bg:#ffffff;
    --g-soft:#fff5ef;
    --g-radius:8px;
    --g-container:1180px;
}

html,body{background:#fff;color:var(--g-text);}
body{font-family:"Roboto",Arial,sans-serif!important;font-size:14px;}
a{text-decoration:none;}
.container{max-width:var(--g-container)!important;}
#content{background:#fff;}

/* ===== Header ===== */
.g999-header{background:#fff;position:relative;z-index:999;border-bottom:1px solid #f0f0f0;}
.g999-topbar-wrap{background:#fff;padding:5px 0 0;}
.g999-topbar{
    max-width:var(--g-container);margin:0 auto;background:var(--g-orange);color:#fff;
    min-height:34px;border-radius:14px 14px 0 0;display:grid;grid-template-columns:repeat(3,1fr);
    align-items:center;text-align:center;overflow:hidden;font-size:12px;font-weight:600;
}
.g999-topbar-item{padding:7px 14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.g999-topbar-item+.g999-topbar-item{border-left:1px solid rgba(255,255,255,.24);}
.g999-topbar i{margin-right:6px;font-size:12px;}
.g999-mainbar{padding:10px 0;background:#fff;}
.g999-mainbar-inner{display:grid;grid-template-columns:auto minmax(260px,1fr) auto;align-items:center;gap:18px;}
.g999-brand-wrap{display:flex;align-items:center;gap:10px;min-width:215px;}
.g999-menu-toggle{border:0;background:transparent;color:#111;font-size:22px;line-height:1;padding:5px 3px;cursor:pointer;}
.g999-brand{display:flex;align-items:center;min-width:0;}
.g999-brand img{height:48px;max-width:185px;width:auto;object-fit:contain;}
.g999-search{position:relative;max-width:520px;width:100%;justify-self:center;}
.g999-search form{height:42px;display:flex;border:1px solid #cfcfcf;border-radius:3px;overflow:hidden;background:#fff;}
.g999-search input{flex:1;border:0!important;outline:0!important;padding:0 13px;font-size:13px;box-shadow:none!important;min-width:0;background:#fff;}
.g999-search button{width:48px;border:0;background:#050505;color:#fff;font-size:16px;display:flex;align-items:center;justify-content:center;}
.g999-search .search_result{position:absolute;left:0;right:0;top:100%;z-index:1500;background:#fff;box-shadow:0 8px 22px rgba(0,0,0,.15);}
.g999-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;white-space:nowrap;}
.g999-action{color:#111!important;font-size:12px;font-weight:600;display:flex;align-items:center;gap:5px;position:relative;}
.g999-action i{font-size:15px;}
.g999-cart-badge{position:absolute;right:-8px;top:-9px;background:var(--g-orange);color:#fff;border-radius:999px;min-width:17px;height:17px;padding:0 4px;font-size:10px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;}

/* ===== Homepage ===== */
.g999-home{padding-bottom:24px;}
.g999-hero{padding:0 0 8px;}
.g999-hero .main_slider{border-radius:0;overflow:hidden;background:#f6f6f6;}
.g999-hero .slider-item{display:block;}
.g999-hero .slider-item a{display:block;}
.g999-hero .slider-item img{width:100%;height:auto;aspect-ratio:2.75/1;object-fit:cover;display:block;}
.g999-hero .owl-nav button{position:absolute!important;top:50%;transform:translateY(-50%);width:34px!important;height:44px!important;border-radius:0!important;background:rgba(255,90,10,.82)!important;color:#fff!important;margin:0!important;}
.g999-hero .owl-nav .owl-prev{left:0;}
.g999-hero .owl-nav .owl-next{right:0;}

.g999-section{padding:5px 0 12px;}
.g999-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--g-line);padding:0 0 7px;margin-bottom:10px;}
.g999-section-title{font-size:15px;line-height:1.2;margin:0;color:#222;font-weight:700;}
.g999-view-all{font-size:12px;font-weight:700;color:var(--g-orange)!important;}

.g999-category-strip{display:flex;gap:13px;overflow-x:auto;padding:0 2px 6px;scrollbar-width:thin;}
.g999-category-item{flex:0 0 72px;text-align:center;color:#222!important;}
.g999-category-circle{width:60px;height:60px;border-radius:50%;border:2px solid #ffb085;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center;margin:0 auto 6px;overflow:hidden;padding:4px;}
.g999-category-circle img{width:100%;height:100%;object-fit:contain;border-radius:50%;}
.g999-category-name{display:block;font-size:10.5px;line-height:1.25;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.g999-products-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:stretch;}
.g999-card{position:relative;background:#fff;border:1px solid #ff9a63;border-radius:5px;overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:.18s ease;}
.g999-card:hover{transform:translateY(-2px);box-shadow:0 5px 14px rgba(0,0,0,.09);}
.g999-card-media{position:relative;aspect-ratio:1/1;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:4px;}
.g999-card-media img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .2s ease;}
.g999-card:hover .g999-card-media img{transform:scale(1.025);}
.g999-discount{position:absolute;right:4px;top:4px;background:var(--g-orange);color:#fff;border-radius:4px;padding:4px 4px 3px;font-size:9px;font-weight:800;line-height:1.1;text-align:center;min-width:34px;z-index:2;}
.g999-card-body{padding:7px 7px 5px;display:flex;flex-direction:column;flex:1;min-height:86px;}
.g999-card-title{font-size:11px;line-height:1.3;font-weight:500;color:#2d2d2d!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:29px;margin-bottom:5px;}
.g999-card-price{margin-top:auto;text-align:center;line-height:1.2;}
.g999-old-price{font-size:10px;color:#999;text-decoration:line-through;margin-right:4px;}
.g999-new-price{font-size:12px;color:var(--g-orange);font-weight:800;}
.g999-card-actions{display:grid;grid-template-columns:1fr 1.1fr;margin-top:4px;}
.g999-card-actions form,.g999-card-actions a{margin:0;min-width:0;}
.g999-card-actions button,.g999-card-actions a{width:100%;height:30px;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;cursor:pointer;}
.g999-cart-btn{background:var(--g-orange)!important;color:#fff!important;}
.g999-order-btn{background:#090909!important;color:#fff!important;}
.g999-card-actions .g999-order-btn:hover{background:#222!important;}
.g999-card-actions .g999-cart-btn:hover{background:var(--g-orange-dark)!important;}

.g999-ad{margin:4px 0 12px;overflow:hidden;border-radius:4px;}
.g999-ad img{width:100%;height:auto;display:block;}

.g999-brand-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;}
.g999-brand-card{border:1px solid #eee;background:#fff;border-radius:5px;min-height:86px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#222!important;}
.g999-brand-card img{max-width:100%;height:46px;object-fit:contain;margin-bottom:6px;}
.g999-brand-card span{font-size:11px;font-weight:600;text-align:center;}

.g999-shops-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;}
.g999-shop-card{display:block;border:1px solid #eee;border-radius:6px;overflow:hidden;color:#222!important;background:#fff;}
.g999-shop-banner{height:62px;background-size:cover;background-position:center;background-color:#f5f5f5;}
.g999-shop-info{padding:0 8px 9px;text-align:center;}
.g999-shop-logo{width:46px;height:46px;border-radius:50%;background:#fff;border:2px solid #fff;box-shadow:0 1px 7px rgba(0,0,0,.15);margin:-23px auto 5px;overflow:hidden;display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--g-orange);}
.g999-shop-logo img{width:100%;height:100%;object-fit:cover;}
.g999-shop-name{font-size:11px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.g999-blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.g999-blog-card{border:1px solid #eee;border-radius:6px;overflow:hidden;background:#fff;}
.g999-blog-card img{width:100%;aspect-ratio:1.8/1;object-fit:cover;display:block;}
.g999-blog-body{padding:10px;}
.g999-blog-date{font-size:10px;color:#999;margin-bottom:4px;}
.g999-blog-title{font-size:13px;font-weight:700;line-height:1.35;color:#222!important;display:block;}

/* ===== Existing listing pages restyled ===== */
.product-section,.homeproduct{background:#fff!important;}
.product-section{padding-top:12px;}
.sorting-section{background:#fff!important;border:1px solid #eee!important;border-radius:6px!important;padding:10px!important;margin-bottom:12px!important;}
.category-breadcrumb a,.category-breadcrumb strong{color:#222!important;}
.category-product.main_product_inner,.search_product_inner,.main_product_inner{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;}
.product_item{border:1px solid #ff9a63!important;border-radius:5px!important;background:#fff!important;overflow:hidden!important;box-shadow:none!important;margin:0!important;padding:0!important;height:100%!important;position:relative!important;}
.product_item:hover{box-shadow:0 5px 14px rgba(0,0,0,.09)!important;transform:translateY(-2px);}
.product_item .product_item_inner{border:0!important;padding:0!important;}
.product_item .pro_img{height:auto!important;aspect-ratio:1/1!important;padding:4px!important;background:#fff!important;overflow:hidden!important;}
.product_item .pro_img img{width:100%!important;height:100%!important;object-fit:contain!important;}
.product_item .pro_des{padding:6px 7px 0!important;min-height:38px!important;}
.product_item .pro_name a{font-size:11px!important;line-height:1.3!important;color:#222!important;font-weight:500!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.product_item .pro_price{text-align:center!important;padding:2px 5px 5px!important;}
.product_item .pro_price p{font-size:12px!important;color:var(--g-orange)!important;font-weight:800!important;margin:0!important;}
.product_item .pro_price del{font-size:10px!important;color:#999!important;font-weight:400!important;margin-right:4px!important;}
.product_item .sale-badge{position:absolute!important;right:4px!important;top:4px!important;left:auto!important;z-index:5!important;}
.product_item .sale-badge-inner,.product_item .sale-badge-box{background:transparent!important;width:auto!important;height:auto!important;border-radius:0!important;}
.product_item .sale-badge-text{background:var(--g-orange)!important;color:#fff!important;border-radius:4px!important;display:block!important;padding:4px!important;font-size:8px!important;line-height:1.05!important;min-width:34px!important;text-align:center!important;}
.product_item .sale-badge-text p{font-size:9px!important;margin:0!important;color:#fff!important;font-weight:800!important;}
.product_item .fa-star,.product_item .fa-star-half-alt,.product_item .far.fa-star{font-size:9px!important;color:#f6a400!important;margin-left:5px!important;}
.product_item .pro_btn{display:grid!important;grid-template-columns:1fr 44px!important;gap:0!important;margin:0!important;width:100%!important;}
.product_item .pro_btn>form,.product_item .pro_btn>a{width:100%!important;max-width:none!important;flex:none!important;margin:0!important;}
.product_item .order-btn,.product_item .order-btn-link{height:32px!important;background:#090909!important;color:#fff!important;border:0!important;border-radius:0!important;font-size:10px!important;padding:0 6px!important;}
.product_item .cart-icon-btn,.product_item .cart-icon-link{height:32px!important;background:var(--g-orange)!important;color:#fff!important;border:0!important;border-radius:0!important;}
.product_item .cart-icon-btn i,.product_item .cart-icon-link i{color:#fff!important;font-size:13px!important;}

/* Sidebar / filters */
.filter_sidebar .sidebar_item,.wraper__item,.accordion-item{border-color:#eee!important;border-radius:6px!important;overflow:hidden;}
.accordion-button{font-size:13px!important;font-weight:700!important;background:#fff!important;color:#222!important;box-shadow:none!important;}
.accordion-button:not(.collapsed){color:var(--g-orange)!important;background:var(--g-soft)!important;}
.page-sort .form-select,.page-sort select{font-size:12px!important;border-color:#ddd!important;}
.custom_paginate .page-link{color:#222!important;}
.custom_paginate .page-item.active .page-link{background:var(--g-orange)!important;border-color:var(--g-orange)!important;color:#fff!important;}

/* Product details / forms / checkout */
.product-details,.productdetails,.checkout-shipping,.checkout-payment,.checkout-review,.account-card,.customer-auth-card,.contact-form{border-color:#eee!important;}
.btn-primary,.submit-btn,.checkout-btn,.cart_checkout,.addcartbutton,.order_now_btn{background:var(--g-orange)!important;border-color:var(--g-orange)!important;color:#fff!important;}
.btn-primary:hover,.submit-btn:hover,.checkout-btn:hover,.cart_checkout:hover,.addcartbutton:hover,.order_now_btn:hover{background:var(--g-orange-dark)!important;border-color:var(--g-orange-dark)!important;}
.form-control:focus,.form-select:focus{border-color:#ff9a63!important;box-shadow:0 0 0 .15rem rgba(255,90,10,.12)!important;}

/* Footer */
.footer-v2{background:#111!important;}
.footer-v2__wave{background:var(--g-orange)!important;height:4px!important;opacity:1!important;}
.footer-v2__title::after{background:var(--g-orange)!important;}
.footer-v2__form button{background:var(--g-orange)!important;border-color:var(--g-orange)!important;}
.footer-v2__links a:hover,.footer-v2__designer-link:hover{color:var(--g-orange)!important;}

/* Floating / mobile controls */
.floating-cart-widget{background:var(--g-orange)!important;}
.mobile_bottom_nav .home_fab,.mobile_bottom_nav .nav_item.active .icon_box,.mobile_bottom_nav .nav_item.active{color:var(--g-orange)!important;}

@media (max-width:1199px){
    :root{--g-container:1040px;}
    .g999-products-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
    .g999-brand-grid,.g999-shops-grid{grid-template-columns:repeat(5,1fr);}
}
@media (max-width:991px){
    .g999-topbar{margin:0 12px;}
    .g999-mainbar-inner{grid-template-columns:auto 1fr;gap:10px;}
    .g999-search{grid-column:1/-1;grid-row:2;max-width:none;}
    .g999-actions{justify-self:end;}
    .g999-brand-wrap{min-width:0;}
    .g999-products-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
    .g999-brand-grid,.g999-shops-grid{grid-template-columns:repeat(4,1fr);}
    .category-product.main_product_inner,.search_product_inner,.main_product_inner{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:767px){
    body{padding-bottom:70px;}
    .g999-topbar-wrap{display:none;}
    .g999-mainbar{padding:8px 0;}
    .g999-mainbar-inner{display:flex;flex-wrap:wrap;gap:8px 10px;}
    .g999-brand-wrap{flex:1;}
    .g999-brand img{height:38px;max-width:145px;}
    .g999-actions{gap:10px;}
    .g999-action-label{display:none;}
    .g999-action i{font-size:18px;}
    .g999-search{order:3;flex:0 0 100%;}
    .g999-search form{height:38px;}
    .g999-hero .slider-item img{aspect-ratio:2.25/1;}
    .g999-products-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
    .g999-card-title{font-size:10.5px;}
    .g999-category-item{flex-basis:66px;}
    .g999-category-circle{width:54px;height:54px;}
    .g999-brand-grid,.g999-shops-grid{grid-template-columns:repeat(3,1fr);gap:8px;}
    .g999-blog-grid{grid-template-columns:1fr;}
    .filter_sidebar{display:none;}
    .product-section .col-sm-9{width:100%!important;}
    .category-product.main_product_inner,.search_product_inner,.main_product_inner{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
}
@media (max-width:575px){
    .container{padding-left:10px!important;padding-right:10px!important;}
    .g999-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .g999-card-body{min-height:82px;}
    .g999-card-title{font-size:11px;}
    .g999-card-actions button,.g999-card-actions a{height:32px;font-size:10px;}
    .g999-brand-grid,.g999-shops-grid{grid-template-columns:repeat(2,1fr);}
    .category-product.main_product_inner,.search_product_inner,.main_product_inner{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
