/* css untuk pages detail produk */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 200; 
    font-family: Arial, sans-serif;
}

.back-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}


.containerrr-r {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
}


.product-images {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.thumbnail.active {
    border-color: #00aaff;
}


.product-info {
    padding: 10px;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.product-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.product-discount {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}

.discount-badge {
    background-color: #fa5b5b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.rating-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #ffa412;
    font-size: 18px;
}

.rating-text {
    color: #333;
    font-size: 16px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.satisfaction {
    background-color: #e6f7e6;
    color: #2e7d32;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.satisfaction-icon {
    width: 16px;
    height: 16px;
}

.review-stats {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.review-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

.star-ratings {
    margin-bottom: 15px;
}

.star-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.star-label {
    width: 20px;
    text-align: center;
    color: #ffa412;
}

.star-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.star-bar {
    height: 100%;
    background-color: #ffa412;
    border-radius: 4px;
}

.star-count {
    width: 50px;
    text-align: right;
    color: #666;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.source-icon {
    width: 16px;
    height: 16px;
}


.store-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.store-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.store-details {
    flex-grow: 1;
}

.store-name {
    font-weight: 600;
    color: #111;
}

.store-status {
    color: #16a085;
    font-size: 14px;
    font-weight: 500;
}

.follow-btn {
    background-color: #00aaff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.follow-btn:hover {
    background-color: #0088cc;
}


.variant-section {
    margin: 20px 0;
}

.variant-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

.variant-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.variant-option:hover {
    border-color: #00aaff;
}

.variant-option.selected {
    border-color: #00aaff;
    background-color: #e6f7ff;
    color: #00aaff;
}


.quantity-section {
    margin: 20px 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #f0f0f0;
}

.quantity-value {
    width: 60px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    padding: 0 5px;
}


.action-buttons {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.btn {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-cart {
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart:hover {
    background-color: #e0e0e0;
}

.btn-cart i {
    font-size: 24px; /* Ukuran icon lebih besar */
}

.btn-buy {
    background-color: #fb5607;
    color: white;
}

.btn-buy:hover {
    background-color: #e04a06;
}


.product-details {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.details-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.details-content {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.details-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.details-content li {
    margin-bottom: 8px;
}


.reviews-section {
    margin-top: 40px;
}

.review-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: #111;
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-rating {
    display: flex;
    color: #ffa412;
    margin-bottom: 10px;
}

.review-text {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}


.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fb5607;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
}

.floating-cart:hover {
    transform: scale(1.05);
    background-color: #e04a06;
}

.cart-icon {
    width: 24px;
    height: 24px;
}


.stars {
    display: flex;
}

.star {
    width: 18px;
    height: 18px;
}

.success-icon {
    font-size: 80px;
    color: #088178;
    margin-bottom: 15px;
}

#add-to-cart-modal .modal-content {
    text-align: center;
}

#add-to-cart-modal p {
    font-size: 16px;
    color: #465b52;
    margin-bottom: 25px;
}

#add-to-cart-modal .continue-shopping-btn {
    margin-right: 10px;
    background-color: #fff;
    color: #088178;
    border: 1px solid #088178;
}

#add-to-cart-modal .view-cart-link {
    text-decoration: none;
    font-weight: 600;
    color: #465b52;
}

.modal-overlay {
    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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}


.modal-content .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 25px 0;
    gap: 15px;
}

.payment-options label {
    font-size: 16px;
    cursor: pointer;
}

.modal-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    padding-top: 15px;
    border-top: 1px solid #e2e9e1;
}

#pay-now-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
}

.payment-details {
    display: none; 
    width: 100%;
    padding-left: 25px; 
    margin: 10px 0;
    animation: slideDown 0.3s ease;
}

.payment-details.active {
    display: block; 
}

.payment-details input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.error-message {
    color: #ef3636;
    font-size: 14px;
    margin-top: 10px;
    height: 16px; 
}

button.normal {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  background: #088178;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

button.normal:hover {
  background: #06685f;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(8, 129, 120, 0.3);
}

#add-to-cart-modal .modal-content {
    text-align: center;
}

#add-to-cart-modal p {
    font-size: 16px;
    color: #465b52;
}

