/* Reset and Base Styles - index.html */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f4b8e0;
    --secondary-color: #839ae4;
    --accent-color: #84daeb;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --hover-color: #5d80f3;
    --another-color: #f9ecc5;
    --another-color1: #b8dddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none; /* default hidden */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

  /* Loading Overlay */
  #loading-overlay{
    position: fixed; inset: 0;
    display: none; /* default tersembunyi */
    justify-content: center; align-items: center;
    background: rgba(0,0,0,0.45);
    z-index: 9999; /* di atas elemen lain */
    backdrop-filter: blur(2px);
  }
  #loading-overlay.show{ display: flex; }

  .loading-box{
    background:#fff; padding:20px 28px; border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    text-align:center; min-width: 220px;
  }
  .spinner{
    width:42px; height:42px; margin:0 auto 10px;
    border:4px solid #e5e7eb; border-top-color:#3b82f6;
    border-radius:50%; animation:spin 0.85s linear infinite;
  }
  .loading-text{ margin:0; color:#111; }
  @keyframes spin{ to{ transform: rotate(360deg); } }

/* Box popup */
.popup-box {
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.popup-box.show {
  transform: scale(1);
  opacity: 1;
}

.popup-box.success {
  border-top: 6px solid #4CAF50; /* hijau sukses */
}

.popup-box.error {
  border-top: 6px solid #f44336; /* merah error */
}

/* Tombol tutup */
.popup-box button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: var(--secondary-color);
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.popup-box button:hover {
  background: var(--hover-color);
}


/* Fade-in untuk header */
header {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

header.show {
  opacity: 1;
  transform: translateY(0);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow: auto;
}

body::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 0.65rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero { 
    background-image: url('assets/perusahaan/hero.jpg');
    color: var(--text-white);
    padding: 150px 0 200px;
    text-align: center;
    position: relative;
    overflow: hidden;

    /* Biar gambar responsif */
    background-size: cover;      /* agar gambar memenuhi area */
    background-position: center; /* posisi gambar tetap center */
    background-repeat: no-repeat; /* supaya tidak tile */
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-top: 5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center; 
}

.cta-button:hover {
    background: #5d80f3;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image iframe {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.feature span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Products Section */
.products {
    padding: 75px 0;
    background: var(--bg-white);
}

.products h2 {
    font-size: 2.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: stretch;
    align-items: stretch;
    position: relative;
}

.products-grid .cta-button {
    justify-self: center;
    margin-top: 2rem;
}

.product-display{
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image .product-img {
    overflow: hidden;
}

.product-img img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img{
    transform: scale(1.1);
}

.product-img:hover {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    min-height: 2.5em;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    min-height: 3em;
}

.detail {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
}

.detail:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.submit-btn {
    width: 100%;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

/* Saluran Penjualan */
.sales-channels {
    padding: 80px 0 30px;
    background: var(--bg-light);
    overflow: hidden;
}

.channels-container-full {
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
}

.channels-wrapper {
    width: 100%;
    overflow: hidden;
}

.channels-auto-scroll {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    width: max-content;
    animation: scroll-left 60s linear infinite;
}

.channels-auto-scroll img {
    height: 80px;
    width: 120px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin: 0 1rem;

    pointer-events: none;     /* tidak bisa klik kanan / drag */ 
    -webkit-user-drag: none;  /* nonaktif drag chrome dan safari */
}

.channels-auto-scroll img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero {
        padding: 100px 0 150px;  /* atur ulang padding biar proporsional */
        background-position: center top; /* lebih fokus ke bagian atas gambar */
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero {
        padding: 80px 0 100px;
        background-position: center; /* tetap center */
    }
}

/* produk.html */
.products-page {
    padding: 80px 0;
    background: var(--bg-white);
    padding-bottom: 45px;
}

.products-page h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1.65rem;
    color: var(--text-dark);
}

.products-page .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.product-card .cta-button .button-group{
    margin-top: 1.5rem;
    display: flex;
    align-self: center;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card .cta-button:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Container for multiple buttons to appear side by side */
.product-info .button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.product-info .button-group .cta-button {
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 200px;
}

/* Responsive for Products Page */
@media (max-width: 768px) {
    .products-page {
        padding: 60px 0;
        padding-bottom: 35px;
    }
    
    .products-page h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .product-features {
        padding: 60px 0;
    }
    
    .product-features h2 {
        font-size: 2rem;
    }
    
    .product-features .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3  {
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer-section p {
    color: #CCCCCC;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: var(--transition);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 100px 0 100px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .about-content h2,
    .container h2 {
        font-size: 2.3rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .about,
    .products,
    .contact {
        padding: 60px 0;
    }
    
    .about-content h2,
    .products h2,
    .contact h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* where-buy */

.online-store {
    padding: 100px 0;
    padding-bottom: 50px;
    background: var(--bg-white);
}

.online-store h2 {
     font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1.65rem;
    color: var(--text-dark);
}

.section-buy {
    text-align: center;
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: bolder;
}

.store-link {
    display: flexbox;
    padding: 15px 25px;
    text-align: center;
}

.store-link img {
    margin: 0 30px;
    width: 165px;
    transition: var(--transition);
    
}

.store-link img:hover {
    transform: scale(1.2);
}

.store-retail {
    display: flexbox;
    text-align: center;
    margin-top: 15px;
    align-items: center;
}

.store-retail img {
    margin: 10px;
    
}

.store-souvenir {
    display: flexbox;
    text-align: center;
    margin-top: 15px;
    align-items: center;
}

.store-souvenir img {
    margin: 10px;
    padding: 0 20px;
}

/* about.html */

.about-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;

    /* Biar gambar responsif */
    background-size: cover;      /* agar gambar memenuhi area */
    background-position: center; /* posisi gambar tetap center */
    background-repeat: no-repeat; /* supaya tidak tile */
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/perusahaan/owner\ hero.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.25;
    z-index: 1;

    background-size: cover;      /* agar gambar memenuhi area */
    background-position: center; /* posisi gambar tetap center */
    background-repeat: no-repeat; /* supaya tidak tile */
}

.about-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-hero-content {
    padding-right: 2rem;
}

.about-hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-hero-image {
    position: relative;
    overflow: hidden;

}

.about-hero-image img {
    width: 100%;
    height: 225px;
    object-fit: contain;
    transition: var(--transition);
}

.about-hero-image:hover img {
    transform: scale(1.01);
}

/* Responsive for About Hero */
@media (max-width: 992px) {
    .about-hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-hero-content {
        padding-right: 0;
    }
    
    .about-hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        padding: 100px 0 10px;
    }
    
    .about-hero-content h1 {
        font-size: 3.5rem;
    }
    
    .about-hero-content p {
        font-size: 1rem;
    }
    
    .about-hero-image img {
        height: 200px;
        
    }
}

/* Tablet */
@media (max-width: 992px) {
    .about-hero-image {
        height: 220px; /* sesuaikan agar lebih pas di tablet */
    }
}

/* Profil Perusahaan */

.profil-perusahaan {
    padding: 50px 0;
    background: var(--bg-light);
}

/* Video Centering Styles */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
}

.video-container iframe,
.video-container video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Center video in profil section */
.profil-wrapper .video-container {
    grid-column: 1 / -1;
    justify-self: center;
}

/* Responsive video */
@media (max-width: 768px) {
    .video-container iframe {
        width: 100%;
        max-width: 560px;
        height: 315px;
    }
}

/* Milestone */

.milestone {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
}

.milestone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.milestone-item.reverse {
  flex-direction: row-reverse;
}

.milestone-content {
  flex: 1;
}

.milestone-content h2 {
  font-size: 26px;
  color: var(--text-dark);
  
}

.milestone-content h1 {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 15px;
}

.milestone-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.milestone-image img {
  max-width: 400px;
  width: 100%;
  border: 5px solid #ddd;   /* border di sekeliling gambar */
  border-radius: 12px;      /* sudut membulat */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);

  -webkit-user-drag: none;
  pointer-events: none;
}

/* Tablet */
@media (max-width: 992px) {
  .milestone-item {
    flex-direction: column;
    text-align: center;
  }

  .milestone-item.reverse {
    flex-direction: column;
  }

  .milestone-image img {
    max-width: 100%;
  }
}

/* Profil Singkat Owner */
.owner-section {
  max-width: 1100px;
  margin: 60px auto; /* dikurangi jarak default */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px;
}

.owner-photo {
  flex: 1 1 50px;
  text-align: center;
}

.owner-photo img {
  width: 100%;
  max-width: 320px; /* lebih kecil agar pas di mobile */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.owner-info {
  flex: 2 2 150px;
  text-align: left;
}

.owner-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.owner-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 15px;
}

.owner-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 12px;
}

.quote {
  font-style: italic;
  font-size: 1rem;
  color: #555;
  border-left: 4px solid var(--secondary-color);
  padding-left: 10px;
  display: inline-block;
}

/* Responsif Mobile */
@media (max-width: 768px) {
  .owner-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;        /* lebih rapat antar elemen */
    margin: 40px 15px;/* jarak atas bawah lebih kecil */
    padding: 15px;
  }

  .owner-info {
    text-align: center;
  }

  .owner-photo img {
    max-width: 260px; /* biar tidak terlalu besar di layar kecil */
  }

  .quote {
    border-left: none;
    border-top: 2px solid var(--secondary-color);
    padding-top: 8px;
    padding-left: 0;
    margin-top: 12px;
    display: block;
  }
}

/* Company Value */
.company-value {
    padding: 50px 0;
    background: var(--bg-light);
}

.company-value .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.company-value .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

/* Border layout: 3 on top, 2 on bottom */
.value-card:nth-child(1),
.value-card:nth-child(2),
.value-card:nth-child(3),
.value-card:nth-child(4),
.value-card:nth-child(5) {
    border-top: 3px solid var(--secondary-color);
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--text-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(131, 154, 228, 0.3);
}

.value-icon i {
    font-size: 2rem;
    color: var(--bg-light);
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive for Company Values */
@media (max-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Adjust border layout for 3 columns */
    .value-card:nth-child(1),
    .value-card:nth-child(2),
    .value-card:nth-child(3),
    .value-card:nth-child(4),
    .value-card:nth-child(5)
    {
        border-top: 3px solid var(--secondary-color);
        border-bottom: 2px solid var(--border-color);
    }
    
}

@media (max-width: 768px) {
    .company-value {
        padding: 35px 0;
    }
    
    .company-value .section-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem 1rem;
    }
    
    /* Adjust border layout for 2 columns */
    .value-card:nth-child(1),
    .value-card:nth-child(2),
    .value-card:nth-child(3),
    .value-card:nth-child(4),
    .value-card:nth-child(5) {
        border-top: 3px solid var(--secondary-color);
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    /* All cards have both top and bottom borders for single column */
    .value-card {
        border-top: 3px solid var(--secondary-color);
        border-bottom: 3px solid var(--secondary-color);
        border-left: 2px solid var(--border-color);
        border-right: 2px solid var(--border-color);
    }
}

/* Mission */
*{
    box-sizing:border-box;
}

.mission{
    position:relative;
    overflow:hidden;
    padding:52px 20px;
    padding-bottom: 80px;
    background-color: var(--bg-light);
}

.section-eyebrow{
    display:inline-flex;
    gap:.5rem;align-items:center;
    color:var(--bg-white);
    font-weight:601;
    background: var(--secondary-color);
    padding:.35rem .6rem;
    border-radius:999px;
    font-size: 15px;
}

.grid{
    display:grid;
    gap:16px;
    grid-template-columns:repeat(12,1fr);
    margin-top: 25px;
}

.card{
    grid-column:span 12;
    background:var(--card);
    border: 1px solid #d1d5db;
    border-radius:18px;
    padding:22px;
    box-shadow:var(--shadow);
    transition: transform .25s ease, border-color .25s ease;
}

.card:hover{
    transform:translateY(-3px);
    border-color:var(--secondary-color);
}

.card h3{
    margin:.15rem 0 .25rem;
    font-size:1.1rem;
    color:var(--text);
}

.card p{
    margin:0;
    color:var(--muted);
}

@media (min-width:640px){.card{grid-column:span 6}}
@media (min-width:960px){.card{grid-column:span 4}}

/* Khusus untuk card tengah */
.card.centered{
    grid-column:span 12;
    justify-self:center;
    max-width:420px
}

/* Footer hover */

ul li i a {
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

ul li a:hover {  
      color: gray;/* berubah jadi emas saat hover */
      text-decoration: underline; /* garis bawah saat hover */
}

ul li i {
  margin-right: 8px; /* beri jarak antara ikon dan teks */
}

/* Tombol Bahasa */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: #ff914d;
  color: white;
  border-color: #ff914d;
}

.lang-btn.active {
  background: #ff914d;
  color: white;
  font-weight: bold;
  border-color: #ff914d;
}

/* Responsif */
@media (max-width: 768px) {
  .lang-switch {
    justify-content: center;
    margin: 10px 0;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
}

/* keranjang produk cakes */

/* Popup dasar */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Popup keranjang */
.cart-popup-box {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  max-width: 500px;
  width: 95%;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s ease-in-out;
}

.cart-popup-box.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cart-popup-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  resize: none;
}

.cart-item span {
  flex: 1;
  font-weight: 600;
}

/* keranjang scroll */
#cartItems {
  overflow-y: auto;
  padding-right: 5px;
  margin-bottom: 15px;
  transition: max-height 0.3s ease;
}

#cartItems::-webkit-scrollbar {
  width: 6px;
}
#cartItems::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}
#cartItems::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* responsif keranjang scroll */

@media (max-width: 600px) {
  #cartItems {
    max-height: 200px !important;
  }
}

@media (max-width: 1024px) {
  #cartItems {
    max-height: 250px !important;
  }
}


.quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-controls button {
  padding: 5px 10px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.quantity-controls button:hover {
  background: var(--hover-color);
}

.quantity-controls input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px;
}

.remove-btn {
  background: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.remove-btn:hover {
  background: #d32f2f;
}

#cartForm input, 
#cartForm textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
}

#cartForm .submit-btn {
  background: var(--secondary-color);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#cartForm .submit-btn:hover {
  background: var(--hover-color);
}

/* Popup sukses */
.popup-box.success {
  border-top: 6px solid #4CAF50;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Responsif */
@media (max-width: 1024px) {
  .cart-popup-box {
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  .cart-popup-box {
    width: 95%;
    padding: 15px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .quantity-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ===========================
   POPUP NOTIFIKASI
   =========================== */
/* Overlay Gelap */
#success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#success-popup.show {
  opacity: 1;
  visibility: visible;
}

#success-popup.show .popup-box {
  transform: scale(1);
  opacity: 1;
}

/* Tombol */
.popup-box button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #4CAF50;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s;
}

.popup-box button:hover {
  background: #45a049;
}
