@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: rgb(64, 64, 64);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;

    /* animated gradient background */
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2, #e0eafc, #d0e1fd);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    transition: all 0.3s ease;
}

/* simple gradient animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

/* === NAVIGATION BAR (Glassmorphism Style) === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85%;
  margin: auto;
  padding: 14px 0;
  transition: all 0.3s ease-in-out;
}

#navbar-logo img {
  width: 160px;
  height: 75px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#navbar-logo img:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* === NAV LINKS === */
#navbar-links {
  display: flex;
  align-items: center;
}

#navbar-links ul {
  list-style: none;
  display: flex;
  gap: 60px;
  align-items: center;
  margin: 0;
}

#navbar-links a {
  text-decoration: none;
  color: rgb(40, 40, 40);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

#navbar-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: rgb(65, 105, 255);
  transition: width 0.3s ease-in-out;
}

#navbar-links a:hover {
  color: rgb(65, 105, 255);
}

#navbar-links a:hover::after {
  width: 100%;
}

/* === ICON TOOLS (cart, wishlist) === */
#navbar-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 25px;
}

#navbar-tools a {
  color: rgb(40, 40, 40);
  position: relative;
  transition: transform 0.3s ease, color 0.3s ease;
}

#navbar-tools a:hover {
  transform: scale(1.2) rotate(5deg);
  color: rgb(65, 105, 255);
}

.badge {
  background: linear-gradient(135deg, red, crimson);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 10px;
  right: 8px;
  animation: pulseBadge 1.4s infinite;
}

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

/* === BURGER ICON & ANIMASI === */
#menu-bar {
    display: none;
    width: 38px;
    height: 38px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 0;
}

#menu-bar span {
    display: block;
    height: 4px;
    width: 28px;
    background-color: rgb(40,40,40);
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Burger hover */
#menu-bar:hover span {
    background-color: rgb(65,105,255);
}

/* Transform burger jadi X */
#menu-bar.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-bar.active span:nth-child(2) {
    opacity: 0;
}
#menu-bar.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    #menu-bar {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
    }

    #navbar-links,
    #navbar-tools {
        display: none !important;
    }
}

/* === MENU OVERLAY === */
#menu-page {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(237,242,251,0.96);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease;
    z-index: 1050;
}

#menu-page.active {
    transform: translateX(0);
    opacity: 1;
}

#menu-page-wrapper {
    width: 75%;
    max-width: 360px;
    height: 100%;
    background: white;
    padding: 60px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(40px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#menu-page.active #menu-page-wrapper {
    transform: translateX(0);
    opacity: 1;
}

/* Menu links */
#menu-page-wrapper ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    margin: 0;
    text-align: center;
}

#menu-page-wrapper ul li a {
    font-size: 20px;
    font-weight: 600;
    color: rgb(40,40,40);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

#menu-page-wrapper ul li a:hover {
    color: rgb(65,105,255);
    transform: translateX(8px);
}

/* Button di menu */
#menu-page-wrapper .blue-button {
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    background: linear-gradient(135deg, rgb(65,105,255), rgb(45,85,245));
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#menu-page-wrapper .blue-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(65,105,255,0.3);
}

/* Parent harus relative */
.collection-tools a {
    position: relative; /* penting supaya badge berada relatif terhadap ikon */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Badge merah */
.collection-tools .badge {
    position: absolute;
    top: -6px;      /* jarak atas dari ikon */
    right: -6px;    /* jarak kanan dari ikon */
    width: 18px;
    height: 18px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    animation: pulseBadge 1.4s infinite;
}

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

/* PRODUCT PAGE BODY */
#product-page-body {
    padding: 0 60px;
    padding-top: 120px; /* leave space for fixed nav */
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    min-height: 100vh;

    /* animated gradient background */
    background: linear-gradient(-45deg, #f5f7fa, #c3cfe2, #e0eafc, #d0e1fd);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}

/* floating blurred shapes */
#product-page-body::before,
#product-page-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

#product-page-body::before {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -150px;
    background: rgba(59, 113, 220, 0.3);
    animation: floatLeft 25s ease-in-out infinite alternate;
}

#product-page-body::after {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -200px;
    background: rgba(108, 136, 240, 0.3);
    animation: floatRight 30s ease-in-out infinite alternate;
}

