/* Root */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    font-family: "Oxanium", sans-serif;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.entry-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.entry-title h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.entry-title h3 {
    font-size: 16px;
    color: #007bff;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.entry-title h3 a {
    text-decoration: none;
    color: #007bff;
}

.entry-title h3:hover {
    color: #0056b3;
}

/* Alert */
.top-alert {
    /* background: linear-gradient(to right, #4facfe, #8e54e9); */
    background: linear-gradient(135deg, #4b6cb7, #182848);
    padding: 10px 20px;
    color: #fff;
    font-size: 14px;
}

.top-alert .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.alert-content img {
    width: 24px;
    height: 24px;
}

.top-alert .cta {
    background-color: #fff;
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    white-space: nowrap;
}

.top-alert .cta:hover {
    background-color: #e6e6e6;
}

.top-alert .close-alert {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .top-alert {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .alert-content p {
        font-size: 14px;
    }
}

/* Main Navigation */
.main-header {
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #4b6cb7;
    flex-shrink: 0;
}

.logo img {
    height: 38px;
}

.logo h1 {
    font-size: 22px;
    color: #000;
}

.logo a {
    text-decoration: none;
}

.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 600px;
}

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 14px;
}

.search-form button {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    border: none;
    padding: 8px 14px;
    border-radius: 0 20px 20px 0;
    color: #fff;
    cursor: pointer;
}

.search-form button i {
    font-size: 14px;
}

.login-btn,
.loged-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #4b6cb7;
    color: #4b6cb7;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s;
}

.login-btn:hover {
    background: #4b6cb7;
    color: #fff;
}

.login-btn i {
    font-size: 16px;
}

.popup-login-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    cursor: pointer;
}

.popup-login-btn:hover {
    background: #4b6cb7;
    color: #fff;
}

.popup-login-btn i {
    font-size: 16px;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #4b6cb7;
    color: #4b6cb7;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-buttons-mobile {
    display: none;
}

.reward-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #f4b400;
    color: #f4b400;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s;
}

.reward-btn:hover {
    background: #f4b400;
    color: #fff;
}

.reward-btn i {
    font-size: 16px;
}

/* Search Toggle Button - Hidden by Default */
.mobile-search-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #4b6cb7;
    cursor: pointer;
}

/* Responsive Header */
@media (max-width: 768px) {
    .search-form {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .search-form.active {
        display: flex;
    }

    .mobile-search-toggle {
        display: block;
    }

    .main-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        flex: 1 0 auto;
    }

    .logo h1 {
        font-size: 16px;
    }

    .logo img {
        width: auto;
        height: 33px;
    }

    .header-buttons {
        /* gap: 6px; */
        display: none;
    }

    .login-btn,
    .reward-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .reward-btn p {
        display: none;
    }

    .reward-btn i,
    .login-btn i {
        font-size: 14px;
    }

    .header-buttons-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
}

/* Swiper Hero */

.hero-slider {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    padding: 50px 0;
    position: relative;
}

.hero-slider .swiper {
    padding: 40px 0;
}

