/* Custom Plugin Frontend Styles mimicking Tailwind Utilities */

.custom-plugin-wrapper {
  box-sizing: border-box;
}

.custom-plugin-wrapper * {
  box-sizing: border-box;
}

/* Layout */
.max-w-lg {
  max-width: 32rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Spacing */
.p-4 {
  padding: 1rem;
}

.p-8 {
  padding: 2rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.-ml-1 {
  margin-left: -0.25rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

/* Typography */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-white {
  color: #ffffff;
}

.text-green-700 {
  color: #047857;
}

.text-green-400 {
  color: #34d399;
}

.text-red-700 {
  color: #b91c1c;
}

.text-red-400 {
  color: #f87171;
}

.placeholder-gray-400::placeholder {
  color: #9ca3af;
}

/* Borders */
.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l-4 {
  border-left-width: 4px;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-green-500 {
  border-color: #10b981;
}

.border-red-500 {
  border-color: #ef4444;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Colors */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-green-50 {
  background-color: #ecfdf5;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

/* Interactivity & Transitions */
.appearance-none {
  appearance: none;
}

.transition {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

.duration-150 {
  transition-duration: 150ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(37, 99, 235, 0.5); /* simplified ring */
}

.focus\:ring-blue-500:focus {
  --tw-ring-color: #3b82f6;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 0 0 0 3px var(--tw-ring-color, rgba(59, 130, 246, 0.5));
}

.focus\:border-blue-500:focus {
  border-color: #3b82f6;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-75 {
  opacity: 0.75;
}

.fl-contact-form textarea, .fl-contact-form input[type="text"], .fl-contact-form input[type="tel"], .fl-contact-form input[type="email"] {
	display: inline-block;
	width: 100%;
	border: 1px solid #ddd;
	padding: 5px 10px;
	font-size: 13px;
	color: #373737;
	border-radius: 3px;
}
.fl-module-adv-testimonials .bx-wrapper {
    margin: 0 auto;
}
a {
	text-decoration: none !important
}
.white-image img {
	filter: brightness(0) invert(1);
}
.velocity-image-1x1 img {
	aspect-ratio: 1/1;
	object-fit: cover;
}
.velocity-image-4x3 img {
	aspect-ratio: 4/3;
	object-fit: cover;
}
.fl-module-content-slider .fl-content-slider-navigation {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 0;
    top: auto;
}
.fl-content-slider-navigation .slider-prev {
    left: 5px;
    bottom: 5px;
}
.fl-content-slider-navigation .slider-next {
    right: auto;
	left: 63px;
    bottom: 5px;
}
.fl-module-content-slider .slider-prev, .fl-module-content-slider .slider-next {
    padding: 10px;
    background: var(--fl-global-primary);
}
.velocity-uabb-photo-gallery .uabb-photo-gallery img {
	padding: 10px;
}
.velocity-image-carousel .uabb-image-carousel-content {
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.2);
    padding: 10px;
}
.velocity-image-carousel .uabb-image-carousel img {
    height: 100px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block;
}


@media only screen and (min-width: 768px) {
	.fl-module-content-slider .slider-prev, .fl-module-content-slider .slider-next {
		padding: 20px;
	}
	.fl-content-slider-navigation .slider-next {
		left: 82px;
	}
}


@media only screen and (max-width: 768px) {
	html, body {
		overflow-x: hidden;
	}
	.fl-module-content-slider .fl-slide .fl-slide-content {
        padding: 0 !important;
    }
	.fl-content-slider .fl-slide-bg-photo {
		height: 450px;
   }
   .fl-slide-mobile-photo {
		display: none;
   }
	.fl-content-slider .fl-slide .fl-slide-content {
		background-color: transparent;
   }
   .fl-content-slider .fl-slide .fl-slide-foreground {
	   position: absolute;
	   top: 0;
	   display: flex;
	   justify-content: center;
	   align-items: center;
	   width: 100%;
	   height: 100%;
   }
   .fl-module-content-slider .fl-slide .fl-slide-title {
		color: var(--fl-global-dark) !important;
   }
}


/* Search Bar */
.custom-search-bar {
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding:0;
}

.custom-search-input {
    flex: 1;
    width: 100%;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
	font-size:16px;
	color:white;
	font-weight:700
}

.custom-search-input::placeholder {
    color: #cacaca;
    opacity: 1;
	
}

.custom-search-button {
    flex: 0 0 auto;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 8px 0 16px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-search-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: white;
    stroke-width: 4;
    stroke-linecap: round;
}

/* Product Sorting */
.product-sorting {
    display: inline-block;
}

.product-sorting select {
    border: 1px solid #ddd;
    background: #fff;
    padding: 5px 35px 5px 10px;
    cursor: pointer;
    outline: none;
}

/* =========================================
   Product Category List
========================================= */

.product-category-list {
    width: 100%;
    font-size: 15px;
}

.product-category-item {
    width: 100%;
}

/* =========================================
   Category Row
========================================= */

.product-category-row {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 8px;
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Hover hanya pada row yang punya link */
.product-category-row:hover {
    background: #f6f7f9;
}

/* =========================================
   Category Link
========================================= */

.product-category-link {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;

    color: #252525;
    text-decoration: none;
    font-weight: 500;

    padding: 8px 4px;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.product-category-link:hover {
    color: #111;
    text-decoration: none;
    padding-left: 7px;
}

/* =========================================
   Toggle
========================================= */

.product-category-toggle,
.product-category-toggle-placeholder {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-category-toggle {
    padding: 0;
    border: 0;
    border-radius: 6px;

    background: transparent;
    color: #777;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.product-category-toggle:hover {
    background: #e9ecef;
    color: #222;
}

/* =========================================
   Arrow
========================================= */

.product-category-arrow {
    width: 7px;
    height: 7px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg);

    transition:
        transform 0.25s ease,
        margin-top 0.25s ease;

    margin-top: -4px;
}

/* Accordion open */
.product-category-item.is-open
> .product-category-row
.product-category-arrow {
    transform: rotate(225deg);
    margin-top: 4px;
}

/* =========================================
   Active / Open Parent
========================================= */

.product-category-item.is-open
> .product-category-row
.product-category-link {
    color: #111;
    font-weight: 600;
}

/* =========================================
   Children
========================================= */

.product-category-children {
    display: grid;
    grid-template-rows: 0fr;

    margin-left: 17px;
    padding-left: 11px;

    border-left: 1px solid #e5e7eb;

    overflow: hidden;

    transition:
        grid-template-rows 0.25s ease,
        opacity 0.25s ease;

    opacity: 0;
}

.product-category-item.is-open
> .product-category-children {
    grid-template-rows: 1fr;
    opacity: 1;
}

/*
   Wrapper diperlukan agar animasi
   grid 0fr -> 1fr bekerja dengan baik.
*/
.product-category-children > * {
    min-height: 0;
}

/* =========================================
   Nested Levels
========================================= */

.product-category-item.level-2
> .product-category-row {
    padding-left: 4px;
}

.product-category-item.level-3
> .product-category-row {
    padding-left: 4px;
}

.product-category-item.level-4
> .product-category-row {
    padding-left: 4px;
}

/* =========================================
   Child Text
========================================= */

.product-category-item.level-2
> .product-category-row
.product-category-link {
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

.product-category-item.level-3
> .product-category-row
.product-category-link {
    font-size: 13.5px;
    color: #666;
}

/* =========================================
   Child Hover
========================================= */

.product-category-item.level-2
.product-category-row:hover,
.product-category-item.level-3
.product-category-row:hover {
    background: #f8f9fa;
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 767px) {

    .product-category-list {
        font-size: 14px;
    }

    .product-category-row {
        min-height: 40px;
    }

    .product-category-link {
        padding: 7px 4px;
    }

    .product-category-children {
        margin-left: 12px;
        padding-left: 10px;
    }
}

/* =========================================
   Quotation
========================================= */
/* ========================================
   Product Quotation
======================================== */

.product-quotation {
    width: 100%;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

/* Header */

.product-quotation-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.product-quotation-desc {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}


/* Product */

.product-quotation-product {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f7f8fa;
}

.product-quotation-label {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 12px;
}

.product-quotation-product-name {
    font-size: 15px;
    font-weight: 600;
}


/* Field */

.product-quotation-field {
    margin-bottom: 16px;
}

.product-quotation-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.product-quotation-field label span {
    color: #dc2626;
}

.product-quotation-field input,
.product-quotation-field textarea {
    display: block;
    width: 100%;
    padding: 11px 13px;

    border: 1px solid #dfe3e8;
    border-radius: 7px;

    background: #fff;

    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.product-quotation-field input:focus,
.product-quotation-field textarea:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .08);
}

.product-quotation-field textarea {
    resize: vertical;
}


/* Quantity */

.product-quotation-quantity {
    display: flex;
    width: 150px;
    height: 42px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    overflow: hidden;
}

.product-quotation-quantity button {
    width: 42px;
    border: 0;
    background: #f7f8fa;
    cursor: pointer;
    font-size: 18px;
}

.product-quotation-quantity button:hover {
    background: #eceff2;
}

.product-quotation-quantity input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center;
    outline: none;
    box-shadow: none !important;
}


/* Submit */

.product-quotation-submit {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 13px 18px;

    border: 0;
    border-radius: 7px;

    background: #111827;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.product-quotation-submit:hover {
    background: #000;
    transform: translateY(-1px);
}


/* Contact */

.product-quotation-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.product-quotation-contact button {
    padding: 11px 14px;

    border: 1px solid #dfe3e8;
    border-radius: 7px;

    background: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.product-quotation-contact button:hover {
    background: #f7f8fa;
    border-color: #cfd4da;
}


/* Mobile */

@media (max-width: 575px) {

    .product-quotation {
        padding: 18px;
    }

    .product-quotation-contact {
        grid-template-columns: 1fr;
    }

}

.product-quotation-product-select {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;

    /* Hilangkan style bawaan browser */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.product-quotation-product-select:hover {
    border-color: #bdbdbd;
}

.product-quotation-product-select:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.product-quotation-product-select:invalid {
    color: #777;
}

.product-quotation-product-select option {
    color: #333;
    background: #fff;
}

.fl-node-odcqnphfej2r .fl-has-submenu-container  .menu-item.current-menu-item > a:not(.section-active) {
    color: white !important;
}

.fl-node-odcqnphfej2r .menu-item a.section-active,
.fl-node-odcqnphfej2r .menu-item > .fl-has-submenu-container > .section-active {
    color: var(--fl-global-secondary) !important;
}
