/* Import utility variables and shared styles */
@import url('./utils.css');

/* Import components */
@import url('./components/buttons.css');
@import url('./components/cards.css');
@import url('./components/forms.css');
@import url('./components/tables.css');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    color: var(--secondary);
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    width: 90%;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Hero Section */
.hero-section {
    margin-top: 50px;
    background: var(--center-gradient);
    padding: 6rem 0;
    position: relative;
}

.hero-content {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.site-title {
    font-family: var(--font-family-heading);
    font-size: 50px;
    font-weight: 400;
    color: var(--light-color);
    margin: 0 0 30px;
    text-align: center;
}

.site-title a {
    color: var(--dark-shade);
    text-decoration: none;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1px 12px;
    border-radius: 60px;
    background-color: transparent;
    border: 1px solid var(--primary);
}

.rating-badge h5 {
    color: var(--primary);
    font-size: 14px;
    margin: 0;
}

.hero-title {
    font-family: var(--font-family-heading);
    font-size: 74px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--light-color);
    margin: 20px 0 0;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--foreground-alt);
    line-height: 1.5;
    margin: 40px 0 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 44px;
}

.btn-secondary {
    background-color: var(--background-alt);
    color: var(--dark-shade);
    padding: 16px 24px;
    border-radius: 60px;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-image {
    margin: 64px auto 0;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 0;
    background-color: var(--background-alt);
    max-width: 100%;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.dashboard-image img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* Slideshow Styles */
.dashboard-slideshow {
    margin: 64px auto 0;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 0;
    background-color: var(--background-alt);
    max-width: 100%;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* Fade animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Slideshow dots */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary);
}

/* Logo Showcase */
.logo-showcase {
    background: var(--center-bottom-gradient);
    padding: 4rem 0 5rem;
    text-align: center;
}

.logo-showcase h4 {
    margin-bottom: 40px;
    font-size: 18px;
    color: var(--light-color);
}

.logos-container {
    display: flex;
    justify-content: center;
    gap: 74px;
    flex-wrap: wrap;
}

.logo-item {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    max-height: 84px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Services Section */
.services-section {
    background-color: var(--background);
    padding: 7rem 0;
}

.section-header-sticky {
    max-width: 740px;
    position: sticky;
    top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.section-header {
    max-width: 740px;
    position: relative;
    top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.section-badge {
    display: inline-flex;
    padding: 3px 12px;
    border-radius: 60px;
    background-color: transparent;
    border: 1px solid var(--primary);
}

.section-badge h5 {
    color: var(--primary);
    font-size: 16px;
    margin: 0;
}

.section-title {
    font-family: var(--font-family-heading);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--heading-color);
    margin: 24px 0 0;
}

.section-description {
    font-size: 18px;
    color: var(--foreground);
    margin: 24px 0 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 28px;
}

/* Featured Content */
.featured-section {
    background-color: var(--background);
}

.featured-content {
    background: var(--gradient-three);
    padding: 7rem 0 4rem;
}

.featured-header {
    max-width: 720px;
    margin: 0 auto 84px;
    text-align: center;
}

.featured-title {
    font-family: var(--font-family-heading);
    font-size: 54px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--heading-color);
    margin: 24px 0 0;
}

.featured-subtitle {
    font-size: 18px;
    color: var(--foreground-alt);
    margin: 24px 0 0;
}

.featured-row {
    display: flex;
    align-items: flex-start; 
    gap: 84px;
    margin-bottom: 0;
}

.featured-image {
    flex: 1;
    border-radius: 20px;
    min-height: 510px;
    background: var(--gradient-seventeen);
    position: relative;
    overflow: hidden;
}

.featured-image img {
    position: absolute;   /* isi penuh kotak */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;    /* crop rapi */
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-content-box {
    flex: 1;
    padding: 32px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.featured-content-title {
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--light-color);
    margin: 0 0 24px;
}

.featured-content-description {
    font-size: 18px;
    color: var(--foreground);
    margin: 0 0 28px;
}

/* CTA Section */
.cta-section {
    /* padding: var(--spacing-70) 0 3rem; BIAR NEMPEL MAKA KITA REMOVE YA */ 
}

.cta-content {
    background: var(--center-top-large-gradient);
    border-radius: 24px;
    padding: var(--spacing-30) var(--spacing-40);
    text-align: center;
}

.cta-title {
    font-family: var(--font-family-heading);
    font-size: 64px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--light-color);
    margin: 0 0 var(--spacing-40);
}

.cta-subtitle {
    font-size: 20px;
    color: var(--foreground-alt);
    max-width: 780px;
    margin: 0 auto;
}

.cta-button {
    background-color: var(--primary);
    color: #ffffff;
    padding: 24px 40px;
    font-size: 18px;
    margin-top: 44px;
}

.cta-button:hover {
    background-color: var(--secondary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--background-alt);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    padding: 80px 0;
}

.footer-top {
    display: flex;
    gap: 40px;
    margin-bottom: 0;
}

.footer-about {
    flex: 0 0 45%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-30);
    margin-bottom: 24px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-about h4 {
    font-size: 24px;
    color: var(--light-color);
    margin: 0 0 24px;
}

.footer-contact {
    display: flex;
    align-items: center;
}

.footer-contact h4 {
    font-size: 24px;
    font-weight: 400;
    color: var(--foreground-alt);
    border-bottom: 1px solid;
    margin: 0;
    padding-bottom: 4px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--light-color);
    text-transform: none;
    margin: 0 0 28px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    font-size: 20px;
    color: var(--foreground-alt);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    text-align: left;
}

.footer-bottom p {
    color: var(--dark-shade);
    margin: 0;
    font-size: 18px;
}

/* Catalog Hero Section */
.catalog-hero {
    height: 75vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.catalog-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.catalog-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 61, 41, 0.5); /* Deep forest sage with opacity */
}

