:root {
    --color-primary: #E76B77;
    --color-primary-dark: #c8555f;
    --color-primary-light: #f5e6e0;
    --color-text-dark: #333;
    --color-text-light: #666;
    --color-border: #e8e8e8;
    --color-bg-light: #f9f7f5;
    --color-white: #ffffff;
    --color-success: #28a745;
    --color-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --color-shadow-md: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition-base: all 0.3s ease;
    --transition-fade: opacity 0.5s ease-in-out;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--color-primary);
    font-size: 18px;
}

.nav-menu {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: var(--color-text-light);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--color-shadow-sm);
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--color-text-dark);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border: 0;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-ghost {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.pricelist-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.pricelist-modal {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--color-shadow-md);
    max-width: 420px;
    width: 90%;
    padding: 18px 20px 16px;
}

.pricelist-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pricelist-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.pricelist-modal-close {
    background: transparent;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.pricelist-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pricelist-modal-list li + li {
    margin-top: 6px;
}

.pricelist-modal-button {
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-light);
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.pricelist-modal-button:hover {
    background: #fff;
    border-color: var(--color-primary-light);
}

.pdf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    display: none;
    align-items: stretch;
    justify-content: center;
    z-index: 70;
}

.pdf-modal {
    background: transparent;
    color: #fff;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pdf-modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    z-index: 10;
    width: auto;
    pointer-events: none;
}

.pdf-modal-title {
    display: none;
}

.pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.modal-dropdown-toggle,
.pdf-modal-close {
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* color: #fff; */
    color: var(--color-primary);
}

.modal-dropdown-toggle:hover,
.pdf-modal-close:hover {
    background: var(--color-primary-dark);
}

.modal-dropdown {
    position: relative;
    display: inline-block;
}

.modal-dropdown-toggle {
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    /* color: #fff; */
    color: var(--color-primary);
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.modal-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.24);
}

.modal-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    display: none;
    z-index: 105;
    text-align: left;
    max-height: 240px;
    overflow-y: auto;
}

.modal-dropdown.open .modal-dropdown-menu {
    display: block;
}

.modal-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.modal-dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--color-primary);
}

.pdf-modal-close {
    border-radius: 999px;
    border: 0;
    /* background: rgba(255, 255, 255, 0.16); */
    color: #fff;
    font-size: 15px;
    padding: 4px 6px;
    cursor: pointer;
}

.pdf-modal-pricelist:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* .pdf-modal-close {
    background: transparent;
    border: 0;
    color: var(--color-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 6px;
} */

.pdf-modal-body {
    flex: 1;
    background: transparent;
    position: relative;
}

.pdf-loader-container {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--color-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hero Slider */
.hero {
    padding: 24px 0 10px;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--color-shadow-md);
    background: var(--color-white);
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    display: block;
    width: 100%;
    height: auto;
}

.slider-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slider-btn:hover {
    background: #fff;
}

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

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: #fff;
    width: 20px;
    border-radius: 999px;
}

/* Section */
.section {
    padding: 65px 0 10px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 22px;
    margin: 0;
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--color-text-light);
    font-size: 14px;
}

.carousel {
    position: relative;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding: 6px 2px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 999px;
}

.card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--color-shadow-md);
    overflow: hidden;
    scroll-snap-align: start;
    min-height: 280px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    /* height: 150px; */
    object-fit: cover;
    cursor: zoom-in;
}

.card-body {
    padding: 14px 16px 18px;
}

.card-title {
    margin: 0 0 6px;
    font-weight: 600;
}

.card-desc {
    margin: 0 0 12px;
    color: var(--color-text-light);
    font-size: 13px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-light);
    font-size: 12px;
}

.carousel-controls {
    position: absolute;
    top: -46px;
    right: 0;
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
}

/* Footer */
.footer {
    padding: 40px 0 50px;
    color: var(--color-text-light);
    text-align: center;
    font-size: 13px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fade);
    z-index: 999;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: min(80vw, 720px);
    max-height: 80vh;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--color-shadow-md);
    padding: 12px;
}

.lightbox-content img,
.lightbox-content video {
    display: block;
    max-width: 100%;
    max-height: calc(80vh - 32px);
    border-radius: var(--border-radius-md);
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    font-size: 18px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(17, 24, 39, 0.8);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.lightbox-nav.visible {
    display: flex;
}

.lightbox-prev {
    left: -14px;
}

.lightbox-next {
    right: -14px;
}

.ba-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.ba-modal {
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: var(--color-shadow-md);
    max-width: 960px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.ba-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-border);
}

.ba-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ba-modal-close {
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 6px;
}

.ba-modal-body {
    display: flex;
    min-height: 320px;
    flex: 1;
    overflow: hidden;
}

.ba-modal-sidebar {
    width: 260px;
    border-right: 1px solid var(--color-border);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ba-search-wrapper {
    position: relative;
}

.ba-search {
    width: 100%;
    padding: 8px 28px 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 13px;
}

.ba-search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-light);
    display: none;
}

.ba-search-clear.visible {
    display: block;
}

.ba-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.ba-list-item {
    margin: 0;
}

.ba-list-button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 6px 6px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
}

.ba-list-button:hover,
.ba-list-button.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.ba-modal-content {
    flex: 1;
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.ba-detail-title {
    margin: 0 0 4px;
    font-size: 17px;
}

.ba-detail-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--color-text-light);
}

.ba-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.ba-image-wrapper {
    background: var(--color-bg-light);
    border-radius: 10px;
    padding: 8px;
    position: relative;
}

.ba-video-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    z-index: 2;
}

.ba-video-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ba-image, .ba-video {
    width: 100%;
    max-height: 220px;
    border-radius: 8px;
    cursor: zoom-in;
    object-fit: contain;
    background: #000;
}

.ba-empty {
    font-size: 13px;
    color: var(--color-text-light);
}

@media (max-width: 1024px) {
    .ba-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ba-modal {
        max-height: 95vh;
    }

    .ba-modal-body {
        flex-direction: column;
    }

    .ba-modal-sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
        height: 300px;
    }

    .ba-images {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .slide {
        height: 300px;
        padding: 28px;
    }

    .slide h2 {
        font-size: 26px;
    }

    .nav-menu {
        display: flex;
        gap: 14px;
        font-size: 13px;
    }

    .nav-dropdown-menu {
        top: calc(100% + 6px);
        right: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-dropdown {
        display: inline-block;
    }
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    margin-left: auto;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .burger-menu {
        display: flex;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
        display: flex;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 10px;
        border-left: 2px solid var(--color-border);
        margin-top: 10px;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 10px 0;
    }

    .nav-menu > a {
        padding: 10px 0;
        display: block;
    }

    .nav-inner {
        height: 56px;
    }

    .slider {
        position: relative;
        overflow: hidden;
        border-radius: 24px;
        box-shadow: var(--color-shadow-md);
        background: var(--color-white);
        height: 190px;
    }

    .slide {
        height: 250px;
        padding: 22px;
    }

    .slide h2 {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .carousel-track {
        grid-auto-columns: minmax(220px, 1fr);
    }
}