/*
Theme Name: FoodMart
Theme URI: https://templatesjungle.com/
Author: TemplatesJungle
Author URI: https://templatesjungle.com/
Description: FoodMart is specially designed product packaged for eCommerce store websites.
Version: 1.1
*/

/*--------------------------------------------------------------
This is main CSS file that contains custom style rules used in this template
--------------------------------------------------------------*/

/*------------------------------------*\
    Table of contents
\*------------------------------------*/

/*------------------------------------------------

CSS STRUCTURE:

1. VARIABLES

2. GENERAL TYPOGRAPHY
  2.1 General Styles
  2.2 Floating & Alignment
  2.3 Forms
  2.4 Lists
  2.5 Code
  2.6 Tables
  2.7 Spacing
  2.8 Utilities
  2.9 Misc
    - Row Border
    - Zoom Effect
  2.10 Buttons
    - Button Sizes
    - Button Shapes
    - Button Color Scheme
    - Button Aligns
  2.11 Section
    - Hero Section
    - Section Title
    - Section Paddings
    - Section Margins
    - Section Bg Colors
    - Content Colors
    - Content Borders

3. EXTENDED TYPOGRAPHY
  3.1 Blockquote / Pullquote
  3.2 Text Highlights

4. CONTENT ELEMENTS
  4.1 Tabs
  4.2 Accordions
  4.3 Brand Carousel
  4.4 Category Carousel

5. BLOG STYLES
  5.1 Blog Single Post
  5.2 About Author
  5.3 Comments List
  5.4 Comments Form3

6. SITE STRUCTURE
  6.1 Header
    - Header Menu
    - Nav Sidebar
  6.2 Billboard
  6.3 About Us Section
  6.4 Video Section
  6.5 Selling Products Section
  6.6 Quotation Section
  6.7 Latest Blogs Section
  6.8 Newsletter Section
  6.9 Instagram Section
  6.10 Footer
    - Footer Top
    - Footer Bottom

7. OTHER PAGES
  7.1 Product detail
  7.2 Shop page


/*--------------------------------------------------------------
/** 1. VARIABLES
--------------------------------------------------------------*/

:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 80px;
    --transition-speed: 0.3s;
    --primary-color: #455a6c;
    --secondary-color: #596d7e;
    --header-bg: #2c3e50;
    --table-header-bg: #0c7680;
    --table-header-color: white;
    --table-row-hover: #f5f5f5;
    --table-border: #e0e0e0;
}

:root {
    /* widths for rows and containers
     */
    --header-height: 160px;
    --header-height-min: 80px;
}
/* on mobile devices below 600px
 */
@media screen and (max-width: 600px) {
    :root {
        --header-height: 100px;
        --header-height-min: 80px;
    }
}
/* Theme Colors */
:root {
    --accent-color: #fff1ca;
    --dark-color: #222222;
    --light-dark-color: #727272;
    --light-color: #fff;
    --grey-color: #dbdbdb;
    --light-grey-color: #fafafa;
    --primary-color: #6995b1;
    --light-primary-color: #eef1f3;
}

/* Fonts */
:root {
    --body-font: "Open Sans", sans-serif;
    --heading-font: "Nunito", sans-serif;
}

