* {

  margin: 0;
  box-sizing: border-box;
}


:root {
  --bg: #000000; 
  --card-bg: #000000; 
  --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.08); 
  --accent: #ff3b30; 
  --accent-dark: #d52e25;
  --border: #e5e5ea;
  --nav-height: 72px;
  --max-width: 1200px;
  --radius-lg: 18px;
}

body {
  font-family: 'poppins', sans-serif;
  min-height: 100vh;
  background: #001447;
  align-items: center;

}

h1 { text-align: center; padding: 20px; color: #333; }
h2 { text-align: center; padding: 20px; color: #333; }
p { text-align: center; padding: 20px; color: #333; }
h3 { text-align: center; padding: 20px; color: #333; }


 /* TOP BAR */
.page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
}
.top-bar {
 background: #000 !important; /* Stays black */
  color: #ffffff; /* Changed to white so text is visible */
  font-size: 0.8rem;
}
/* Also need to ensure links are visible */
.top-link {
    background: #000;
    color: #ffffff; /* Changed to white */
    text-decoration: none;
    transition: color 0.3s;
}
.top-link:hover {
    color: #999;
    transition: color 0.2s ease-in-out;
}
/* Ensure links inside the top bar are also white */
.top-bar .top-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}
div .top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 1.2rem;
}

div .top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: #000; /* Added this */
}

span.lang-switch {
color: #ffffff;
}

.top-bar-right {
  background: #000 !important;
}



/* NAVBAR STYLES */

div.container.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 1.2rem;
  
  /* Added/Confirmed: Ensures the inner container is explicitly black */
  background: #000; 
}
.navbar{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    background: linear-gradient(90deg,
    hsl(0, 0%, 100%) 0%,
    hsl(237, 68%, 30%) 50%,
    hsl(237, 68%, 30%) 50%,
    hsl(0, 0%, 100%) 100%
  ) !important;
  
    box-shadow: 0 10px 20px #000;
    /* Glassmorphism Effect */
    backdrop-filter: blur(10px);
    z-index: 999;
}
.navbar-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;   
}
.navbar-logo{
    font-size: 2rem;
    font-weight: 600;
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.navbar-container .navbar-menu{
    display: flex;
    text-align: center;
    gap: 1.5rem;
    list-style: none;
}
.navbar-container .navbar-menu li a{
    text-decoration: none;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 3px 20px !important;
    border-radius: 20px !important;
    border: 2px solid transparent !important;
    transition: all 0.7s ease;
    white-space: nowrap;
}
.navbar-container .navbar-menu li a:hover,
.navbar-container .navbar-menu li a {
    color: #162530;
    background: rgba(188, 212, 229, 0.8);
    border: 2px solid #ffffff;   
}

.navbar-toggle{
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #ffffff; 
    transition: all 0.3s ease-in-out;
}


/*RESPONSIVE STYLE */
@media (max-width:880px) {
    .navbar {
        backdrop-filter: none;
    }
    .navbar-container .navbar-menu{
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width:  250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }

    .navbar-container .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle{
        display: block;
        z-index: 999;
    }

    .navbar-toggle.active .bar:nth-child(2){ 
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg); 
    }

    .navbar-toggle.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);}
}

@media (max-width:480px){
    .navbar-container{
        padding: 0 1rem;
    }
    .navbar-logo{
        font-size: 1.7rem;
    }
    .navbar-container .navbar-menu li a{
        font-size: 1.2rem;
        padding: 3px 15px;
    }
}



header {
 
  padding: 24px;
}

#products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px;
}

    /* === CARD barang jualan affiliate CATEGORY ==== */

.card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.buy-btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 0;
  background: rgb(142, 21, 21);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.buy-btn:hover {
  background: rgb(120, 18, 18);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.card a {
  width: 100%;
  padding: 12px 0;
  background: rgb(142, 21, 21);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;

  margin-top: auto;
}
.card a:hover {
  background: rgb(120, 18, 18);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card a:active {
  transform: scale(0.97);
}

.card h3 {
  min-height: 48px; /* sesuaikan */
}

#card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 12px;
}

@media (max-width: 480px) {
  #card-container {
    gap: 10px;
    padding: 10px;
  }

  .card {
    padding: 10px;
  }

.card h3 {
  min-height: 48px;
  font-size: 15px;
}
}



/* CATEGORIES */
.categories {
  background: var(--bg);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: block;
  transition: box-shadow 0.3s ease-in-out;
}

.category-card:hover {
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.category-media {
  background: linear-gradient(145deg, #222, #111);
  aspect-ratio: 5 / 3;
}

.category-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-name {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.category-cta {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
    
/* SECTION BASE */
    section {
      padding: 2.5rem 0;
    }

    .section-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.4rem;
    }

    .section-title {
      font-size: 1.3rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .section-subtitle {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .section-link {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--accent);
    }

    .section-link:hover {
      text-decoration: underline;
    }

    .container {
      background-color: #1a2c59;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 1.2rem;
      border-radius: 30px;
    }

/*STORE*/
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .product-card {
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background-color: #060303;
        }

        /* Make the whole card clickable */
        .affiliate-link {
            display: flex;
            flex-direction: column;
            height: 100%;
            text-decoration: none;
            color: #333;
        }

        .product-card:hover {
            transform: translateY(-5px); /* Lift the card slightly */
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }

        .product-image {
            width: 100%;
            height: 250px;
            object-fit: cover; /* Ensures image covers the container */
        }

        .product-details {
            padding: 15px;
            flex-grow: 1; /* Pushes the CTA to the bottom */
        }

        .product-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .product-price {
            font-size: 1.3rem;
            color: #ff3b30; /* Accent color */
            font-weight: 700;
        }

        .product-cta {
            background-color: #007bff;
            color: white;
            padding: 12px;
            text-align: center;
            font-weight: 600;
            text-transform: uppercase;
        }

        .product-cta i {
            margin-left: 8px;
        }

        .affiliate-label {
            display: block;
            font-size: 0.75rem;
            color: #777;
            text-align: right;
            padding: 5px 15px;
            background-color: #f7f7f7;
        }

        .disclosure {
            text-align: center;
            padding: 20px;
            font-size: 0.85rem;
            color: #555;
            margin-top: 20px;
            border-top: 1px solid #ddd;
        }
        
/* Adjustments for landscape orientation on Android/mobile devices */
@media only screen and (min-width: 600px) and (orientation: landscape) {
    .background-container {
        /* You could use a different, wider image here if you have one */
        /* background-image: url('your-landscape-image.jpg'); */
        background-position: top center; /* Example of a minor tweak */
    }
}

/* Adjustments for larger tablets or desktop views */
@media only screen and (min-width: 768px) {
    .background-container {
        /* Example: increase font size for larger screens */
        font-size: 1.2rem;
    }
}