#add-to-cart-modal .continue-shopping-btn {
    margin-right: 10px;
    background-color: #fff;
    color: #088178;
    border: 1px solid #088178;
}

#add-to-cart-modal .view-cart-link {
    text-decoration: none;
    font-weight: 600;
    color: #465b52;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive styles for Android devices */
@media only screen and (max-width: 768px) {
  .containerrr-r {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .product-images {
    position: static;
  }

  .main-image {
    height: 300px;
    border-radius: 8px;
  }

  .thumbnail-container {
    gap: 8px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
  }

  .product-info {
    padding: 0;
  }

  .product-title {
    font-size: 20px;
  }

  .product-subtitle {
    font-size: 14px;
  }

  .product-price {
    font-size: 24px;
  }

  .original-price, .discount-badge {
    font-size: 16px;
  }

  .rating-section, .satisfaction {
    font-size: 14px;
  }

  .rating, .rating-text, .rating-count {
    font-size: 14px;
  }

  .store-info {
    padding: 10px;
  }

  .store-avatar {
    width: 40px;
    height: 40px;
  }

  .store-name, .store-status {
    font-size: 14px;
  }

  .follow-btn {
    padding: 6px 12px;
    font-size: 14px;
  }

  .variant-section, .quantity-section {
    margin: 15px 0;
  }

  .variant-title {
    font-size: 16px;
  }

  .variant-option {
    padding: 6px 12px;
    font-size: 12px;
  }

  .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .quantity-value {
    width: 50px;
    height: 32px;
    font-size: 14px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    padding: 12px;
    font-size: 14px;
  }

  .btn-cart i {
    font-size: 20px;
  }

  .details-title {
    font-size: 18px;
  }

  .details-content {
    font-size: 14px;
  }

  .reviews-section {
    margin-top: 20px;
  }

  .review-card {
    padding: 10px;
  }

  .reviewer-name, .review-date, .review-text {
    font-size: 14px;
  }

  .review-image {
    width: 60px;
    height: 60px;
  }

  .modal-content {
    width: 95%;
    max-width: 400px;
    padding: 20px;
  }

  .modal-content h2 {
    font-size: 24px;
  }

  .success-icon {
    font-size: 60px;
  }

  .payment-options label {
    font-size: 14px;
  }

  .payment-details input {
    padding: 10px;
    font-size: 12px;
  }

  .modal-total {
    font-size: 16px;
  }

  #pay-now-btn, .continue-shopping-btn {
    padding: 12px;
    font-size: 14px;
  }

  .floating-cart {
    width: 50px;
    height: 50px;
  }

  .cart-icon {
    width: 20px;
    height: 20px;
  }
}

@media only screen and (max-width: 480px) {
  .main-image {
    height: 250px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }

  .product-title {
    font-size: 18px;
  }

  .product-price {
    font-size: 20px;
  }

  .original-price, .discount-badge {
    font-size: 14px;
  }

  .rating, .rating-text, .rating-count, .satisfaction {
    font-size: 12px;
  }

  .store-avatar {
    width: 35px;
    height: 35px;
  }

  .store-name, .store-status {
    font-size: 12px;
  }

  .follow-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .variant-title {
    font-size: 14px;
  }

  .variant-option {
    padding: 5px 10px;
    font-size: 11px;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .quantity-value {
    width: 45px;
    height: 28px;
    font-size: 12px;
  }

  .btn {
    padding: 10px;
    font-size: 12px;
  }

  .btn-cart i {
    font-size: 18px;
  }

  .details-title {
    font-size: 16px;
  }

  .details-content {
    font-size: 12px;
  }

  .reviewer-name, .review-date, .review-text {
    font-size: 12px;
  }

  .review-image {
    width: 50px;
    height: 50px;
  }

  .modal-content h2 {
    font-size: 20px;
  }

  .success-icon {
    font-size: 50px;
  }

  .payment-options label {
    font-size: 12px;
  }

  .modal-total {
    font-size: 14px;
  }

  #pay-now-btn, .continue-shopping-btn {
    padding: 10px;
    font-size: 12px;
  }

  .floating-cart {
    width: 45px;
    height: 45px;
  }

  .cart-icon {
    width: 18px;
    height: 18px;
  }
}