/* ============================================ */
/* EMBROIDERED EMBLEM CALCULATOR SPECIFIC      */
/* ============================================ */

/* Main app container constraint */
#emblem-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Product Showcase Section */
.product-showcase {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.product-showcase-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.product-showcase-image {
    text-align: center;
}

.product-showcase-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.product-showcase-image img:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 12px 32px rgba(76, 179, 84, 0.3);
}

.product-showcase-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .product-showcase-inner {
        grid-template-columns: 1fr;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
}

/* Emblem-specific addon section styles */
.addon-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.addon-item label {
    margin: 0;
}

/* Custom toggle switches for emblem options */
.switch { 
    position: relative; 
    display: inline-block; 
    width: 44px; 
    height: 24px; 
}

.switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: #ccc; 
    transition: .3s; 
    border-radius: 24px; 
}

.slider:before { 
    position: absolute; 
    content: ""; 
    height: 18px; 
    width: 18px; 
    left: 3px; 
    bottom: 3px; 
    background-color: white; 
    transition: .3s; 
    border-radius: 50%; 
}

input:checked + .slider { 
    background-color: var(--primary-color); 
}

input:checked + .slider:before { 
    transform: translateX(20px); 
}

/* ShopWorks Guide specific styles */
.shopworks-guide-container {
    margin: 2rem 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.guide-header {
    background: #f7f7f7;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.guide-header:hover {
    background: #f0f0f0;
}

.guide-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.internal-badge {
    background: #ff6b6b;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: normal;
}

.guide-toggle {
    transition: transform 0.3s;
    color: var(--muted-text-color);
}

.guide-toggle.expanded {
    transform: rotate(180deg);
}

.guide-content {
    display: none;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.guide-content.show {
    display: block;
}

.guide-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.guide-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.guide-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-info ul {
    list-style: none;
    padding: 0;
}

.vendor-info li {
    padding: 0.25rem 0;
}

/* Part numbers table specific to emblems */
.part-numbers-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.part-numbers-table th {
    background: #f7f7f7;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.part-numbers-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.part-numbers-table tr:hover {
    background: #f9f9f9;
}

.part-numbers-table code {
    background: #f3f3f3;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-color);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--muted-text-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* Important note styles */
.important-note {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

.important-note strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

/* Size guide table */
.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.size-guide-table th,
.size-guide-table td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.size-guide-table th {
    background: #f7f7f7;
    font-weight: 600;
}

/* Emblem print styles */
@media print {
    /* Hide guide sections for print */
    .shopworks-guide-container {
        display: none !important;
    }
    
    /* Clean up order summary for print */
    .order-summary {
        border-top: 2px solid var(--border-color);
        padding-top: 1rem;
    }
    
    .summary-item {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    /* Ensure options are clearly visible */
    .addon-section {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .addon-item {
        margin-bottom: 0.5rem;
    }
    
    /* Hide switches and show checkbox state */
    .switch {
        display: none;
    }
    
    .addon-item input[type="checkbox"]:checked + label:after {
        content: " ✓";
        color: var(--primary-color);
        font-weight: bold;
    }
}

/* Success modal emblem-specific overrides */
.modal-overlay.active #emblem-app {
    filter: blur(2px);
}

/* Emblem results section */
.results-section {
    background-color: #f7fdf8;
    border: 1px solid #d4edda;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: background-color 0.3s;
}

/* Input groups for emblem dimensions */
.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group div {
    flex: 1;
}

/* Copy functionality feedback */
.copy-feedback {
    position: absolute;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
}

/* Emblem-specific responsive design */
@media (max-width: 800px) {
    .guide-content {
        max-height: none;
    }
    
    .part-numbers-table {
        font-size: 0.875rem;
    }
    
    .part-numbers-table th,
    .part-numbers-table td {
        padding: 0.5rem;
    }
}