.hero-slider .swiper-slide {
    width: auto;
    max-width: 600px; /* ukuran maksimal tiap banner */
    margin: 0 auto;
    opacity: 0.6;
    transform: scale(0.9);
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.hero-slider .swiper-slide-active {
    transform: scale(1.05);
    opacity: 1;
    z-index: 2;
}

.hero-slider .swiper-slide img {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.hero-slider .swiper-pagination {
    text-align: center;
    margin-top: 30px;
}

.hero-slider .swiper-pagination-bullet {
    width: 32px;
    height: 8px;
    background-color: #ccc;
    opacity: 1;
    border-radius: 10px;
    margin: 0 5px;
    transition: background 0.3s;
}

@media (max-width: 576px) {
    .hero-slider .swiper-pagination-bullet {
        width: 16px;
        height: 6px;
        margin: 0 3px;
    }
}

.hero-slider .swiper-pagination-bullet-active {
    background: #007bff;
}

/* Shortlink */

/* .short-links {
    padding: 20px 0;
    background: #f9fbff;
    text-align: center;
  }
  
  .short-links .container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .short-links a {
    padding: 10px 20px;
    font-size: 15px;
    color: #007BFF;
    border: 1.5px solid #007BFF;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .short-links a:hover {
    background: linear-gradient(45deg, #007BFF, #5b8df9);
    color: white;
    border-color: transparent;
  } */

/* Shortlink */

.short-links {
    padding: 20px 0;
    background: #f9fbff;
    overflow-x: auto;
}

.short-links-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    padding: 0 15px;
}

/* .short-links-wrapper::-webkit-scrollbar {
    display: none;
  } */

.short-links a {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 10px 20px;
    font-size: 15px;
    color: #007bff;
    border: 1.5px solid #007bff;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.short-links a:hover {
    background: linear-gradient(45deg, #007bff, #5b8df9);
    color: white;
    border-color: transparent;
}

@media (max-width: 768px) {
    .short-links-wrapper {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start; /* biar item mulai dari kiri */
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 15px;
    }

    /* .short-links-wrapper::-webkit-scrollbar {
      display: none;
    } */

    .short-links a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Products */

.product-section {
    padding: 40px 0;
    background-color: #f7faff;
}

.product-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.product-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.product-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
    padding: 15px 10px;
    text-align: center;
    width: 100%;
    max-width: 200px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-card p {
    margin: 0;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        /* grid-template-columns: repeat(3, 1fr); */
        gap: 12px;
        padding: 10px;
    }

    .product-card {
        max-width: 100%; /* biar muat di kolom 1fr */
        padding: 10px 0px;
    }

    .product-card img {
        border-radius: 8px;
        margin-bottom: 6px;
    }

    .product-card p {
        font-size: 13px;
    }
}

/* Blogs Posts */

.blog-posts {
    padding: 60px 0;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.blog-posts .posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.blog-posts .posts a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.blog-posts .posts a:hover article {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    transition: 0.2s ease;
}

.blog-posts article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-posts article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.blog-posts article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-posts article h3 {
    font-size: 18px;
    margin: 15px;
    color: #1e1e1e;
}

.blog-posts article p {
    font-size: 14px;
    margin: 0 15px 20px;
    color: #666;
}

@media (max-width: 768px) {
    .blog-posts .posts {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .blog-posts .posts a {
        min-width: 85%;
        flex: 0 0 auto;
        scroll-snap-align: start;
        text-decoration: none;
        color: inherit;
    }

    .blog-posts .posts article {
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
    }

    .blog-posts .posts article img {
        height: 160px;
        width: 100%;
        object-fit: cover;
    }

    .blog-posts::-webkit-scrollbar {
        display: none;
    }
}

/* Footer top */
/* .footer-top {
    padding: 40px 0;
    background: #f0f4ff;
    font-size: 14px;
    color: #333;
  }
  
  .footer-top .container {
    margin: auto;
  }
  
  .footer-top p {
    max-height: 4.5em;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
  }
  
  .footer-top p.expanded {
    max-height: 2000px;
  } */

.footer-top {
    padding: 2rem 0;
    background: #f0f4ff;
    font-size: 0.95rem;
    color: #333;
}

#footerExcerpt {
    line-height: 1.6em;
    font-weight: 400;
}

#footerExcerpt p {
    margin: 0 0 0.75rem;
}

#footerExcerpt p:empty {
    display: none;
}

#footerExcerpt h1,
#footerExcerpt h2,
#footerExcerpt h3 {
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

#footerExcerpt blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    color: #666;
    margin: 1rem 0;
    font-style: italic;
}

#footerExcerpt ul,
#footerExcerpt ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

#footerExcerpt ul li,
#footerExcerpt ol li {
    margin-bottom: 0.4rem;
}

#footerExcerpt p:empty,
#footerExcerpt p:has(br:only-child),
#footerExcerpt h2:has(br:only-child) {
    display: none;
}

/* #toggleFooterDesc {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #toggleFooterDesc:hover {
    background-color: #555;
  }
  #toggleFooterDesc {
    margin-top: 10px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
  }
  
  #toggleFooterDesc:hover {
    background: #0056b3;
  } */

/* Footer Bottom */

