/**
 * SpeedyBanner Custom Styles
 */

/* Product Options Styling */
.sb-product-options {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.sb-form-group {
    margin-bottom: 1rem;
}

.sb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
}

.sb-option-select,
.sb-form-group input[type="number"],
.sb-form-group input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    background: white;
}

.sb-option-select:focus,
.sb-form-group input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.sb-dimension-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sb-dimension-inputs input {
    flex: 1;
}

.sb-dimension-inputs span {
    color: #6b7280;
    font-weight: 600;
}

.sb-price-display {
    background: #111827;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
}

.sb-price-display .label {
    font-size: 0.875rem;
    color: #9ca3af;
    display: block;
    margin-bottom: 0.25rem;
}

.sb-price-display .price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #4ade80;
}

/* Design Tool Specific Styles */
.sb-designer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.sb-designer-layout {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    gap: 1.5rem;
    margin-top: 2rem;
}

.sb-designer-sidebar,
.sb-designer-tools {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
}

.sb-designer-sidebar h3,
.sb-designer-tools h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e40af;
}

.sb-designer-canvas-area {
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 500px;
}

.sb-designer-canvas {
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.sb-tool-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.sb-tool-btn:hover {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.sb-tool-btn svg {
    flex-shrink: 0;
}

/* Terms & Conditions Page */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.terms-content h2 {
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-content h3 {
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* WooCommerce Enhancements */
.woocommerce .product .sb-product-options {
    margin-bottom: 1.5rem;
}

.woocommerce div.product form.cart {
    display: flex;
    flex-direction: column;
}

.woocommerce div.product form.cart .button {
    margin-top: 1rem;
}

/* Cart Page */
.woocommerce-cart .sb-product-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.woocommerce-cart .sb-product-meta strong {
    color: #374151;
}

/* Responsive Design Tool */
@media (max-width: 1200px) {
    .sb-designer-layout {
        grid-template-columns: 1fr;
    }
    
    .sb-designer-sidebar,
    .sb-designer-tools {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .sb-designer-sidebar h3,
    .sb-designer-tools h3 {
        grid-column: 1 / -1;
    }
}

/* Quick Ship Badge */
.sb-quick-ship {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

/* Shipping Notice */
.sb-shipping-notice {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Product Category Grid */
.sb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.sb-category-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sb-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.sb-category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sb-category-card-content {
    padding: 1.25rem;
}

/* Alert Messages */
.sb-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.sb-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.sb-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.sb-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Loading Spinner */
.sb-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
