/* Cloud-themed product page */
body {
  background: var(--cloud-soft-bg, #f8f9fb);
}

.product-hero {
  padding: 64px 0 24px;
}

.pgrid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
}

/* Main product image area */
.card-art {
  height: 500px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e8f0f8, #d4e4f3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Thumbnail gallery - BIGGER */
.thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.thumbs button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumbs button:hover {
  border-color: #999;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbs button.active {
  border-color: #000;
  border-width: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.thumbs img {
  height: 80px;
  width: 80px;
  object-fit: cover;
  display: block;
}

/* Product info section */
.product-info-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.p-title {
  font-size: 32px;
  color: var(--cloud-dark, #2c3e50);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.p-blurb {
  margin: 0 0 24px;
  color: var(--cloud-text, #4a5568);
  font-size: 16px;
  line-height: 1.6;
}

/* Price row */
.price-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--cloud-border, #dde2e8);
  margin-bottom: 20px;
}

.price {
  font-weight: 700;
  font-size: 28px;
  color: var(--cloud-dark, #2c3e50);
}

.compare {
  text-decoration: line-through;
  color: #888;
  font-size: 18px;
}

.inv {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  margin-left: auto;
}

.inv.in {
  color: #1a7f37;
  background: #d1f4db;
}

.inv.low {
  color: #b45309;
  background: #fed7aa;
}

.inv.soldout {
  color: #b91c1c;
  background: #fecaca;
}

/* Buy box */
.buy-box {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.buy-box label {
  font-weight: 600;
  color: var(--cloud-dark, #2c3e50);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.buy-box select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cloud-border, #dde2e8);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  transition: all 0.2s ease;
}

.buy-box select:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Buy row with quantity and buttons */
.buy-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qty {
  width: 100px !important;
  padding: 12px 8px;
  border: 1px solid var(--cloud-border, #dde2e8);
  border-radius: 12px;
  font-size: 25px !important;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.qty:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

#addBtn {
  flex: 1;
  padding: 14px 28px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#addBtn:hover:not(:disabled) {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#addBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#notifyBtn {
  flex: 1;
  padding: 14px 28px;
  background: transparent;
  color: #555;
  border: 2px solid #555;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#notifyBtn:hover {
  background: #555;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  border-bottom: 2px solid var(--cloud-border, #dde2e8);
  padding-bottom: 0;
}

.tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--cloud-text, #4a5568);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
}

.tab:hover {
  color: #2c3e50;
  background: rgba(0, 0, 0, 0.02);
}

.tab.active {
  background: #2c3e50;
  color: #fff;
}

.pane {
  display: none;
  padding: 24px 0;
  color: var(--cloud-text, #4a5568);
  line-height: 1.7;
}

.pane.active {
  display: block;
}

.pane h3 {
  color: var(--cloud-dark, #2c3e50);
  margin: 0 0 12px;
  font-size: 18px;
}

/* Related products */
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.related .card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
}

.related .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related .card-art {
  height: 200px;
  padding: 20px;
}

.related .card-body {
  padding: 20px;
}

.related h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--cloud-dark, #2c3e50);
}

.related .price {
  font-size: 20px;
  color: var(--cloud-dark, #2c3e50);
  font-weight: 700;
}

.section-title h2 {
  color: var(--cloud-dark, #2c3e50);
  font-size: 28px;
  margin-bottom: 8px;
}

.crumbs {
  color: var(--cloud-text, #4a5568);
  font-size: 14px;
  margin-bottom: 20px;
}

.crumbs a {
  color: #555;
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

@media(max-width:980px) {
  .pgrid {
    grid-template-columns: 1fr;
  }
  .related {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:560px) {
  .related {
    grid-template-columns: 1fr;
  }
  .thumbs img {
    height: 80px;
    width: 80px;
  }
}














/* Reviews Section */
.reviews-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #dde2e8;
}

.reviews-container {
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-header h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

/* Rating Summary */
.rating-summary {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.overall-rating {
    text-align: center;
    min-width: 180px;
}

.overall-rating .big-number {
    font-size: 56px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.overall-rating .stars {
    color: #FFD700;
    font-size: 28px;
    margin: 12px 0;
    letter-spacing: 2px;
}

.overall-rating .total {
    color: #6b7178;
    font-size: 15px;
}

.rating-bars {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.rating-bar-row .label {
    min-width: 70px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.rating-bar-row .bar-container {
    flex: 1;
    height: 10px;
    background: #e8f0f8;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-row .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.rating-bar-row .count {
    min-width: 50px;
    text-align: right;
    font-size: 14px;
    color: #6b7178;
}

/* Write Review Button */
.btn-write-review {
    background: #2c3e50;
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-write-review:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Modal - SLEEK */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(to bottom, #ffffff, #f8f9fb);
    margin: auto;
    padding: 48px 40px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    color: #999;
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal h3 {
    margin: 0 0 32px;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
}

/* Form - SLEEK */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7BA7D6;
    box-shadow: 0 0 0 3px rgba(123, 167, 214, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-help {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* Star Rating - CLEAN 5 STARS */
.star-rating-input {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.star-rating-input .star {
    font-size: 44px;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
    line-height: 1;
}

.star-rating-input .star:hover {
    transform: scale(1.15);
}

/* Alerts - SLEEK */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(44, 62, 80, 0.3);
}

/* Reviews List */
.reviews-list {
    margin-top: 50px;
}

.reviews-list > h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 14px;
}

.review-author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

.review-stars {
    color: #FFD700;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-date {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.review-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.review-text {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 15px;
}

/* Review Images */
.review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.review-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #f0f0f0;
}

.review-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #7BA7D6;
}

/* Image Lightbox */
#imageLightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

#imageLightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

#imageLightbox .modal-close {
    color: #fff;
    font-size: 50px;
    top: 30px;
    right: 50px;
}

/* Admin Response */
.admin-response {
    background: linear-gradient(135deg, #f8f9fb, #e8f0f8);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #7BA7D6;
}

.admin-response-label {
    font-weight: 700;
    color: #7BA7D6;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-response-text {
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
}

/* Responsive */
@media(max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .star-rating-input .star {
        font-size: 38px;
    }

    .rating-summary {
        flex-direction: column;
        gap: 30px;
    }

    .review-image {
        width: 80px;
        height: 80px;
    }
}