body {
    --bs-link-color: #333;
    --bs-link-hover-color: #333;

    --bs-link-color-rgb: 40, 40, 40;
    --bs-link-hover-color-rgb: 0, 0, 0;

    /* --bs-link-color: #FFC43F;
  --bs-link-hover-color: #FFC43F; */

    --bs-light-rgb: 248, 248, 248;

    --bs-font-sans-serif: "Open Sans", sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 2;
    --bs-body-color: #747474;

    --bs-primary: #ffc43f;
    --bs-primary-rgb: 255, 196, 63;

    --bs-success: #a3be4c;
    --bs-success-rgb: 163, 190, 76;

    --bs-primary-bg-subtle: #fff9eb;
    --bs-success-bg-subtle: #eef5e5;

    --bs-border-color: #f7f7f7;

    --bs-secondary-rgb: 230, 243, 251;
    /* --bs-success-rgb: 238, 245, 228; */
    --bs-danger-rgb: 249, 235, 231;
    --bs-warning-rgb: 255, 249, 235;
    --bs-info-rgb: 230, 243, 250;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #ffc43f;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #f7a422;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ffc43f;
    --bs-btn-active-border-color: transparent;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #d3d7dd;
    --bs-btn-disabled-border-color: transparent;
}
.btn-outline-primary {
    --bs-btn-color: #ffc43f;
    --bs-btn-border-color: #ffc43f;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ffc107;
    --bs-btn-hover-border-color: #ffc107;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ffc107;
    --bs-btn-active-border-color: #ffc107;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff3cd;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #fff3cd;
    --bs-gradient: none;
}
.btn-outline-light {
    --bs-btn-color: #747474;
    --bs-btn-border-color: #efefef;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #efefef;
    --bs-btn-hover-border-color: #efefef;
    --bs-btn-focus-shadow-rgb: 248, 249, 250;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #efefef;
    --bs-btn-active-border-color: #efefef;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #efefef;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #efefef;
    --bs-gradient: none;
}
.btn-warning {
    --bs-btn-color: #747474;
    --bs-btn-bg: #fcf7eb;
    --bs-btn-border-color: #fcf7eb;
    --bs-btn-hover-color: #747474;
    --bs-btn-hover-bg: #ffecbe;
    --bs-btn-hover-border-color: #ffecbe;
    --bs-btn-focus-shadow-rgb: 217, 164, 6;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #ffecbe;
    --bs-btn-active-border-color: #ffecbe;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #fcf7eb;
    --bs-btn-disabled-border-color: #fcf7eb;
}
.btn-success {
    --bs-btn-color: #222;
    --bs-btn-bg: #eef5e4;
    --bs-btn-border-color: #eef5e4;
    --bs-btn-hover-color: #222;
    --bs-btn-hover-bg: #9de3c2;
    --bs-btn-hover-border-color: #9de3c2;
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #222;
    --bs-btn-active-bg: #9de3c2;
    --bs-btn-active-border-color: #9de3c2;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #222;
    --bs-btn-disabled-bg: #eef5e4;
    --bs-btn-disabled-border-color: #eef5e4;
}
.btn-danger {
    --bs-btn-color: #222;
    --bs-btn-bg: #ffeada;
    --bs-btn-border-color: #ffeada;
    --bs-btn-hover-color: #222;
    --bs-btn-hover-bg: #ecc9af;
    --bs-btn-hover-border-color: #ecc9af;
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #222;
    --bs-btn-active-bg: #ecc9af;
    --bs-btn-active-border-color: #ecc9af;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #222;
    --bs-btn-disabled-bg: #ffeada;
    --bs-btn-disabled-border-color: #ffeada;
}
body {
    letter-spacing: 0.03em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    font-weight: 700;
}
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-weight: 700;
}
.breadcrumb.text-white {
    --bs-breadcrumb-divider-color: #fff;
    --bs-breadcrumb-item-active-color: var(--bs-primary);
}
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--bs-primary);
}
.nav-pills .nav-link {
    --bs-nav-pills-link-active-color: #111;
    --bs-nav-pills-link-active-bg: #f1f1f1;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 3rem;
}
/*----------------------------------------------*/
/* 6. SITE STRUCTURE */
/*----------------------------------------------*/
/* 6.1 Header
--------------------------------------------------------------*/
/* Preloader */
.preloader-wrapper {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 111;
    background: #fff;
}

.preloader-wrapper .preloader {
    margin: 20% auto 0;
    transform: translateZ(0);
}

.preloader:before,
.preloader:after {
    content: "";
    position: absolute;
    top: 0;
}

.preloader:before,
.preloader:after,
.preloader {
    border-radius: 50%;
    width: 2em;
    height: 2em;
    animation: animation 1.2s infinite ease-in-out;
}

.preloader {
    animation-delay: -0.16s;
}

.preloader:before {
    left: -3.5em;
    animation-delay: -0.32s;
}

.preloader:after {
    left: 3.5em;
}

@keyframes animation {
    0%,
    80%,
    100% {
        box-shadow: 0 2em 0 -1em var(--accent-color);
    }
    40% {
        box-shadow: 0 2em 0 0 var(--accent-color);
    }
}

/* *** Start editing below this line *** */
.container-fluid {
    max-width: 1600px;
}
.banner-blocks {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 2rem;
}
.block-1 {
    grid-area: 1 / 1 / 3 / 8;
}
.block-2 {
    grid-area: 1 / 8 / 2 / 13;
}
.block-3 {
    grid-area: 2 / 8 / 3 / 13;
}