/* gradient animation keyframes */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* floating shapes animations */
@keyframes floatLeft {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(50px) rotate(20deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes floatRight {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(-20deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* pastikan semua section tetap di atas background */
#product-top-container,
#product-top-wrapper,
#product-top-text-section,
#product-top-image-section {
    position: relative;
    z-index: 1;
}

/* top section of main body */
#product-top-container {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease forwards;
}

#product-top-wrapper {
    background: linear-gradient(145deg, #edf2fb, #d0e1fd);
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    padding: 60px;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 25px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#product-top-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0px 35px 70px rgba(0, 0, 0, 0.25);
}

#product-top-text-section {
    width: 52%;
    animation: fadeInLeft 1s ease forwards;
}

#product-top-text-section h1 {
    color: rgb(64, 64, 64);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
}

#product-top-text-section h2 {
    color: rgb(40, 40, 40);
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #3b71dc, #6c88f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#product-top-text-section p {
    color: rgb(100, 100, 100);
    font-size: 17px;
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.blue-button {
    background-color: #3b71dc;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 12px;
    padding: 14px 28px;
    box-shadow: 0px 10px 20px rgba(59, 113, 220, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1; /* pastikan di atas pseudo-element */
}

.blue-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.5s;
    border-radius: 12px;
    pointer-events: none; /* ini penting agar klik tetap bisa */
}

.blue-button:hover::after {
    width: 100%;
}

.blue-button:hover {
    background-color: #6c88f0;
    transform: translateY(-3px);
    box-shadow: 0px 15px 25px rgba(59, 113, 220, 0.4);
}

/* IMAGE SECTION */
#product-top-image-section {
    background: radial-gradient(circle at 30% 30%, #c7d5f1, #a6b8e2);
    width: 420px;
    height: 420px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#product-top-image-section img {
    height: 82%;
    width: auto;
    transition: transform 0.5s ease;
}

#product-top-image-section:hover {
    transform: scale(1.1) rotate(5deg);
    animation: shake 0.5s linear infinite;
    cursor: pointer;
    box-shadow: 0px 35px 70px rgba(0, 0, 0, 0.25);
}

/* ANIMATIONS */
@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* PRODUCT CATEGORIES SECTION */
#product-category-container {
    margin-top: 60px;
    animation: fadeInUp 1s ease forwards;
}

#product-category-text {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blue-line {
    height: 45px;
    width: 15px;
    background: linear-gradient(180deg, #3b71dc, #6c88f0);
    border-radius: 20px;
}

.section-category-text {
    color: rgb(64, 64, 64);
    font-weight: 600;
    font-size: 28px;
}

#product-category-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.product-category {
    width: 375px;
    height: 120px;
    display: flex;
    justify-content: start;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(129, 129, 129, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    cursor: pointer;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.product-category:hover {
    transform: scale(1.07) translateY(-5px);
    box-shadow: 0 25px 50px rgba(59, 113, 220, 0.2);
    background: linear-gradient(145deg, #edf2fb, #d0e1fd);
}

.product-category::before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.15);
    transition: 0.4s;
}

.product-category:hover::before {
    width: 100%;
}

