/**
 * استایل صفحه محصول Salomon
 * نسخه سبک و مدرن با طراحی responsive
 */

/* ========================
   Reset & Base Styles
   ======================== */


/* در فایل salomon-product.css یا namshi-product.css */
.salomon-product-wrapper,
.namshi-product-wrapper {
    font-family: 'IRANYekan', 'Vazirmatn', Tahoma, sans-serif !important;
}

.salomon-product-wrapper {
    background: #f8f8f8;
    color: #232323;
    line-height: 1.6;
    padding: 40px 0;
}

.salomon-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   Header Section
   ======================== */
.salomon-header {
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.salomon-logo {
    text-align: center;
    margin-bottom: 20px;
}

.salomon-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.salomon-search-form {
    max-width: 900px;
    margin: 0 auto;
}

.salomon-search-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 12px;
}

.salomon-search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.salomon-search-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.salomon-search-btn {
    padding: 16px 35px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.salomon-search-btn:hover {
    background: #333;
    transform: scale(1.02);
}

/* ========================
   Alert Messages
   ======================== */
.salomon-alert {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
}

.salomon-alert.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.salomon-alert.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* ========================
   Product Page Layout
   ======================== */
.salomon-product-page {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
    margin-bottom: 40px;
}

.salomon-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* ========================
   Gallery Section
   ======================== */
.salomon-gallery-section {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.salomon-main-image-container {
    position: relative;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 1;
}

.salomon-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.salomon-main-image:hover {
    transform: scale(1.05);
}

/* Navigation Buttons */
.salomon-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.salomon-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.salomon-nav-btn.prev {
    left: 16px;
}

.salomon-nav-btn.next {
    right: 16px;
}

.salomon-nav-btn svg {
    width: 24px;
    height: 24px;
    color: #000;
}

/* Thumbnail Grid */
.salomon-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.salomon-thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.salomon-thumbnail:hover {
    border-color: #ddd;
    transform: scale(1.05);
}

.salomon-thumbnail.active {
    border-color: #000;
}

.salomon-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================
   Product Info Section
   ======================== */
.salomon-product-info {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.salomon-vendor {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    color: #666;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.salomon-product-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    margin-bottom: 24px;
}

/* ========================
   Size Selector
   ======================== */
.salomon-size-selector {
    margin-top: 32px;
}

.salomon-size-selector h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.salomon-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.salomon-size-option {
    padding: 8px 11px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    user-select: none;
    direction: ltr;
}

.salomon-size-option.available:hover {
    border-color: #000;
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.salomon-size-option.available.selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

.salomon-size-option.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.5;
}

/* Size Details */
.salomon-size-details {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.salomon-size-details.active {
    opacity: 1;
    max-height: 500px;
}

.salomon-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.salomon-detail-row:last-child {
    border-bottom: none;
}

.salomon-detail-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.salomon-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.salomon-price-large {
    font-size: 24px;
    color: #000;
}

/* Stock Status */
.salomon-stock-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.salomon-stock-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.salomon-stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Add to Cart Button */
.salomon-add-to-cart {
    width: 100%;
    padding: 18px 32px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.salomon-add-to-cart:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.salomon-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================
   Price Details Section
   ======================== */
.salomon-price-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.salomon-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.salomon-price-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.salomon-price-current {
    font-size: 32px;
    font-weight: 800;
    color: #262C49;
    letter-spacing: -0.5px;
}

.salomon-price-compare {
    font-size: 20px;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
}

.salomon-price-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

/* ========================
   Product Details Sections
   ======================== */
.salomon-product-details {
    margin-top: 60px;
}

.salomon-detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
}

.salomon-detail-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    padding-bottom: 16px;
    border-bottom: 2px solid #000;
}

.salomon-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* Specifications Table */
.salomon-specs-table {
    width: 100%;
}

.salomon-spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.salomon-spec-row:last-child {
    border-bottom: none;
}

.salomon-spec-label {
    font-weight: 600;
    color: #000;
    font-size: 14px;
}

.salomon-spec-value {
    color: #555;
    font-size: 14px;
}

/* ========================
   Related Products
   ======================== */
.salomon-related-section {
    margin-top: 60px;
}

.salomon-related-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: #000;
}

.salomon-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.salomon-related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

.salomon-related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.salomon-related-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f5f5f5;
}

.salomon-related-info {
    padding: 16px;
}

.salomon-related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    color: #000;
}

.salomon-related-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* ========================
   Footer
   ======================== */
.salomon-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #e5e5e5;
}

/* ========================
   Loading Spinner
   ======================== */
.salomon-loading {
    text-align: center;
    padding: 60px 20px;
}

.salomon-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 968px) {
    .salomon-product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .salomon-product-info,
    .salomon-gallery-section {
        position: static;
    }

    .salomon-spec-row {
        grid-template-columns: 1fr;
    }

    .salomon-product-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .salomon-price-current {
        font-size: 26px;
    }
    
    .salomon-price-compare {
        font-size: 18px;
    }
    
    .salomon-price-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .salomon-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .salomon-container {
        padding: 0 16px;
    }

    .salomon-product-page {
        padding: 24px 20px;
    }

    .salomon-product-title {
        font-size: 22px;
    }

    .salomon-search-wrapper {
        flex-direction: column;
    }

    .salomon-search-btn {
        width: 100%;
    }

    .salomon-thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }

    .salomon-size-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .salomon-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .salomon-detail-section {
        padding: 20px;
    }
}

/* ========================
   Print Styles
   ======================== */
@media print {
    .salomon-header,
    .salomon-footer,
    .salomon-nav-btn,
    .salomon-add-to-cart,
    .salomon-search-form {
        display: none;
    }

    .salomon-product-page {
        box-shadow: none;
    }
}



/* 🆕 استایل بج‌های اطلاعاتی - نسخه ساده */
.salomon-info-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.salomon-info-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.salomon-info-badge svg {
    flex-shrink: 0;
    color: #3498db;
}

/* 📱 ریسپانسیو */
@media (max-width: 768px) {
    .salomon-info-badges {
        padding: 12px;
    }
    
    .salomon-info-badge {
        font-size: 13px;
    }
    
    .salomon-info-badge svg {
        width: 18px;
        height: 18px;
    }
}