@media screen and (max-width: 1140px) {
    .banner-blocks {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    .block-1 {
        grid-area: 1 / 1 / 3 / 2;
    }
    .block-2 {
        grid-area: 3 / 1 / 4 / 2;
    }
    .block-3 {
        grid-area: 4 / 1 / 5 / 2;
    }
}

/* banner ad */
.banner-ad {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.banner-ad.blue {
    background: #e6f3fb;
}
.banner-ad .swiper-pagination {
    bottom: 40px;
    left: 0;
    right: 0;
}
.banner-ad .swiper-pagination .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    margin: 4px;
    background: #fff;
    opacity: 1;
    transition: background 0.3s ease-out;
}
.banner-ad
    .swiper-pagination
    .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #00aa7f;
}
.banner-ad .swiper-slide {
    min-height: 630px;
    display: flex;
}
/* .banner-ad .banner-content {
  padding: 52px;
}
.banner-ad.large .banner-content {
  padding: 90px;
} */
.banner-ad .banner-content .categories {
    font-family: "poppins";
    font-size: 27px;
    /* text-transform: capitalize; */
    color: var(--dark-color);
}
.banner-ad .banner-content .sale {
    position: relative;
    display: inline-block;
}
.banner-ad .banner-content .sale:before {
    content: "";
    width: 80px;
    border-bottom: 1px solid #111;
    position: absolute;
    bottom: 6px;
}
.banner-ad .banner-content .sale:after {
    content: "SALE";
    font-family: var(--body-font);
    position: absolute;
    font-size: 11px;
    line-height: 15px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #252525;
    bottom: 0;
    right: 0;
}
.banner-ad .banner-content .banner-title {
    letter-spacing: 0.02em;
    font-size: 33px;
}
.banner-ad.large .banner-content .categories {
    color: var(--accent-color);
}
.banner-ad.large .banner-content .banner-title {
    font-size: 54px;
}

/* Swiper carousel */
.swiper-prev,
.swiper-next {
    width: 38px;
    height: 38px;
    line-height: 38px;
    background: #f1f1f1;
    color: #222222;
    padding: 0;
    text-align: center;
    border-radius: 10px;
    --bs-btn-border-color: transparent;
    --bs-btn-active-bg: #ec9b22;
    --bs-btn-active-border-color: transparent;
    --bs-btn-hover-bg: #ffc43f;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-disabled-color: #ccc;
    --bs-btn-disabled-bg: #eaeaea;
    --bs-btn-disabled-border-color: #eaeaea;
}
.swiper-prev:hover,
.swiper-next:hover {
    background: #ffc43f;
}
.btn-link {
    margin-right: 30px;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    text-align: right;
    text-transform: capitalize;
    color: #787878;
}
/* category carousel */
.category-carousel {
    background: #ffffff;
}
.category-item {
    background: linear-gradient(135deg, #008765, #008765, #007256);
    max-height: 220px;
}

.category-carousel .category-item {
    border: 1px solid #fbfbfb;
    box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    text-align: center;
    padding: 60px 20px;
    margin: 20px 0;
    transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}
.category-item img {
    max-width: 40px;
    max-height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
}
.category-carousel .category-item:hover {
    transform: translate3d(0, -10px, 0);
    box-shadow: 0px 21px 44px rgba(0, 0, 0, 0.08);
}
.category-carousel .category-item .category-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 27px;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #ffffff;
    margin-top: 20px;
}
.category-title {
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
}
/* brand carousel */
.brand-carousel .brand-item {
    background: #ffffff;
    border: 1px solid #fbfbfb;
    box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 16px;
}
.brand-carousel .brand-item img {
    width: 100%;
    border-radius: 12px;
}
.brand-carousel .brand-item .brand-details {
    margin-left: 15px;
}
.brand-carousel .brand-item .brand-title {
    margin: 0;
}

/* product tabs */
.product-tabs .nav-tabs {
    justify-content: flex-end;
    border: none;

    --bs-nav-link-hover-color: #111;
    --bs-nav-link-color: #555;
    --bs-nav-tabs-link-border-color: #fff;
    --bs-nav-tabs-link-hover-border-color: transparent;
    --bs-nav-tabs-link-active-border-color: #fff;
}
.product-tabs .nav-tabs .nav-link.active,
.product-tabs .nav-tabs .nav-item.show .nav-link {
    /* border: none; */
    border-bottom: 3px solid var(--accent-color);
}

