/* Envelopes Page Specific Styles */

/* Navigation styles handled by styles.css */
.envelopes-main {
    padding-top: 120px;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 6rem;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.customizer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 6rem auto 6rem auto;
}

/* Preview Section */
.preview-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.envelope-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.envelope-side-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.envelope-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.envelope {
    position: relative;
    width: 440px;
    height: 272px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#design-canvas {
    width: 100%;
    height: 100%;
    border: 2px dashed transparent;
    cursor: move;
}

#design-canvas:hover {
    border-color: var(--primary-color);
}

.envelope:has(#design-canvas.selected) {
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 15px rgba(26, 77, 99, 0.3);
}

.envelope-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.control-group h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Paper Options */
.paper-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.paper-option {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.paper-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.paper-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(26, 77, 99, 0.05);
}

.paper-name {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.paper-description {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

/* Size Options */
.size-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.size-option {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.size-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.size-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(26, 77, 99, 0.05);
}

.size-name {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.size-description {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

/* Quantity Section */
.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-input label {
    font-weight: 600;
    color: var(--primary-color);
}

.quantity-input input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quantity-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quantity-info {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Upload Section */
.upload-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    transform: translateY(-2px);
}

.upload-info {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 0;
}

.design-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.design-tips p {
    margin: 0 0 0.5rem 0;
    color: #856404;
    font-weight: 600;
}

.design-tips ul {
    margin: 0;
    padding-left: 1.2rem;
}

.design-tips li {
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Pricing Section */
.pricing-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.price-display,
.total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-label,
.total-label {
    font-weight: 600;
    color: #333;
}

.price-amount,
.total-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.total-display {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

.total-amount {
    font-size: 1.3rem;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.add-to-cart-btn:hover {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .customizer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 3rem auto;
    }

    .page-title {
        font-size: 2rem;
    }

    .envelope {
        width: 352px;
        height: 218px;
    }

    .envelope-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .envelopes-main {
        padding-top: 120px;
    }
    
    .page-title {
        margin-top: 2rem;
    }

    .customizer-container {
        margin: 2.5rem auto;
    }
}

@media (max-width: 568px) {
    .envelopes-main {
        padding-top: 140px;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
    
    .page-subtitle {
        margin-bottom: 4rem;
        font-size: 1.3rem;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .customizer-container {
        margin: 2rem auto;
    }

    .envelope {
        width: 200px;
        height: 125px;
    }

    .control-group {
        padding: 1rem;
    }
    
    .customizer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .envelope-container {
        padding: 1rem;
        min-height: 200px;
    }

    .footer {
        margin-top: 60px;
    }
}