.footer-bottom {
    background: #f5f5f5;
    padding: 40px 20px;
    font-size: 14px;
    color: #111;
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-left {
    flex: 1 1 300px;
}

.footer-left .logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-left .company-name {
    font-weight: bold;
    margin: 0 0 5px;
}

.footer-left .tagline {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.footer-right {
    flex: 2 1 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-right > div {
    flex: 1 1 200px;
}

.payment-methods h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: bold;
}

.payment-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-icons img {
    height: 30px;
    object-fit: contain;
}

.footer-contact p,
.footer-contact i {
    margin: 5px 0;
    color: #333;
}

.footer-social a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    font-size: 14px;
    transition: 0.3s ease;
    text-decoration: none;
}

.footer-social a.fb {
    background-color: #1877f2;
}

.footer-social a.ig {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}

.footer-social a.tw {
    background-color: #000;
}

.footer-social a.dc {
    background-color: #7289da;
}

.footer-social a.tt {
    background-color: #000;
}

.footer-social a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

@media (max-width: 480px) {
    .footer-social {
    }
}

/* Footer Slide */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 25;
}

.side-menu aside {
    margin-top: 50px;
}

.side-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    margin-bottom: 25px;
    font-size: 13px;
    position: relative;
}

.side-menu a .menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    transition: background 0.3s;
}

.side-menu a.active .menu-icon {
    background: linear-gradient(
        135deg,
        #4b6cb7,
        #182848
    ); /* gradasi biru keren */
}

.side-menu a.active::after {
    content: "";
    width: 30px;
    height: 3px;
    background: #4b6cb7; /* warna biru underline */
    position: absolute;
    bottom: -6px;
    border-radius: 2px;
}

.side-menu i {
    font-size: 18px;
    color: #333;
}

.side-menu a.active i {
    color: #fff; /* icon jadi putih di atas gradasi */
}

.logout-button {
    cursor: pointer !important;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    color: #374151;
    transition: background 0.2s;
}

.logout-button:hover {
    background-color: #f3f4f6;
}

.logout-button .menu-icon {
    margin-right: 10px;
}

/* Sembunyikan di layar kecil */
.logout-desktop-only {
    display: none;
}

@media screen and (min-width: 768px) {
    .logout-desktop-only {
        display: block;
    }
}

@media (max-width: 1024px) {
    .side-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: space-around;
        padding: 0;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    .side-menu aside {
        margin-top: 0;
        display: flex;
        width: 100%;
        justify-content: space-around;
    }

    .side-menu a {
        margin-bottom: 0;
        font-size: 11px;
    }

    .side-menu a .menu-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 2px;
    }

    .side-menu a.active::after {
        bottom: -4px;
    }
}

/* Back top */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    #backToTop {
        display: none !important;
    }
}

/* Popup Login */
/* Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.5); /* abu gelap transparan */
    z-index: 998;
    display: none;
}

/* Popup Box */
.popup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    width: 90%;
    max-width: 400px;
    z-index: 999;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Close button */