/* product-grid */
/* .product-grid {
  gap: 25px;
} */
.product-item {
    position: relative;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #fbfbfb;
    box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease-out;
}
.product-item:hover {
    box-shadow: 0px 21px 44px rgba(0, 0, 0, 0.08);
}
.product-item h3 {
    display: block;
    width: 100%;
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
    text-transform: capitalize;
    color: #333333;
    margin: 0;
}
.product-item figure {
    background: #f9f9f9;
    border-radius: 12px;
    text-align: center;
}
.product-item figure img {
    max-height: 210px;
    height: auto;
}
.product-item .btn-wishlist {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d8d8d8;
    transition: all 0.3s ease-out;
}
.product-item .btn-wishlist:hover {
    background: rgb(240, 56, 56);
    color: #fff;
}
.product-item .qty {
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9d9d9d;
}
.product-item .rating {
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    text-transform: capitalize;
    color: #222222;
}
.product-item .rating iconify-icon {
    color: #ffc43f;
}
.product-item .price {
    display: block;
    width: 100%;
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    text-transform: capitalize;
    color: #222222;
}
.product-item .product-qty {
    width: 85px;
}
.product-item .btn-link {
    text-decoration: none;
}
.product-item #quantity {
    height: auto;
    width: 28px;
    text-align: center;
    border: none;
    margin: 0;
    padding: 0;
}
.product-item .btn-number {
    width: 26px;
    height: 26px;
    line-height: 1;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    color: #222;
    padding: 0;
}

/* cart */
.cart .product-qty {
    min-width: 130px;
}

/* floating image */
.image-float {
    margin-top: -140px;
    margin-bottom: -140px;
}
@media screen and (max-width: 991px) {
    .image-float {
        margin: 0;
    }
}
/* post item */
.post-item .post-meta {
    font-size: 0.8rem;
    line-height: 1;
}
.post-item .post-meta svg {
    margin-right: 5px;
}

@media screen and (max-width: 991px) {
    /* offcanvas menu */
    .offcanvas-body .nav-item {
        font-weight: 700;
        border-bottom: 1px solid #d1d1d1;
    }
    .offcanvas-body .filter-categories {
        width: 100%;
        margin-bottom: 20px !important;
        border: 1px solid #d1d1d1 !important;
        padding: 14px;
        border-radius: 8px;
    }
    /* dropdown-menu */
    .dropdown-menu {
        padding: 0;
        border: none;
        line-height: 1.4;
        font-size: 0.9em;
    }
    .dropdown-menu a {
        padding-left: 0;
    }
    .dropdown-toggle::after {
        position: absolute;
        right: 0;
        top: 21px;
    }
}

/* single product */
/* product-thumbnail-slider */
.product-thumbnail-slider {
    height: 740px;
}
@media screen and (max-width: 992px) {
    .product-thumbnail-slider {
        margin-top: 20px;
        height: auto;
    }
}
@media screen and (min-width: 992px) {
    .product-thumbnail-slider {
        height: 520px;
    }
}
@media screen and (min-width: 1200px) {
    .product-thumbnail-slider {
        height: 740px;
    }
}

.bg-footer {
    /* background: linear-gradient(135deg, #008765, #008765, #007256); */
    background: linear-gradient(135deg, #0c7680, #1caebc, #0c7680);
}

.txt-footer p {
    color: #ffffff;
}

.txt-footer h1 {
    color: #ffffff;
}

.bg-inf1 {
    /* background: linear-gradient(135deg, #0c7680, #49a28a,  #0c7680); */
    background: linear-gradient(135deg, #0c7680, #1caebc, #0c7680);
    /* background: url('images/bg-ansor.jpeg');background-repeat: no-repeat;background-size: cover !important; */
}

/* .main-logo img {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 170px;
} */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

body {
    background-color: #f8f9fa;
    overflow-x: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Layout utama dengan sidebar */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--header-bg);
    color: white;
    transition: width var(--transition-speed);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 600;
    transition: opacity var(--transition-speed);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-color);
}

.sidebar-menu li a.active {
    color: white;
    background-color: rgba(52, 152, 219, 0.2);
    border-left: 3px solid var(--primary-color);
}

.sidebar-menu li a i {
    margin-right: 10px;
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

.sidebar-menu li a .menu-text {
    transition: opacity var(--transition-speed);
    font-weight: 500;
}

/* Konten utama */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed);
    padding: 2rem;
    background-color: #f5f7fa;
}