.product-category-image-section {
    background: radial-gradient(circle at 30% 30%, #e7eefc, #cfdff9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    width: 120px;
    height: 85%;
    margin-left: 12px;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.product-category:hover .product-category-image-section {
    transform: scale(1.1) rotate(3deg);
}

.product-category-image-section img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-category-desc-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
    height: 100%;
    flex-grow: 1;
}

.product-category-type {
    color: rgb(40, 40, 40);
    font-weight: 600;
    font-size: 20px;
    transition: color 0.3s ease;
}

.product-category-number {
    color: rgb(137, 137, 137);
    font-size: 15px;
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* PRODUCT SECTION */
.product-section {
    text-align: center;
    margin-top: 80px;
    font-family: 'Poppins', sans-serif;
}

.product-section-top-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease forwards;
}

.section-category-container {
    display: block;
    text-align: left;
}

.section-category-type {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-category-container h1 {
    color: rgb(40, 40, 40);
    font-size: 42px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #3b71dc, #6c88f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Slideshow Buttons */
.slideshow-buttons-container {
    display: flex;
    gap: 10px;
}

.slideshow-button {
    background-color: rgb(237, 237, 237);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(71, 71, 71, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.slideshow-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #3b71dc, #6c88f0);
}

/* Product Cards */
.product-cards-container {
    width: 100%;
    display: block; 
    margin-top: 20px;
    overflow-x: auto;                  
    -webkit-overflow-scrolling: touch;  
    padding-bottom: 12px;              
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-cards-container ul {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-cards-container .product-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(71, 71, 71, 0.08);
    text-align: left;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    width: 260px;
    height: 379px;
    display: flex;
    flex-direction: column;
    flex: 0 0 260px;       
    scroll-snap-align: start; 
    position: relative;
    animation: fadeInUp 0.8s ease forwards;
}

.product-cards-container .product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 60px rgba(59, 113, 220, 0.2);
}

.product-image-container {
    background-color: rgb(231, 238, 252);
    padding: 20px;
    height: 198px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.1) rotate(2deg);
}

/* Heart Button */
.product-image-container .heart-button {
    background: white;
    color: rgb(64, 64, 64);
    border-radius: 50%;
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    transition: transform 0.3s ease;
}

.product-image-container .heart-button:hover {
    transform: scale(1.2);
}

.product-image-container .heart-button svg {
    stroke: rgb(64, 64, 64);
    fill: none;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.product-image-container .heart-button.active svg {
    stroke: red;
    fill: red;
}

/* Text Container */
.product-text-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    flex-grow: 1;
}

.product-text-container h2 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.product-text-container .price {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.product-text-container .blue-button {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    align-self: start;
    background: linear-gradient(135deg, #3b71dc, #6c88f0);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 113, 220, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-text-container .blue-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 113, 220, 0.4);
}

/* Hide scrollbar completely */
.product-cards-container::-webkit-scrollbar,
.product-cards-container ul::-webkit-scrollbar {
    display: none;
    height: 0; 
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* === PROMOTION SECTION (Modern & Animated) === */
.promotion-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    width: 85%;
    margin: 120px auto;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f5f7fa, #e3ebfc);
    box-shadow: 0 15px 50px rgba(59, 113, 220, 0.15);
    border-radius: 20px;
    overflow: hidden;
    padding: 50px 30px;
    animation: fadeInUp 1s ease forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.promotion-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(59, 113, 220, 0.25);
}

.promo-image-container {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e7eefc;
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.promo-image-container:hover {
    transform: scale(1.05) rotate(-1.5deg);
    box-shadow: 0 20px 50px rgba(59, 113, 220, 0.2);
}

.promo-image-container img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.promo-text-container {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: rgb(64, 64, 64);
    animation: fadeInRight 1s ease forwards;
}

.promo-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.promo-heading .blue-line {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #3b71dc, #6c88f0);
    border-radius: 2px;
}

.promo-text-container h1 {
    font-size: 22px;
    color: #3b71dc;
    font-weight: 600;
    margin: 0;
}

.promo-text-container h2 {
    font-size: 34px;
    font-weight: 700;
    margin: 15px 0;
    background: linear-gradient(90deg, #3b71dc, #6c88f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-text-container p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.blue-button {
    display: inline-block;
    padding: 14px 34px;
    background: linear-gradient(135deg, #3b71dc, #6c88f0);
    color: white;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none; /* hilangkan underline */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 113, 220, 0.3);
    z-index: 1;
}


.promo-text-container .blue-button {
    padding: 14px 34px;
    background: linear-gradient(135deg, #3b71dc, #6c88f0);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative; /* penting */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 113, 220, 0.3);
    z-index: 1; /* pastikan tombol di atas */
    pointer-events: auto; /* pastikan bisa diklik */
}

.promo-text-container .blue-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: 0.5s;
    border-radius: 12px;
    pointer-events: none; /* animasi tidak menghalangi klik */
    z-index: 0; /* di bawah tombol */
}

.promo-text-container .blue-button:hover::after {
    width: 100%;
}

.promo-text-container .blue-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 113, 220, 0.4);
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
    .promotion-section { gap: 40px; margin: 90px auto; padding: 40px 25px; }
    .promo-text-container h2 { font-size: 28px; }
    .promo-image-container img { max-width: 380px; }
}

@media (max-width: 768px) {
    .promotion-section { flex-direction: column; text-align: center; gap: 35px; margin: 80px auto; padding: 40px 25px; }
    .promo-text-container { max-width: 90%; }
    .promo-text-container h2 { font-size: 26px; }
    .promo-text-container p { font-size: 15px; margin-bottom: 20px; }
    .promo-image-container img { max-width: 320px; }
}

@media (max-width: 480px) {
    .promotion-section { margin: 70px auto; gap: 25px; padding: 35px 20px; }
    .promo-text-container h1 { font-size: 18px; }
    .promo-text-container h2 { font-size: 22px; }
    .promo-text-container p { font-size: 14px; line-height: 1.5; }
    .promo-text-container .blue-button { padding: 12px 28px; font-size: 14px; }
    .promo-image-container img { max-width: 260px; }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* FOOTER */
/* === MODERN FOOTER FULL ANIMASI === */
footer {
    background: linear-gradient(135deg, #d9e5f4, #b0cfff);
    text-align: center;
    color: rgb(40, 40, 40);
    margin-top: 0; /* hapus jarak putih */
    padding: 50px 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease forwards;
}

/* Efek animasi masuk footer */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Bagian atas footer */
#footer-top {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer-top img {
    display: block;
    margin: 0 auto 20px auto;
    width: 160px;
    height: auto;
    transition: transform 0.3s ease;
}

#footer-top img:hover {
    transform: scale(1.1) rotate(-2deg);
}

/* Sosial media */
#footer-socials-wrapper {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeInUp 1.2s ease forwards;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.footer-social:hover {
    transform: scale(1.1);
}

.footer-social span,
.footer-social a {
    font-size: 16px;
    font-weight: 500;
    color: rgb(40, 40, 40);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: rgb(65, 105, 255);
}

/* Bagian bawah footer */
#footer-bottom {
    border-top: 1px solid rgba(64,64,64,0.2);
    width: 85%;
    margin: 40px auto 0;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#footer-bottom ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

#footer-bottom a {
    text-decoration: none;
    color: rgb(40, 40, 40);
    transition: 0.3s ease;
}

#footer-bottom a:hover {
    color: rgb(65, 105, 255);
    transform: translateY(-2px);
}

#footer-bottom p {
    font-size: 14px;
    color: rgb(80, 80, 80);
    margin-top: 10px;
}

/* Animasi sosial media muncul bergantian */
.footer-social:nth-child(1) { animation: fadeInUp 1.2s ease forwards; }
.footer-social:nth-child(2) { animation: fadeInUp 1.4s ease forwards; }
.footer-social:nth-child(3) { animation: fadeInUp 1.6s ease forwards; }

/* Hover efek ikon sosial */
.footer-social a i {
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover i {
    transform: rotate(-15deg) scale(1.2);
    color: rgb(65, 105, 255);
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
    #footer-top, #footer-bottom {
        width: 90%;
    }

    #footer-socials-wrapper {
        gap: 25px;
    }

    #footer-bottom ul {
        flex-direction: column;
        gap: 15px;
    }
}


