/* PromoPrints Style Frontend CSS */
.pp-product-page {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.pp-product-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.pp-product-name {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.pp-reviews {
    color: #f59e0b;
    font-size: 14px;
}

.pp-reviews span {
    color: #666;
}

/* Layout */
.pp-product-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin: 30px 0;
}

/* Left Column */
.pp-left-col {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.pp-main-image {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pp-no-image-large {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.pp-image-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.pp-thumb {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.pp-thumb.active,
.pp-thumb:hover {
    border-color: #667eea;
    background: #eef;
}

.pp-template-download {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.pp-download-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.pp-template-note {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
}

/* Right Column - Steps */
.pp-right-col {
    background: #fff;
}

.pp-step {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.pp-step-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-step-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.pp-step-header h3 {
    margin: 0;
    font-size: 16px;
}

.pp-step-content {
    padding: 20px;
}

/* Price Chart */
.pp-price-chart-section {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
}

.pp-price-chart-section h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
}

.pp-price-table-wrap {
    overflow-x: auto;
}

.pp-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pp-price-table th,
.pp-price-table td {
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.pp-price-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #667eea;
}

.pp-price-table td {
    color: #22c55e;
    font-weight: 600;
}

/* Options Grid */
.pp-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pp-options-grid.size-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pp-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.pp-option-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102,126,234,0.15);
}

.pp-option-card.selected {
    border-color: #667eea;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

.pp-option-img {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 50%;
    margin: 0 auto 10px;
}

.pp-size-visual {
    width: 100px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin: 0 auto 10px;
}

.pp-option-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.pp-most-popular {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 10px;
}

/* Color Section */
.pp-color-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pp-color-tab {
    padding: 8px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.pp-color-tab.active,
.pp-color-tab:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pp-color-content {
    display: none;
}

.pp-color-content.active {
    display: block;
}

.pp-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pp-color-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.pp-color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid #e5e7eb;
}

.pp-color-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pp-qty-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pp-qty-inputs label {
    font-size: 10px;
    color: #666;
}

.pp-qty-inputs input {
    width: 50px;
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
}

/* Message Form */
.pp-message-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.pp-toggle-btn {
    flex: 1;
    padding: 12px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.pp-toggle-btn.active {
    border-color: #667eea;
    background: #f5f3ff;
    color: #667eea;
}

.pp-message-form {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

.pp-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.pp-form-group {
    display: flex;
    flex-direction: column;
}

.pp-form-group.full {
    grid-column: 1 / -1;
}

.pp-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.pp-form-group input,
.pp-form-group select,
.pp-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.pp-form-group input:focus,
.pp-form-group select:focus,
.pp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.pp-artwork-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.pp-btn-easy {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.pp-btn-upload {
    padding: 12px 30px;
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.pp-or {
    color: #888;
    font-size: 12px;
}

/* Extra Options */
.pp-extra-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pp-extra-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.pp-extra-card h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.pp-extra-card p {
    margin: 4px 0;
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}

.pp-extra-card label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    cursor: pointer;
}

.pp-extra-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Delivery Date */
.pp-date-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* Order Summary */
.pp-order-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.pp-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

.pp-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    border-bottom: none;
}

.pp-summary-divider {
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 12px 0;
    border-radius: 1px;
}

/* Cart Section */
.pp-cart-section {
    text-align: center;
}

.pp-cart-section input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.pp-btn-add-cart {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.pp-btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.3);
}

/* Sections */
.pp-section {
    margin: 40px 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.pp-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.pp-description {
    line-height: 1.8;
    color: #555;
}

/* FAQ */
.pp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.pp-faq-q {
    background: #f8f9fa;
    padding: 12px 16px;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
}

.pp-faq-a {
    padding: 12px 16px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* Steps Info */
.pp-steps-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-step-info-item {
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

/* Shape Table */
.pp-shape-table-wrap {
    overflow-x: auto;
}

.pp-shape-table {
    width: 100%;
    border-collapse: collapse;
}

.pp-shape-table th,
.pp-shape-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.pp-shape-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.pp-shape-table tr:nth-child(even) {
    background: #f9fafb;
}

/* Products Grid (shortcode) */
.pp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.pp-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.pp-product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.pp-product-image img {
    max-width: 100%;
    border-radius: 8px;
}

.pp-no-img {
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pp-product-title {
    font-size: 16px;
    margin: 12px 0;
}

.pp-product-title a {
    color: #333;
    text-decoration: none;
}

.pp-product-price {
    color: #22c55e;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pp-product-price small {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

.pp-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.pp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .pp-product-layout {
        grid-template-columns: 1fr;
    }
    .pp-left-col {
        position: static;
    }
    .pp-options-grid,
    .pp-options-grid.size-grid,
    .pp-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pp-form-row {
        grid-template-columns: 1fr;
    }
    .pp-extra-options {
        grid-template-columns: 1fr;
    }
}