/* Toggle sidebar */
.sidebar-collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .menu-text,
.sidebar-collapsed .sidebar-header h4 {
    opacity: 0;
    visibility: hidden;
}

.sidebar-collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Tombol toggle */
.toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}

.sidebar-collapsed .toggle-btn {
    transform: rotate(90deg);
}

/* Table container */
.table-responsive-container {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.table-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--table-border);
}

/* Tambahkan ke file CSS Anda */
/* .table-title {
    padding: 15px 0;
} */

.input-group {
    width: 300px; /* Sesuaikan lebar sesuai kebutuhan */
}

@media (max-width: 768px) {
    /* .table-title {
        flex-direction: column;
        align-items: flex-start;
    } */

    .input-group {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-add {
        width: 100%;
    }
}

.table-title h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--header-bg);
}

.btn-add {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-add:hover {
    background-color: var(--secondary-color);
}

.overflow-x-auto {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Untuk scroll halus di perangkat mobile */
  border: 1px solid #e0e0e0; /* Opsional: tambahkan border */
  border-radius: 8px; /* Opsional: rounded corners */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Opsional: shadow */
}

/* Table styling */
.responsive-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: separate;
    border-spacing: 0;
}

.responsive-table thead th {
    background-color: var(--table-header-bg);
    color: var(--table-header-color);
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.responsive-table th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.responsive-table th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.responsive-table tbody tr {
    transition: background-color 0.2s;
}

.responsive-table tbody tr:hover {
    background-color: var(--table-row-hover);
}

.responsive-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--table-border);
    vertical-align: middle;
    text-align: center;
}

/* Action buttons */
.btn-action {
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: none;
}

.btn-edit {
    background-color: #f39c12;
}

.btn-edit:hover {
    background-color: #e67e22;
}

.btn-delete {
    background-color: #e74c3c;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Alert styling */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar .menu-text,
    .sidebar .sidebar-header h4 {
        opacity: 0;
        visibility: hidden;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-collapsed {
        width: 100%;
    }

    .sidebar-collapsed .menu-text,
    .sidebar-collapsed .sidebar-header h4 {
        opacity: 1;
        visibility: visible;
    }

    .table-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-add {
        margin-top: 1rem;
        width: 100%;
    }
}

.card-container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background-color: #f8f9fa;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.card-body {
    padding: 1.5rem;
}

/* Form Elements */
.form-label {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: none;
    padding: 0.5rem 0.75rem;
}

/* Button */
/* .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
} */

/* Alert */
.alert {
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Spacing Utilities */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

/* .sidebar {
    width: 250px;
    transition: all 0.3s;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    background: #2c3e50;
    color: white;
}

.sidebar-collapsed {
    width: 60px;
}

.sidebar-menu .menu-text {
    display: inline-block;
    transition: opacity 0.3s;
}

.sidebar-collapsed .menu-text {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        z-index: 1000;
    }

    .sidebar:not(.sidebar-collapsed) {
        width: 250px;
    }

    .sidebar:not(.sidebar-collapsed) .menu-text {
        opacity: 1;
        width: auto;
        height: auto;
        position: static;
        overflow: visible;
    }
}

.close-sidebar {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
} */

.grid input {
    border-color: #007256;
}

/* Container Utama */
.product-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Judul Form */
.product-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Form Group */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

/* Input Fields */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tombol Submit */
.btn-submit {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #2563eb;
}

/* Responsive */
@media (max-width: 640px) {
    .product-form-container {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CSS untuk memastikan gambar square */
.square-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Membuat tinggi sama dengan lebar */
    overflow: hidden;
    border-radius: 0.25rem; /* Untuk rounded corners */
}

.square-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.product-image-wrapper {
    width: 100%;
    max-width: 300px; /* Atur maksimal lebar */
    height: 300px; /* Fixed height untuk konsistensi */
    margin: 0 auto; /* Pusatkan */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5; /* Warna fallback */
    border: 1px solid #eee; /* Border opsional */
    overflow: hidden;
}

/* Style untuk gambar */
.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Pastikan seluruh gambar terlihat */
}

/* Search Bar Styles */
.search-bar {
    transition: all 0.3s ease;
}

.search-bar .form-control {
    box-shadow: none;
}

.search-bar .form-control:focus {
    outline: none;
}

/* Offcanvas Search */
.offcanvas-top {
    height: auto;
    padding: 1rem;
}

@media (max-width: 991.98px) {
    .search-bar {
        display: none;
    }
}