@media (max-width: 500px) {
    #navbar-links, #navbar-tools {
        display: none;
    }

    #menu-bar {
        display: flex;
    }

    #navbar-logo img {
        width: 130px;
        height: 70px;
        object-fit: contain;
    }

    #product-page-body {
        padding-top: 0;
        padding-bottom: 15px;
    }

    #product-top-wrapper {
        padding: 35px;
        padding-top: 108px;
        flex-direction: column;
        height: auto;
    }

    #product-top-text-section {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: auto;
        margin-bottom: 30px;
    }

    #product-top-text-section h1 {
        font-size: 19px;
    }

    #product-top-text-section h2 {
        font-size: 36px;
        margin-top: 10px;
    }

    #product-top-text-section p {
        font-size: 15px;
        margin-top: 20px;
    }

    #product-top-text-section button {
        padding: 14px 38px;
        border-radius: 3px;
        font-size: 15px;
    }

    #product-top-image-section {
        width: 280px;
        height: 280px;
        margin: 20px 0;
    }

    /* PRODUCT CATEGORY */
    #product-category-container {
        margin-top: 10px;
        margin-bottom: 20px;
        padding: 20px;
    }

    #product-category-text {
        margin-bottom: 30px;
    }

    .blue-line {
        height: 25px;
        width: 10px;
        margin-right: 10px;
    }

    .section-category-text {
        font-size: 17px;
    }

    .product-category {
        width: 48%;
        height: 65px;
    }

    .product-category-image-section {
        width: 40px;
        height: 100%;
        padding: 0 10px;
    }

    .product-category-image-section img {
        max-width: 90%;
        max-height: 90%;
    }

    .product-category-desc-section {
        padding-left: 14px;
        text-align: left;
    }

    .product-category-desc-section .product-category-type,
    .product-category-desc-section .product-category-number {
        font-size: 12px;
    }

    /* PRODUCT SECTION */
    .product-section {
        margin-top: 0;
        margin-bottom: 60px;
        padding: 0 15px;
    }

    .product-section-top-container {
        margin-bottom: 40px;
    }

    .section-category-type {
        margin-bottom: 7px;
    }

    .section-category-container h1 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .slideshow-button {
        width: 45px;
        height: 45px;
    }

    .slideshow-button svg {
        width: 25px;
        height: 25px;
    }

    .product-cards-container ul {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .product-category-image-section img {
        max-width: 88%;
        max-height: 88%;
    }
}

