/**
 * Single Group Buy Product Page Styles
 */

.wgb-single-product-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wgb-single-container {
    background: white;
}

.wgb-breadcrumb {
    margin-bottom: 30px;
}

/* Main Product Layout */
.wgb-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Images */
.wgb-product-images {
    position: sticky;
    top: 100px;
    align-self: start;
}

.wgb-product-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Product Summary */
.wgb-product-summary {
    padding: 20px 0;
}

.wgb-product-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.wgb-product-rating {
    margin-bottom: 20px;
}

.wgb-short-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Pricing Box */
.wgb-pricing-box {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.wgb-price-row {
    margin-bottom: 15px;
}

.wgb-original-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wgb-price-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.wgb-price-value {
    font-size: 18px;
    color: #9ca3af;
}

.wgb-current-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.wgb-current-price {
    font-size: 42px;
    font-weight: 800;
    color: #e91e8c;
    line-height: 1;
}

.wgb-discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
}

.wgb-stock-status {
    margin-top: 15px;
}

.wgb-in-stock {
    color: #059669;
    font-weight: 600;
    font-size: 15px;
}

.wgb-out-of-stock {
    color: #dc2626;
    font-weight: 600;
    font-size: 15px;
}

/* Group Buy Section */
.wgb-groupbuy-section {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.wgb-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.wgb-slot-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.wgb-slot-price .wgb-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.wgb-slot-price .wgb-value {
    font-size: 24px;
    font-weight: 700;
    color: #a855f7;
}

/* Progress Container */
.wgb-progress-container {
    background: #f9fafb;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.wgb-progress-header {
    margin-bottom: 15px;
}

.wgb-progress-text {
    font-size: 16px;
    color: #4b5563;
}

.wgb-progress-text strong {
    color: #1f2937;
    font-size: 18px;
}

.wgb-progress-bar-wrapper {
    position: relative;
}

.wgb-progress-bar {
    height: 32px;
    background: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wgb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7 0%, #9333ea 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wgb-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wgb-progress-percentage {
    color: white;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Purchase Form */
.wgb-purchase-form {
    margin-bottom: 20px;
}

.wgb-quantity-selector {
    margin-bottom: 20px;
}

.wgb-quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
    font-size: 15px;
}

.wgb-slot-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #1f2937;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wgb-slot-select:hover {
    border-color: #a855f7;
}

.wgb-slot-select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Buy Button */
.wgb-buy-button {
    width: 100%;
    padding: 18px 32px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.wgb-buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4) !important;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
}

.wgb-buy-button:active {
    transform: translateY(0);
}

.wgb-button-icon {
    display: flex;
    align-items: center;
}

/* Follow Button */
.wgb-follow-btn {
    width: 100%;
    padding: 14px 24px;
    background: white;
    border: 2px solid #10b981;
    color: #10b981;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wgb-follow-btn:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.wgb-follow-btn.following {
    background: #10b981;
    color: white;
}

.follow-help {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Status Messages */
.wgb-status-unlocked {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 12px;
}

.wgb-status-icon {
    color: #059669;
    margin-bottom: 20px;
}

.wgb-status-unlocked h3 {
    color: #065f46;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.wgb-status-unlocked p {
    color: #047857;
    font-size: 16px;
    margin: 0;
}

.wgb-status-completed,
.wgb-status-paused {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
}

.wgb-status-paused {
    background: #fef3c7;
    color: #92400e;
}

/* Features List */
.wgb-features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 10px;
}

.wgb-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
}

.wgb-feature-item svg {
    color: #a855f7;
    flex-shrink: 0;
}

/* Product Tabs */
.wgb-product-tabs {
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 1024px) {
    .wgb-product-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .wgb-product-images {
        position: static;
    }
    
    .wgb-product-title {
        font-size: 28px;
    }
    
    .wgb-current-price {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .wgb-single-product-wrapper {
        padding: 20px 15px;
    }
    
    .wgb-product-main {
        gap: 30px;
    }
    
    .wgb-product-title {
        font-size: 24px;
    }
    
    .wgb-current-price {
        font-size: 32px;
    }
    
    .wgb-pricing-box,
    .wgb-groupbuy-section {
        padding: 20px;
    }
    
    .wgb-buy-button {
        padding: 16px 24px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .wgb-current-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wgb-features-list {
        padding: 20px;
    }
}
