:root {
    --brand-primary: #d81b60;
    --brand-secondary: #c2185b;
    --brand-light: #fdf0f5;
    --brand-dark: #4a2c38;
    --brand-pink-soft: #fce4ec;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    background: radial-gradient(circle at center, #2e1a24 0%, #150a10 100%);
    color: #333;
}

.btn-floating-back {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: rgba(216, 27, 96, 0.85);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-floating-back:hover {
    background: #c2185b;
    color: #fff;
    transform: scale(1.08);
}

.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(20, 10, 15, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-left {
    left: 15px;
}

.nav-arrow-right {
    right: 15px;
}

.catalog-container {
    width: 100vw;
    height: 100vh;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 70px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .catalog-container {
        padding: 10px 40px;
    }
}

#flipbook-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    position: relative;
}

#flipbook {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    visibility: hidden;
}

#flipbook.flipbook-ready {
    visibility: visible;
}

.page {
    background-color: #fffbfd;
    background-image: radial-gradient(rgba(216, 27, 96, 0.03) 1px, transparent 0);
    background-size: 20px 20px;
    border: 1px solid #f5d6e3;
    overflow: hidden;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: inset 0 0 30px rgba(216, 27, 96, 0.02);
}

.page-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-cover {
    background: linear-gradient(145deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%) !important;
    color: #880e4f;
    text-align: center;
    border: 3px solid #d81b60 !important;
}

.page-cover-top {
    padding: 0 !important;
}

.main-cover-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-cover-image-box {
    height: 60%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.main-cover-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.main-cover-content {
    height: 40%;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
}

.cover-brand-title {
    font-family: Georgia, serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #880e4f;
    letter-spacing: 1.5px;
}

.cover-subtitle-sm {
    font-size: 0.7rem;
    color: #ad1457;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 2px;
}

.cover-catalog-heading {
    font-size: 0.88rem;
    font-weight: 800;
    color: #c2185b;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.back-cover-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.back-cover-image-box {
    height: 50%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.back-cover-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.back-cover-content {
    height: 50%;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
}

.cover-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #880e4f;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.cover-subtitle {
    font-size: 1rem;
    color: #ad1457;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
}

.cover-divider {
    width: 70px;
    height: 3px;
    background: #d81b60;
    margin: 0 auto 18px;
    border-radius: 3px;
}

.cover-tagline {
    font-style: italic;
    font-size: 0.88rem;
    color: #4a2c38;
    max-width: 85%;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Category Intro Cover Page Styling */
.category-intro-page {
    padding: 0 !important;
    background-color: #fce4ec !important;
    display: flex;
    flex-direction: column;
}

.category-header-banner {
    height: 50%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.category-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.category-brand-overlay {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-brand-overlay .brand-name {
    font-weight: 800;
    color: var(--brand-primary);
    font-size: 0.85rem;
    line-height: 1;
    display: block;
}

.category-brand-overlay .brand-tagline {
    font-size: 0.5rem;
    color: #880e4f;
    letter-spacing: 0.8px;
    font-weight: 700;
    display: block;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    pointer-events: none;
    z-index: 4;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.category-body-content {
    height: 50%;
    padding: 10px 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fce4ec;
    position: relative;
}

.category-intro-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 5px;
}

.category-main-title {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #c2185b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    line-height: 1.2;
    text-align: left;
}

.category-badge-pill {
    background: var(--brand-pink-soft);
    color: var(--brand-secondary);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(216, 27, 96, 0.2);
}

.category-intro-desc {
    font-size: 0.86rem;
    line-height: 1.65;
    color: #5a464d;
    max-width: 95%;
    margin: 0 auto 18px;
    text-align: justify;
    text-align-last: center;
}

.category-feature-box {
    background: #fff;
    border: 1px solid var(--brand-pink-soft);
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.05);
}

.treatment-header-title {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 8px;
}

.treatment-card-container {
    background: #ffffff;
    border: 2px solid #fce4ec;
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 4px 14px rgba(216, 27, 96, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.treatment-table-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.pill-header {
    background-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-header.price-pill {
    text-align: right;
    min-width: 95px;
}

.treatment-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    justify-content: space-around;
}

.treatment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
}

.treatment-row:nth-child(even) {
    background-color: #fdf0f5;
}

.treatment-row:nth-child(odd) {
    background-color: #ffffff;
}

.treatment-name {
    font-weight: 700;
    color: #880e4f;
    font-size: 0.83rem;
    line-height: 1.25;
}

.treatment-price {
    font-weight: 700;
    color: #ad1457;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 8px;
}

.package-block {
    margin-bottom: 8px;
}

.package-header-row {
    background-color: #fdf0f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 4px solid var(--brand-primary);
}

.package-header-title {
    font-weight: 800;
    color: #880e4f;
    font-size: 0.83rem;
    text-transform: uppercase;
}

.package-details-list {
    list-style: none;
    padding-left: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.package-details-list li {
    font-size: 0.78rem;
    color: #4a4a4a;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.package-details-list li::before {
    content: "•";
    color: var(--brand-primary);
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
}

.page-footer-num {
    font-size: 0.72rem;
    color: #b0bec5;
    text-align: center;
    margin-top: 6px;
    font-weight: 600;
}

.page-corner-hint {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.72rem;
    color: #c2185b;
    opacity: 0.6;
    font-weight: 600;
}

.page-cover-back {
    background: linear-gradient(145deg, #f8bbd0 0%, #fce4ec 100%) !important;
    border: 3px solid #d81b60 !important;
    padding: 0 !important;
    text-align: center;
}