.close-popup {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 20px;
    cursor: pointer;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.auth-form input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.auth-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.auth-form button:hover {
    background-color: #0056b3;
}

.switch-form {
    text-align: center;
    font-size: 14px;
}

.switch-form a {
    color: #007bff;
    text-decoration: none;
}

/* Transactaion */
.transaction-section {
    padding: 2rem 0;
    background: #f9f9f9;
}

.transaction-box {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.status-label {
    font-weight: bold;
    color: red;
}

.status-label.dikemas {
    color: #e74c3c;
}

.transaction-items .item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.item img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 1rem;
}

.item-info {
    flex-grow: 1;
}

.item-price {
    font-weight: bold;
}

.badge {
    background: #fdd;
    color: #d00;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
}

.transaction-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.total-price {
    font-size: 1.2rem;
    color: #e74c3c;
}

.transaction-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary{
    text-decoration: none;
}

.btn-secondary {
    background: #eee;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination .page {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .page.active {
    background: #ff5722;
    color: white;
    border-color: #ff5722;
}

/* Category Product */
.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card a:hover .product-title {
    color: #111;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
    color: #333;
}

.product-price {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

/* Single Product */
.breadcrumb {
    padding: 15px;
    font-size: 14px;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.product-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .product-image img {
        max-width: 100%;
    }
}

.single-product-price {
    display: block;
}

.single-product-price h3 {
    font-size: 32px;
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info .description {
    color: #444;
    font-size: 16px;
}

.product-options {
    margin-top: 30px;
}

.variant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.variant {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease;
    font-size: 14px;
}

.variant:hover {
    border-color: #6c63ff;
    background-color: #f3f0ff;
}

.variant.active {
    border-color: #6c63ff;
    background-color: #ede9ff;
    font-weight: bold;
}

.currency-selector {
    margin-top: 20px;
}

.currency-list {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.currency-btn {
    background-color: #f4f4f4;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.currency-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    width: max-content;
    margin-top: 20px;
}

.qty-btn {
    background-color: #f4f4f4;
    color: #000;
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
}

.qty-btn:hover {
    background-color: #e0e0e0;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 16px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-card {
    flex: 0 0 calc(50% - 6px);
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #fff;
}

.payment-card input {
    display: none;
}

.payment-card .card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-card img {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.payment-card .method-name {
    flex: 1;
    font-weight: bold;
}

.payment-card .price {
    font-weight: bold;
    color: #000;
}

.payment-card input[type="radio"]:checked + .card-content {
    border-color: #2196f3;
    background-color: #e3f2fd;
    border-radius: 8px;
}

.payment-card input[type="radio"]:checked ~ .card-content {
    border-color: #2196f3;
}

@media (max-width: 600px) {
    .payment-card {
        flex: 0 0 100%;
    }
}

.btn-order {
    width: 100%;
    margin-top: 10px;
    padding: 10px 20px;
    background: #191e19;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-order:hover {
    background: #007bff;
}

.share-product a img {
    width: 32px;
    margin-right: 8px;
}

.product-tabs {
    margin-top: 40px;
    font-family: "Segoe UI", sans-serif;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tabs .tab {
    padding: 12px 24px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 8px;
}

.tabs .tab:hover {
    background: #eaeaea;
}

.tabs .tab.active {
    background: #ffffff;
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #fff;
}

.tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 0 0 8px 8px;
}

.tab-content.active {
    display: block;
}

.review-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.review-item .gravatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
}

.review-body {
    flex: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.review-header .stars {
    color: #ffcc00;
    font-size: 14px;
}

.review-header .review-date {
    font-size: 12px;
    color: #999;
}

.review-note {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-top: 20px;
}

.review-form {
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin-top: 20px;
}

.review-form .form-group {
    margin-bottom: 16px;
}

.review-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.review-form select,
.review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.review-form select:focus,
.review-form textarea:focus {
    border-color: #2563eb;
}

.review-form button {
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
}

.review-form button:hover {
    background-color: #1d4ed8;
}

.review-preview {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.review-preview h4 {
    color: #856404;
    font-size: 18px;
    margin-bottom: 10px;
}

.review-preview p {
    margin: 5px 0;
    color: #856404;
}

.review-preview strong {
    color: #333;
}

.related-products {
    margin: 40px 0;
    font-family: "Segoe UI", sans-serif;
}

.related-products h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.related-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-item .title {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.related-grid a {
    text-decoration: none;
}

.related-item .price {
    font-size: 14px;
    color: #ff5722;
    font-weight: 500;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cart */
/* Slide Panel & Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 99;
}
.cart-overlay.active {
    display: block;
}
.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}
.cart-panel.active {
    right: 0;
}
.cart-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Cart Items */
.cart-items {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    font-weight: bold;
    margin: 0;
}
.cart-item-variant {
    font-size: 0.9em;
    color: #666;
    margin: 4px 0;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}
.qty-btn {
    background-color: #eee;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.cart-item-subtotal {
    font-weight: 500;
    margin-top: 4px;
}
.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    margin-top: 6px;
    font-size: 0.85em;
}

/* Cart Footer */
.cart-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    background: #fff;
    position: sticky;
    bottom: 0;
}
.cart-total-label {
    font-weight: bold;
    margin-bottom: 12px;
}

.checkout-btn {
    display: block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #218838;
}

/* Rewards Point */
.reward-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.reward-header {
    text-align: center;
    margin-bottom: 20px;
}

.reward-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.reward-header small {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
    display: block;
}

.header-navb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.nav-link {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav-link:hover {
    color: #007bff; /* Mengubah warna saat hover */
}

.reward-status {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-style: italic;
}

.reward-status.plus {
    color: green;
}

.reward-status.minus {
    color: red;
}

.total-point {
    font-size: 28px;
    font-weight: bold;
    color: #ff9800;
    margin: 0; /* hilangkan space tambahan */
}

.total-point span {
    font-size: 14px;
    color: #888;
    display: block; /* biar tampil di bawah angka tapi tetap rapat */
    margin-top: 2px;
}

.reward-info-note {
    font-size: 14px;
    color: #555;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.reward-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reward-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 10px;
}

.reward-icon img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.reward-info {
    flex: 1;
}

.reward-title {
    font-weight: bold;
}

.reward-detail {
    font-size: 13px;
    color: #666;
}

.reward-value {
    font-weight: bold;
    font-size: 16px;
}

.reward-value.plus {
    color: green;
}

.reward-value.minus {
    color: red;
}

/* Reward detail */

/* Checkout */
.checkout-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.checkout-container h3 {
    margin-bottom: 15px;
}

.login-checkout-box {
    text-align: right;
    margin-bottom: 20px;
}

.login-checkout-box button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.login-popup.hidden {
    display: none;
}

.login-popup-content {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-login {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}
.close-login:hover {
    color: #333;
}

.login-popup-content h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.login-popup-content input[type="text"],
.login-popup-content input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.login-popup-content input:focus {
    border-color: #007bff;
    outline: none;
}

.login-popup-content .login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-content: center;
    border-radius: 10px;
}
.login-popup-content .login-btn:hover {
    background-color: #0056b3;
}

.checkout-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item .item-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.checkout-item .item-variant {
    font-size: 14px;
    color: #555;
    margin-bottom: 2px;
}

.checkout-item .item-subtotal {
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.billing-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.billing-form input,
.billing-form textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.billing-form input:focus,
.billing-form textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    outline: none;
}

.billing-form textarea {
    resize: vertical;
    min-height: 100px;
}

.secure-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-top: 20px;
    background-color: #f4f4f4;
    padding: 12px 16px;
    border-radius: 8px;
}

.secure-info i {
    color: #28a745;
    margin-right: 10px;
    font-size: 16px;
}

.submit-order-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.submit-order-btn:hover {
    background-color: #2196f3;
}

/* Invoice */
.invoice-section {
    padding: 40px 20px;
    background-color: #f4f7fb;
    font-family: "Inter", sans-serif;
}

.invoice-box {
    background: #fff;
    max-width: 600px;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.invoice-icon {
    width: 80px;
    margin-bottom: 20px;
}

.invoice-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.invoice-box .payment-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.payment-amount h1 {
    color: #333;
    margin: 0;
}

.copy-btn {
    margin-top: 10px;
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
}

.order-detail-box {
    text-align: left;
    margin-top: 30px;
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.order-row .label {
    font-size: 13px;
    color: #888;
    margin: 0 0 4px;
}

.status-badge {
    background-color: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
}

.status-unpaid {
    background-color: #e3342f;
    color: white;
}

.status-expired,
.status-nonaktif {
    background-color: gray;
    color: white;
}

.status-proses,
.status-processing,
.status-confirmation {
    background-color: #ffed4a;
    color: black;
}
.status-completed,
.status-complete {
    background-color: #38c172;
    color: white;
}
.status-refund {
    background-color: #b8c2cc;
    color: white;
}

.sub-title {
    text-align: center;
    margin: 20px 0 10px;
    font-size: 16px;
    color: #333;
}

.confirm-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
}

.confirmed-btn {
    width: 100%;
    padding: 10px;
    background-color: #ccc;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    margin-top: 20px;
    cursor: not-allowed;
}

.invoice-note {
    font-size: 13px;
    color: #777;
    margin-top: 25px;
    line-height: 1.6;
}

.invoice-note a {
    color: #3366cc;
    text-decoration: underline;
}

/* Roulette*/
.wheel-wrapper {
    position: relative;
    width: 500px;
    margin: 50px auto;
    text-align: center;
}

.pointer {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%) rotate(90deg);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #333;
}

#spin {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#spin i {
    pointer-events: none;
    margin-right: 5px;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border: 2px solid #333;
    text-align: center;
    z-index: 1000;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    cursor: pointer;
}

/* User Profile */
.bgc-container {
    display: flex;
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    gap: 30px;
    font-family: Arial, sans-serif;
}

.bgc-sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #e5e5e5;
    padding-right: 20px;
}

.bgc-sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.bgc-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bgc-sidebar-menu li {
    margin-bottom: 12px;
}

.bgc-sidebar-menu li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: color 0.2s;
}

.bgc-sidebar-menu li a i {
    margin-right: 8px;
    color: #888;
    width: 18px;
    text-align: center;
}

.bgc-sidebar-menu li a:hover {
    color: #ee4d2d;
}

.bgc-sidebar-submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.bgc-sidebar-submenu li a {
    font-size: 14px;
    color: #555;
    display: block;
    padding: 6px 0;
    text-decoration: none;
}

.bgc-sidebar-submenu li a:hover {
    color: #3498db;
}
.bgc-sidebar-submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.bgc-sidebar-submenu li a {
    font-size: 14px;
    color: #555;
    display: block;
    padding: 6px 0;
    text-decoration: none;
}

.bgc-sidebar-submenu li a:hover {
    color: #3498db;
}

.bgc-content {
    flex: 1;
    background-color: #fff;
    padding: 20px 30px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.bgc-section-title {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: bold;
    color: #333;
}

.bgc-profile-header {
    text-align: left;
    margin-bottom: 20px;
}

.bgc-profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.bgc-form-group {
    margin-bottom: 20px;
}

.bgc-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}

.bgc-form-group input {
    width: 100%;
    padding: 10px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.bgc-form-actions {
    margin-top: 20px;
}

.bgc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bgc-btn-edit {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: #fff;
}

.bgc-btn-edit:hover {
    background-color: #2980b9;
}

.bgc-form-group input[disabled] {
    background-color: #f2f2f2;
    color: #7f8c8d;
    border: 1px solid #ccc;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.bgc-form-group input[disabled]:hover {
    background-color: #e0e0e0;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.username-notice {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .bgc-container {
        flex-direction: column;
    }

    .bgc-form-group input {
        padding: 10px 0px;
    }

    .bgc-sidebar {
        margin-bottom: 20px;
        border-right: none;
    }

    .bgc-profile-img {
        margin: 0 auto 20px auto;
    }

    .bgc-form-actions {
        text-align: center;
    }
}

/* Single Posts */
.bgc-single-posts-wrapper {
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    font-family: "Segoe UI", sans-serif;
}

.bgc-single-posts-container {
    max-width: 760px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Breadcrumb */
.bgc-single-posts-breadcrumb {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1.5rem;
}
.bgc-single-posts-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}
.bgc-single-posts-breadcrumb a:hover {
    text-decoration: underline;
}

/* Meta */
.bgc-single-posts-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}
.bgc-single-posts-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.bgc-single-posts-author {
    font-weight: 600;
}

/* Featured Image */
.bgc-single-posts-featured img {
    width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Title */
.bgc-single-posts-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Content */
.bgc-single-posts-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: #333;
}

.bgc-single-posts-content p:has(br:only-child) {
    display: none;
}

.bgc-single-posts-content h1,
.bgc-single-posts-content h2,
.bgc-single-posts-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.bgc-single-posts-content h1 {
    font-size: 1.75rem;
}
.bgc-single-posts-content h2 {
    font-size: 1.5rem;
}
.bgc-single-posts-content h3 {
    font-size: 1.25rem;
}
.bgc-single-posts-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    color: #666;
    margin: 1.5rem 0;
    font-style: italic;
}
.bgc-single-posts-content ul,
.bgc-single-posts-content ol {
    margin: 1rem 0 1rem 1.5rem;
    color: #444;
}
.bgc-single-posts-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}
.bgc-single-posts-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