.catalog-hero .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.catalog-hero .hero-content {
    max-width: 800px;
    background: transparent;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    z-index: 1;
}

.catalog-hero .section-header {
    margin-bottom: 30px;
}

.catalog-hero .section-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.catalog-hero .section-header p {
    font-size: 18px;
    color: white;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Capsule Filters and Search */
.capsule-filters-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-capsules {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.capsule {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.capsule:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.capsule.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-weight: 600;
}

/* Marquee Section */
.marquee-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--lighter-bg-color) 0%, var(--background-alt) 100%);
    overflow: hidden;
    position: relative;
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--lighter-bg-color), transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--lighter-bg-color), transparent);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 0 150px;
}

.marquee {
    display: flex;
    width: 200%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* CTA Section - Alternate */
.cta {
    padding: 100px 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta .btn-primary:hover {
    background-color: var(--background-alt);
    border: 1px solid var(--border-hover-color);
}

/* Empty Section */
.empty-section {
    padding: 100px 20px;
    background: var(--primary);
    color: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.empty-section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 700px;
}

.empty-section-text h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.empty-section-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.empty-section-action .btn-primary {
    background-color: white;
    color: var(--primary);
    padding: 14px 28px;
    font-size: 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.empty-section-action .btn-primary:hover {
    background-color: var(--background-alt);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Authentication Pages */
.auth-body {
    background: linear-gradient(135deg, var(--white-color) 0%, var(--background-alt) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    margin-top: 150px;
    margin-bottom: 150px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: 'Rouge Script', cursive;
    color: var(--primary);
    font-size: 48px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light-color);
    font-size: 18px;
}

.auth-form {
    margin-bottom: 25px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    color: var(--text-light-color);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Spacing utilities for auth pages */
.mb-6 {
    margin-bottom: 1.5rem;
}

/* Additional styles for verify-email page */
.auth-form .form-group.mb-6 {
    margin-bottom: 1.5rem;
}

.auth-form .form-group p {
    color: var(--text-light-color);
    line-height: 1.6;
    margin: 0;
}

.auth-form form:not(:last-child) {
    margin-bottom: 1rem;
}

.auth-form .form-group form {
    margin-bottom: 1rem;
}

.auth-form .form-group form:last-child {
    margin-bottom: 0;
}

/* Catalog Page */
.catalog {
    padding: 150px 0 50px;
    background: linear-gradient(135deg, var(--white-color) 0%, var(--background-alt) 100%);
    min-height: 100vh;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-hover-color);
    background: white;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    /* Removed hover effects */
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

/* Dashboard Styles */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.sidebar {
    width: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    height: 100vh;
    position: fixed;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .sidebar-footer span {
    display: none;
}

.sidebar.collapsed .sidebar-nav i {
    margin-right: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.sidebar-nav {
    padding: 20px 0;
    flex-grow: 1;
}

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

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav i {
    margin-right: 15px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    transition: all 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    margin-right: 20px;
    cursor: pointer;
    color: var(--text-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--primary);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 32px;
}

.user-role {
    font-size: 12px;
    color: var(--text-light-color);
}

.content-area {
    padding: 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

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

.page-header h2 {
    margin: 0;
    color: var(--text-color);
}

/* Dashboard Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.chart-container h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-color);
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-alt);
    border-radius: 5px;
}

/* Recent Orders */
.recent-orders {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.recent-orders h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.add-product-card {
    background: var(--background-alt);
    border: 2px dashed var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-product-card:hover {
    background: rgba(138, 154, 91, 0.1); /* Sage green with opacity */
    transform: translateY(-5px);
}

.add-product-content {
    text-align: center;
    padding: 40px 20px;
}

.add-product-content i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.add-product-content h3 {
    margin: 0;
    color: var(--primary);
    font-size: 18px;
}

/* Product Detail Styles */
.product-detail {
    padding: 120px 0 50px;
    background: linear-gradient(135deg, var(--white-color) 0%, var(--background-alt) 100%);
    min-height: 100vh;
}

.product-detail-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Product Images Section */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Product Info Section */
.product-info h1 {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: var(--text-color);
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.category {
    background: var(--background-alt);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating i {
    color: #ffc107;
    font-size: 16px;
}

.rating span {
    color: var(--text-light-color);
    font-size: 14px;
    margin-left: 5px;
}

.product-description {
    color: var(--text-light-color);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
}

.template-info {
    background: var(--background-alt);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.template-info h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 20px;
}

.template-info p {
    color: var(--text-light-color);
    line-height: 1.6;
    margin: 0;
}

.product-price {
    margin: 20px 0;
    padding: 15px 0;
}

.product-price .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-details {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.product-details h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 20px;
}

.product-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-details li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    color: var(--text-light-color);
}

.product-details li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 14px;
}

/* Product Tabs */
.product-tabs {
    background: white;
    border-radius: 15px;
    padding: 30px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.tab {
    padding: 15px 25px;
    background: none;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab:hover:not(.active) {
    color: var(--text-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: var(--text-color);
}

.tab-pane h4 {
    margin: 20px 0 10px 0;
    font-size: 18px;
    color: var(--text-color);
}

.tab-pane p {
    color: var(--text-light-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

.tab-pane ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.tab-pane li {
    margin-bottom: 10px;
    color: var(--text-light-color);
    line-height: 1.6;
}

/* Reviews Section */
.reviews-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.average-rating {
    text-align: center;
    min-width: 150px;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stars {
    color: #ffc107;
    margin: 10px 0;
    font-size: 18px;
}

.rating-count {
    font-size: 14px;
    color: var(--text-light-color);
}

.reviews-list {
    flex: 1;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 20px;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-color);
}

.author-info .stars {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.author-info .date {
    font-size: 14px;
    color: var(--text-light-color);
}

.review-content p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* User Dashboard Styles */
.user-dashboard-body {
    background-color: #e8f0e6; /* Light sage green background */
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-top: 80px;
}

.user-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: white;
}

.user-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.user-navbar .logo h2 {
    color: var(--primary);
    font-size: 24px;
    margin: 0;
}

.user-navbar .nav-links {
    display: flex;
    list-style: none;
}

.user-navbar .nav-links li {
    margin: 0 15px;
}

.user-navbar .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.user-navbar .nav-links a:hover,
.user-navbar .nav-links a.active {
    color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--primary);
}

.user-details .user-name {
    font-weight: 600;
    font-size: 16px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
}

.welcome-section h1 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 18px;
    color: var(--text-light-color);
}

.user-main-content {
    margin-top:100px;
}

.user-menu {
    margin-bottom: 30px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.user-content-area {
    margin-bottom: 50px;
}

.user-page {
    display: none;
}

.user-page.active {
    display: block;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    color: var(--text-color);
    font-size: 24px;
    margin: 0;
}

.page-header h2 i {
    margin-right: 10px;
    color: var(--primary);
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 20px;
}

/* Invitations Grid */
.invitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Profile Page */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary);
    font-size: 32px;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: var(--text-color);
}

.profile-info p {
    margin: 0 0 3px 0;
    color: var(--text-light-color);
}

.member-since {
    font-size: 14px;
    color: var(--text-light-color);
}

.detail-group {
    margin-bottom: 20px;
}

.detail-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

/* Settings Page */
.settings-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.settings-group {
    margin-bottom: 30px;
}

.settings-group h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.setting-info {
    flex: 1;
}

.setting-info label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.setting-info p {
    margin: 0;
    color: var(--text-light-color);
    font-size: 14px;
}

.setting-toggle {
    position: relative;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

input[type="checkbox"]:checked + .toggle-switch {
    background-color: var(--primary);
}

input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(26px);
}

input[type="checkbox"] {
    display: inline-block;
    width: auto;
}

.setting-action {
    margin-left: 20px;
}

/* Pricing Page */
.pricing {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white-color) 0%, var(--background-alt) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* FAQ Section */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--background-alt);
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background:  white;
    text-align: left;
}

.faq-item.open .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light-color);
    line-height: 1.6;
}

/* Contact Page */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white-color) 0%, var(--background-alt) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.map {
    padding: 100px 0;
    background: white;
}

.map-container {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

/* Animations and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 60px;
    }
    
    .section-title,
    .featured-title {
        font-size: 40px;
    }
    
    .cta-title {
        font-size: 50px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    .section-header-sticky {
    max-width: 740px;
    position: relative;
    top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

    .navigation {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .featured-row {
        flex-direction: column;
    }
    
    .footer-top {
        flex-wrap: wrap;
    }
    
    .footer-about {
        flex: 0 0 100%;
        margin-bottom: 40px;
    }
    
    .footer-column {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 40px;
    }
    
    .sidebar {
        width: 70px;
    }
    
    .sidebar .sidebar-header h2,
    .sidebar .sidebar-nav span,
    .sidebar .sidebar-footer span {
        display: none;
    }
    
    .sidebar .sidebar-nav i {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: 0px;
    }

    .hero-title {
        font-size: 44px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .cta-title {
        font-size: 40px;
    }
    
    .dashboard-body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .sidebar.collapsed {
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed + .main-content {
        margin-left: 0;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-left {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .accounting-summary {
        grid-template-columns: 1fr;
    }
    
    .catalog {
        padding: 120px 0 30px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .product-header {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        margin-bottom: 30px;
    }
    
    .thumbnail-images {
        justify-content: center;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .rating-summary {
        flex: 0 0 auto;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .user-navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
    }
    
    .user-navbar .nav-links.active {
        display: flex;
    }
    
    .user-navbar .nav-links li {
        margin: 10px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .invitation-actions {
        flex-direction: column;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .contact, .map {
        padding: 70px 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 350px;
    }
    
    .price {
        font-size: 36px;
    }
    
    /* Services section mobile adjustments */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    /* Nonaktifkan sticky header di mobile */
    .section-header {
        position: static;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title,
    .featured-title,
    .testimonials-title {
        font-size: 30px;
    }
    
    .cta-title {
        font-size: 30px;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
    
    .container {
        width: 95%;
    }
    
    .hero {
        padding: 110px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .invitation-card {
        padding: 30px;
    }
    
    .card-content h2 {
        font-size: 28px;
    }
    
    .welcome-section h1 {
        font-size: 28px;
    }
    
    .welcome-section p {
        font-size: 16px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .product-detail {
        padding: 70px 0 20px;
    }
    
    .product-info h1 {
        font-size: 24px;
    }
    
    .product-price .price {
        font-size: 28px;
    }
    
    .thumbnail-images {
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-tabs {
        padding: 20px;
    }
    
    .tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 40px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .map-container {
        height: 250px;
    }
    
    /* Services section mobile adjustments */
    .section-title {
        font-size: 28px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 16px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    /* Nonaktifkan sticky header di mobile kecil */
    .section-header {
        position: static;
    }
}

/* Terms Modal */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terms-modal-overlay.visible {
    opacity: 1;
}

.terms-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    z-index: 2001;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.terms-modal-overlay.visible .terms-modal {
    transform: scale(1);
}

.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-alt);
}

.terms-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Rouge Script', cursive;
}

.terms-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light-color);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.terms-modal-close:hover {
    background: var(--background-alt);
    color: var(--text-color);
}

.terms-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
}

.terms-modal-content {
    padding: 20px;
}

.terms-modal-info {
    background-color: rgba(138, 154, 91, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.terms-modal-body p {
    color: var(--text-light-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-modal-body h4 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 18px;
}

.terms-modal-body .text-sm {
    font-size: 14px;
    color: var(--text-light-color);
    margin: 0;
}

.terms-modal-body .text-sm i {
    color: var(--primary);
}

.terms-modal-body ul {
    padding-left: 20px;
    margin: 10px 0 20px;
}

.terms-modal-body ul li {
    margin-bottom: 8px;
    color: var(--text-light-color);
}

.terms-modal-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.terms-modal-body a:hover {
    text-decoration: underline;
}

.terms-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-alt);
}

/* Terms Button Custom Styling */
.terms-wrapper {
    width: 100%;
}

.terms-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.terms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 250px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    text-align: center;
    text-decoration: none;
    gap: 8px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    line-height: 1.5;
    margin: 0;
}

.terms-button:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.terms-button:active {
    transform: translateY(-1px);
}

/* Terms Accepted Indicator */
.terms-accepted-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-size: 14px;
    animation: termsAcceptedPulse 0.5s ease;
}

.terms-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.terms-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@media (max-width: 768px) {
    .terms-modal {
        width: 95%;
        border-radius: 15px;
    }
    
    .terms-modal-header,
    .terms-modal-footer {
        padding: 15px;
    }
    
    .terms-modal-content {
        padding: 15px;
    }
    
    .terms-modal-header h3 {
        font-size: 20px;
    }
    
    .terms-modal-info {
        padding: 12px;
    }
    
    .terms-accepted-indicator {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .terms-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .terms-container {
        gap: 8px;
    }
}

@keyframes termsAcceptedPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}