/* Product Page Specific Styles */
.product-page {
    background: white;
    min-height: 100vh;
}

/* Header */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn, .header-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.back-btn:hover, .header-action:hover {
    background: #e9ecef;
}

.header-action .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3333;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Images */
.product-images {
    position: relative;
    background: #f8f9fa;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.image-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Product Info */
.product-info {
    padding: 16px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rating-badge {
    background: #007c85;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.sold-count {
    color: #666;
    font-size: 11px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.discount-percent {
    background: #ff3333;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Quantity Selector */
.quantity-section {
    margin: 20px 0;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
}

/* Shipping Info */
.shipping-info {
    background: #f8fffe;
    border: 1px solid #e8f5f4;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.shipping-item:last-child {
    margin-bottom: 0;
}

.shipping-icon {
    color: #10b981;
    font-size: 14px;
}

.shipping-text {
    font-size: 13px;
    color: #374151;
}

.shipping-text.highlight {
    color: #10b981;
    font-weight: 600;
}

/* Info Sections */
.info-section {
    border-top: 8px solid #f8f9fa;
    padding: 16px;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.view-all {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.feature-icon {
    color: #10b981;
    font-size: 14px;
}

.feature-text {
    font-size: 12px;
    color: #374151;
}

/* Reviews Section */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reviews-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.rating-stars {
    color: #fbbf24;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #9ca3af;
}

.review-rating {
    color: #fbbf24;
    font-size: 12px;
}

.review-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Bottom Actions */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.wishlist-btn {
    width: 48px;
    height: 48px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-to-cart-btn {
    flex: 1;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #1f2937;
}

/* Responsive */
@media (max-width: 375px) {
    .product-info {
        padding: 12px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .bottom-actions {
        padding: 10px 12px;
    }
}

/* No Reviews Styling */
.no-reviews {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 16px 0;
}

.no-reviews-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.no-reviews-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.no-reviews-subtext {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.write-review-btn {
    background: #007c85;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.write-review-btn:hover {
    background: #e55a00;
}

/* Half star support */
.fa-star-half-alt {
    color: #fbbf24;
}

/* Product Images Slider */
.product-images {
    position: relative;
    background: #f8f9fa;
}

.productSwiper {
    width: 100%;
    height: 100vw; /* Square aspect ratio */
    max-height: 500px;
}

.productSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Custom Pagination */
.productSwiper .swiper-pagination {
    bottom: 16px !important;
    text-align: center;
}

.productSwiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.productSwiper .swiper-pagination-bullet-active {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Custom Navigation Arrows */
.productSwiper .swiper-button-next,
.productSwiper .swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    transition: all 0.3s ease;
}

.productSwiper .swiper-button-next:after,
.productSwiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: 600;
}

.productSwiper .swiper-button-next:hover,
.productSwiper .swiper-button-prev:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.1);
}

.productSwiper .swiper-button-next.swiper-button-disabled,
.productSwiper .swiper-button-prev.swiper-button-disabled {
    opacity: 0.3;
}

/* Image Counter */
.image-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Zoom overlay (for future zoom functionality) */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.zoom-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* Touch feedback */
.swiper-slide {
    transition: transform 0.3s ease;
}

.swiper-slide:active {
    transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .productSwiper .swiper-button-next,
    .productSwiper .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .productSwiper .swiper-button-next:after,
    .productSwiper .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .image-counter {
        top: 12px;
        right: 12px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

.swiper-slide {
    padding: unset;
    padding-top: unset;
}

/* Thumbnail Gallery Styles */
.thumbnail-gallery {
    margin-top: 15px;
    padding: 0 20px;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.thumbnails-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.thumbnail-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item.active {
    border-color: #000;
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #666;
}

.thumbnail-item.active:hover {
    border-color: #000;
}

/* Add overlay effect for inactive thumbnails */
.thumbnail-item:not(.active)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: all 0.3s ease;
}

.thumbnail-item:hover:not(.active)::after {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .thumbnails-container {
        gap: 8px;
    }
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    font-size: 20px;
}

.wishlist-btn:hover {
    border-color: #e53e3e;
    background: #fed7d7;
    color: #e53e3e;
}

.wishlist-btn.active {
    background: #e53e3e;
    border-color: #e53e3e;
    color: white;
}

.wishlist-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.wishlist-btn.loading i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Toast styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #38a169;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-error {
    background: #e53e3e;
}

.uploader-tip { 
    display:flex; 
    gap:8px; 
    align-items:center; 
    color:#6c757d; 
    font-size:12px; 
}

.file-preview-grid { 
    display:flex; 
    gap:8px; 
    flex-wrap:wrap; 
}

.file-chip, .thumb {
    position:relative; 
    border:1px solid #e9ecef; 
    border-radius:10px; 
    padding:8px 10px; 
    background:#fff;
}

.thumb { 
    width:72px; 
    height:72px; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    overflow:hidden; 
}

.thumb img, .thumb embed { 
    width:100%; 
    height:100%; 
    object-fit:cover; 
}

.remove-file {
  position:absolute; top:-8px; right:-8px; width:22px; height:22px;
  border-radius:50%; border:none; background:#dc3545; color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:12px; cursor:pointer;
}
.custom-textarea {
  width:100%; border:1px solid #e0e0e0; border-radius:12px; padding:12px; resize:vertical; font-size:14px;
}
.char-counter { text-align:right; font-size:12px; color:#6c757d; margin-top:4px; }
.section-label { font-weight:600; color:#333; }

.variant-chips { display:flex; flex-wrap:wrap; gap:8px; }
        .chip {
          border:1px solid #ddd; background:#fff; padding:6px 10px; border-radius:16px;
          font-size:13px; cursor:pointer;
        }
        .chip.active { border-color:#111; background:#111; color:#fff; }
        .chip.disabled { opacity:.4; cursor:not-allowed; text-decoration: line-through; }
.variant-feedback { margin-top:6px; }
  .variant-chips{display:flex;flex-wrap:wrap;gap:8px}
  .chip{border:1px solid #ddd;background:#fff;padding:6px 10px;border-radius:16px;font-size:13px;cursor:pointer;transition:.15s}
  .chip:hover{border-color:#999}
  .chip.active{border-color:#111;background:#111;color:#fff}
  .chip.disabled{opacity:.4;cursor:not-allowed;text-decoration:line-through}
  .variant-feedback{margin-top:6px;font-size:12px;color:#888}
  .variant-summary{display:flex;align-items:center;gap:8px;margin:-4px 0 10px}
  .vs-pill{background:#f6f6f6;border:1px solid #e2e2e2;border-radius:12px;padding:4px 8px;font-size:12px}
  .vs-reset{margin-left:auto;border:none;background:transparent;font-size:12px;text-decoration:underline;cursor:pointer}