/* Comment Form */
.bgc-single-posts-comments {
    background-color: #ffffff;
    padding: 32px 16px;
    border-radius: 12px;
    max-width: 700px;
    margin: 40px auto;
}

.bgc-single-posts-comments h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #2c3e50;
}

/* Form Group */
.bgc-single-posts-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.bgc-single-posts-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

.bgc-single-posts-form-group input,
.bgc-single-posts-form-group textarea {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.bgc-single-posts-form-group input:focus,
.bgc-single-posts-form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

/* Tombol */
.bgc-single-posts-btn {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.bgc-single-posts-btn:hover {
    background-color: #2980b9;
}

/* Responsif */
@media (max-width: 480px) {
    .bgc-single-posts-comments {
        padding: 24px 12px;
    }

    .bgc-single-posts-btn {
        width: 100%;
    }
}

/* Comment list */
.bgc-single-posts-comments-list {
    max-width: 700px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

.bgc-single-posts-comments-list h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.bgc-single-posts-comment {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.bgc-single-posts-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bgc-single-posts-comment-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.bgc-single-posts-comment-header strong {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.bgc-single-posts-comment-header span {
    font-size: 12px;
    color: #7f8c8d;
}

.bgc-single-posts-comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Balasan komentar (hierarki 1 level) */
.bgc-single-posts-comment.reply {
    margin-left: 40px;
    background-color: #eef6ff;
    border-left: 4px solid #3498db;
}

/* Related Posts */
.bgc-single-posts-related {
    margin-top: 4rem;
}
.bgc-single-posts-related h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.bgc-single-posts-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.bgc-single-posts-related-item {
    flex: 1 1 48%;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease-in-out;
}
.bgc-single-posts-related-item:hover {
    transform: translateY(-2px);
}
.bgc-single-posts-related-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.bgc-single-posts-related-item h4 {
    font-size: 1rem;
    padding: 0.8rem;
}
.bgc-single-posts-related-item h4 a {
    text-decoration: none;
    color: #2c3e50;
}
.bgc-single-posts-related-item h4 a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .bgc-single-posts-container {
        padding: 1rem;
    }

    .bgc-single-posts-related-list {
        flex-direction: column;
    }

    .bgc-single-posts-related-item {
        flex: 1 1 100%;
    }
}

/* Ticket */
.bgc-ticket-section {
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow-x: auto;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.ticket-header input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 200px;
    font-size: 14px;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ticket-table th,
.ticket-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.ticket-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.ticket-table tr:hover {
    background-color: #f9f9f9;
}

.status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status.closed {
    background: #e74c3c;
    color: #fff;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.pagination-controls button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.pagination-controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination-controls .page-info {
    font-size: 14px;
    color: #555;
}

/* Ticket Detail */
.ticket-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px;
    max-width: 100%;
}

.ticket-sidebar {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.ticket-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.ticket-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticket-sidebar li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.ticket-chat {
    flex: 3;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.chat-history {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 12px;
    clear: both;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-bubble.owner {
    background-color: #dbeafe;
    float: right;
    text-align: right;
    border-top-right-radius: 0;
}

.chat-bubble.operator {
    background: #f9fafb;
    align-self: flex-end;
}

.chat-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.chat-content {
    font-size: 14px;
    color: #333;
}

.chat-content p {
    margin: 4px 0;
    line-height: 1.4;
    text-align: left;
}

.chat-content ol,
.chat-content ul,
.chat-content h1,
.chat-content h2,
.chat-content h3 {
    text-align: left;
}

/* Hilangkan margin jika <p> kosong atau hanya berisi <br> */
.chat-content p:empty,
.chat-content p:has(br:only-child) {
    margin: 0;
    height: 4px;
}

.chat-reply {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.chat-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-actions input[type="file"] {
    font-size: 14px;
}

.chat-actions button {
    padding: 8px 20px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Ticket Submit */
.ticket-submit-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ticket-submit-form .form-group {
    margin-bottom: 20px;
}

.ticket-submit-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.ticket-submit-form input[type="text"],
.ticket-submit-form input[type="email"],
.ticket-submit-form select,
.ticket-submit-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.ticket-submit-form input[readonly] {
    background-color: #e9ecef;
    color: #555;
}

#editor {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.submit-btn,
.cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: #fff;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

.cancel-btn:hover {
    background-color: #c8c8c8;
}

@media (max-width: 600px) {
    .ticket-submit-container {
        padding: 16px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .submit-btn,
    .cancel-btn {
        width: 100%;
        text-align: center;
    }
}