@media (max-width: 400px) {
    .product-category {
        width: 100%;
        height: 75px;
    }

    .product-category-image-section {
        width: 70px;
    }

    .product-category-image-section img {
        max-width: 76%;
        max-height: 76%;
    }

    .product-category-desc-section {
        padding-left: 16px;
    }
}

@media (max-width: 360px) {
    .product-category {
        height: 70px;
    }
}

/* === HERO SECTION RESPONSIVE FIX === */
@media (max-width: 1024px) {
    #product-top-wrapper {
        padding: 50px;
        gap: 40px;
    }

    #product-top-text-section h2 {
        font-size: 38px;
    }

    #product-top-image-section {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    #product-top-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }

    #product-top-text-section {
        width: 100%;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    #product-top-text-section h1 {
        font-size: 20px;
    }

    #product-top-text-section h2 {
        font-size: 32px;
        margin-top: 10px;
    }

    #product-top-text-section p {
        font-size: 15px;
        margin-top: 15px;
        margin-bottom: 25px;
        line-height: 1.6;
        width: 90%;
    }

    #product-top-image-section {
        width: 300px;
        height: 300px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    #product-top-wrapper {
        padding: 35px 20px;
        padding-top: 110px; /* memberi jarak dari navbar */
    }

    #product-top-text-section h1 {
        font-size: 18px;
    }

    #product-top-text-section h2 {
        font-size: 27px;
    }

    #product-top-text-section p {
        font-size: 14px;
        width: 100%;
    }

    #product-top-text-section button {
        font-size: 14px;
        padding: 12px 30px;
    }

    #product-top-image-section {
        width: 250px;
        height: 250px;
    }
}

