/**
 * Second Hand Marketplace Styles
 */

/* Hide page header on archive and single pages */
body.post-type-archive-second_hand_item .l-section.c-page-header,
body.post-type-archive-second_hand_item .c-page-header--header-type-1,
body.post-type-archive-second_hand_item .c-page-header--default,
body.post-type-archive-second_hand_item .c-page-header--post,
body.post-type-archive-second_hand_item .c-page-header--low,
body.single-second_hand_item .l-section.c-page-header,
body.single-second_hand_item .c-page-header--header-type-1,
body.single-second_hand_item .c-page-header--default,
body.single-second_hand_item .c-page-header--post,
body.single-second_hand_item .c-page-header--low,
body:has(.shm-submission-form-wrapper) .l-section.c-page-header,
body:has(.shm-submission-form-wrapper) .c-page-header--header-type-1,
body:has(.shm-submission-form-wrapper) .c-page-header--default,
body:has(.shm-submission-form-wrapper) .c-page-header--post,
body:has(.shm-submission-form-wrapper) .c-page-header--low,
body:has(.shm-user-items-wrapper) .l-section.c-page-header,
body:has(.shm-user-items-wrapper) .c-page-header--header-type-1,
body:has(.shm-user-items-wrapper) .c-page-header--default,
body:has(.shm-user-items-wrapper) .c-page-header--post,
body:has(.shm-user-items-wrapper) .c-page-header--low {
    display: none !important;
}

/* User Items Page */
.shm-user-items-wrapper {
    padding: 40px 0;
    direction: rtl;
    min-height: 60vh;
}

.shm-user-items-wrapper .shm-archive-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .shm-user-items-wrapper .shm-archive-layout {
        grid-template-columns: 1fr;
    }
}

.shm-user-items-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    text-align: center;
}

.shm-user-items-header h1 {
    margin: 0;
    font-size: 32px;
    color: #333;
    font-weight: 700;
}

.shm-back-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.shm-back-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.shm-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-right: 4px solid;
}

.shm-notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.shm-user-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .shm-user-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.shm-user-item-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.shm-user-item-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.shm-user-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.shm-user-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.shm-user-item-card:hover .shm-user-item-image img {
    transform: scale(1.05);
}

.shm-user-item-image.shm-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.shm-user-item-content {
    padding: 20px;
    overflow: hidden;
}

.shm-user-item-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.shm-user-item-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.shm-user-item-content h3 a:hover {
    color: #0073aa;
}

.shm-user-item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.shm-user-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
}

.shm-user-item-city {
    color: #666;
    font-size: 14px;
}

.shm-user-item-status {
    margin-bottom: 15px;
}

.shm-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.shm-user-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.shm-edit-btn,
.shm-view-btn,
.shm-bump-btn,
.shm-delete-btn {
    flex: 1 1 calc(25% - 6px);
    min-width: 0;
    padding: 10px 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shm-edit-btn,
.shm-view-btn {
    background: #0073aa;
    color: #fff;
}

.shm-edit-btn:hover,
.shm-view-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.shm-bump-btn {
    background: #46b450;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.shm-bump-btn:hover:not(.shm-bump-disabled) {
    background: #3a9e42;
    transform: translateY(-1px);
}

.shm-bump-btn.shm-bump-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.shm-bump-btn.shm-bump-disabled:hover {
    background: #ccc;
    transform: none;
}

.shm-bump-text {
    display: inline-block;
}

.shm-bump-timer {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.shm-delete-btn {
    background: #dc3232;
    color: #fff;
}

.shm-delete-btn:hover {
    background: #a00;
    transform: translateY(-1px);
}

.shm-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.shm-no-items {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.shm-no-items p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

.shm-pagination {
    margin-top: 40px;
    text-align: center;
}

.shm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.shm-pagination .page-numbers:hover,
.shm-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* User Edit Page */
.shm-user-edit-wrapper {
    padding: 40px 0;
    direction: rtl;
    min-height: 60vh;
}

.shm-user-edit-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.shm-user-edit-header h1 {
    margin: 0;
    font-size: 32px;
    color: #333;
    font-weight: 700;
}

@media (max-width: 768px) {
    .shm-user-items-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shm-user-item-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .shm-edit-btn,
    .shm-view-btn,
    .shm-bump-btn,
    .shm-delete-btn {
        flex: none;
        width: 100%;
        min-width: auto;
        padding: 12px 15px;
        font-size: 14px;
        white-space: normal;
        text-overflow: clip;
    }
    
    .shm-user-edit-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* RTL Support */
.shm-wrapper,
.shm-container,
.shm-form,
.shm-item-card {
    direction: rtl;
    text-align: right;
}

/* Container */
.shm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Submission Form */
.shm-submission-form-wrapper {
    padding: 40px 0;
    direction: rtl;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

.shm-submission-form-wrapper .shm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.shm-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-top: 20px;
}

.shm-form h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid #c49022;
    position: relative;
}

.shm-form h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: #c49022;
}

.shm-form h3 {
    margin-top: 40px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-right: 4px solid #c49022;
}

.shm-form-group {
    margin-bottom: 25px;
}

.shm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .shm-form {
        padding: 25px 20px;
    }
    
    .shm-form h2 {
        font-size: 26px;
        padding-bottom: 15px;
    }
    
    .shm-form h3 {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .shm-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.shm-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.shm-form-group label::after {
    content: '';
    margin-right: 5px;
}

.shm-input,
.shm-textarea,
.shm-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
}

.shm-input:focus,
.shm-textarea:focus,
.shm-select:focus {
    outline: none;
    border-color: #c49022;
    box-shadow: 0 0 0 3px rgba(196, 144, 34, 0.1);
}

.shm-input:hover,
.shm-textarea:hover,
.shm-select:hover {
    border-color: #c49022;
}

.shm-input[readonly],
.shm-input[disabled] {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #e0e0e0;
}

.shm-contact-note {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #e7f3ff;
    border-right: 3px solid #0073aa;
    border-radius: 6px;
    line-height: 1.6;
}

.shm-warning {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 6px;
    border-right: 3px solid #dc3545;
}

.shm-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.shm-login-required h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 28px;
}

.shm-login-required p {
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 16px;
}

.shm-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.shm-submit-btn {
    background: linear-gradient(135deg, #c49022 0%, #a67c1a 100%);
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 144, 34, 0.3);
    width: 100%;
    margin-top: 20px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.shm-submit-btn:hover {
    background: linear-gradient(135deg, #a67c1a 0%, #8a6615 100%);
    box-shadow: 0 6px 20px rgba(196, 144, 34, 0.4);
    transform: translateY(-2px);
}

.shm-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(196, 144, 34, 0.3);
}

.shm-terms-checkbox {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.shm-terms-checkbox:hover {
    border-color: #c49022;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.shm-terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
}

.shm-terms-checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #c49022;
}

.shm-terms-checkbox a {
    color: #c49022;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.shm-terms-checkbox a:hover {
    color: #a67c1a;
}

.shm-animals-warning {
    margin-top: 15px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.shm-animals-warning p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.shm-animals-warning strong {
    color: #856404;
    font-weight: 700;
}

.shm-price-type-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.shm-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.shm-radio-label:hover {
    background: rgba(196, 144, 34, 0.1);
}

.shm-radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #c49022;
}

.shm-radio-label input[type="radio"]:checked + span {
    color: #c49022;
    font-weight: 600;
}

.shm-price-input-wrapper {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #c49022;
}

#shm_price_wrapper {
    display: block;
}

.shm-message {
    margin-top: 25px;
    padding: 18px 20px;
    border-radius: 8px;
    display: none;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shm-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
    display: block;
}

.shm-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
    display: block;
}

.shm-image-preview {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

.shm-image-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shm-image-preview img:hover {
    transform: scale(1.05);
    border-color: #c49022;
    box-shadow: 0 4px 15px rgba(196, 144, 34, 0.3);
}

.shm-form-group small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.shm-form-group input[type="file"] {
    padding: 12px;
    border: 2px dashed #c49022;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shm-form-group input[type="file"]:hover {
    background: #fffbf0;
    border-color: #a67c1a;
}

/* Single Item Page */
.shm-single-item-wrapper {
    padding: 40px 0;
    direction: rtl;
}

.shm-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.shm-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

.shm-breadcrumb a:hover {
    color: #005a87;
    text-decoration: underline;
}

.shm-breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.shm-item-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 3px solid #0073aa;
}

.shm-item-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.shm-item-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.shm-price {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    background: #e7f3ff;
    padding: 8px 20px;
    border-radius: 8px;
}

.shm-city {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
}

.shm-city svg {
    width: 16px;
    height: 16px;
}

.shm-condition {
    padding: 8px 15px;
    background: #fff3cd;
    border-radius: 20px;
    font-size: 14px;
    color: #856404;
    font-weight: 600;
}

.shm-item-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

@media (max-width: 968px) {
    .shm-item-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.shm-item-gallery {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.shm-main-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

.shm-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.shm-main-image:hover img {
    transform: scale(1.02);
}

.shm-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.shm-thumbnail {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
    opacity: 0.7;
    position: relative;
    display: block;
}

.shm-thumbnail:hover {
    border-color: #0073aa;
    opacity: 1;
    transform: scale(1.05);
}

.shm-thumbnail.active {
    border-color: #0073aa;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.3);
}

.shm-thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.shm-main-image img,
.shm-thumbnail {
    cursor: pointer;
}

/* Gallery Modal */
.shm-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shm-gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.shm-gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shm-gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s;
    padding: 0;
    line-height: 1;
}

.shm-gallery-close:hover {
    opacity: 0.7;
}

.shm-gallery-prev,
.shm-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
}

.shm-gallery-prev {
    right: 20px;
}

.shm-gallery-next {
    left: 20px;
}

.shm-gallery-prev:hover,
.shm-gallery-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.shm-gallery-main {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.shm-gallery-slide {
    display: none;
    width: 100%;
    text-align: center;
}

.shm-gallery-slide.active {
    display: block;
}

.shm-gallery-slide img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.shm-gallery-thumbnails-modal {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: auto;
    padding: 10px 0;
}

.shm-gallery-thumb-modal {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
}

.shm-gallery-thumb-modal:hover {
    opacity: 1;
    transform: scale(1.1);
}

.shm-gallery-thumb-modal.active {
    border-color: #0073aa;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.3);
}

.shm-gallery-thumb-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .shm-gallery-modal-content {
        width: 95%;
    }
    
    .shm-gallery-close {
        top: -40px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .shm-gallery-prev,
    .shm-gallery-next {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .shm-gallery-prev {
        right: 10px;
    }
    
    .shm-gallery-next {
        left: 10px;
    }
    
    .shm-gallery-slide img {
        max-height: 60vh;
    }
    
    .shm-gallery-thumb-modal {
        width: 60px;
        height: 60px;
    }
}

.shm-item-details {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.shm-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

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

.shm-contact-box {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2);
}

.shm-contact-box h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.shm-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shm-contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.shm-contact-item strong {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.shm-contact-item span,
.shm-contact-item a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* Item Layout */
.shm-item-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 1200px) {
    .shm-item-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.shm-item-main-content {
    min-width: 0;
}

/* Similar Products Sidebar */
.shm-similar-products-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
}

.shm-similar-products-sidebar:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .shm-similar-products-sidebar {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

.shm-similar-products-sidebar h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 700;
    padding-bottom: 18px;
    border-bottom: 3px solid #c49022;
    text-align: center;
    position: relative;
}

.shm-similar-products-sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: #c49022;
    border-radius: 2px;
}

.shm-similar-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shm-similar-product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.shm-similar-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #c49022;
}

.shm-similar-product-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.shm-product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.shm-product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shm-similar-product-item:hover .shm-product-image::before {
    opacity: 1;
}

.shm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shm-similar-product-item:hover .shm-product-image img {
    transform: scale(1.05);
}

.shm-product-content {
    padding: 18px;
}

.shm-product-content h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shm-product-price {
    color: #c49022;
    font-weight: 700;
    font-size: 18px;
    margin-top: 8px;
}

/* Share Buttons */
.shm-share-buttons {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.shm-share-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.shm-share-buttons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.shm-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shm-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shm-share-btn svg {
    flex-shrink: 0;
}

.shm-share-facebook {
    background: #1877f2;
    color: #fff;
}

.shm-share-facebook:hover {
    background: #166fe5;
    color: #fff;
}

.shm-share-whatsapp {
    background: #25d366;
    color: #fff;
}

.shm-share-whatsapp:hover {
    background: #20ba5a;
    color: #fff;
}

.shm-share-copy {
    background: #6c757d;
    color: #fff;
}

.shm-share-copy:hover {
    background: #5a6268;
    color: #fff;
}

.shm-share-after-submit {
    margin-top: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 8px;
    border: 2px solid #0073aa;
}

.shm-share-after-submit .shm-share-label {
    color: #0073aa;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .shm-share-buttons-list {
        flex-direction: column;
    }
    
    .shm-share-btn {
        width: 100%;
        justify-content: center;
    }
}

.shm-reveal-phone-btn {
    background: #c49022;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
}

.shm-reveal-phone-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.shm-reveal-phone-btn:active {
    transform: translateY(0);
}

.shm-phone-display {
    display: inline-block;
}

.shm-phone-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
    display: inline-block;
}

.shm-phone-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.shm-categories {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.shm-categories strong {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-size: 16px;
}

.shm-category-tag {
    display: inline-block;
    padding: 6px 14px;
    margin-left: 8px;
    margin-bottom: 8px;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
}

.shm-category-tag:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

/* Related Items */
.shm-related-items {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #eee;
}

.shm-related-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.shm-related-grid {
    margin-top: 20px;
}

/* Archive Page */
/* Archive Layout */
.shm-archive-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 25px;
    align-items: start;
}

@media (max-width: 1024px) {
    .shm-archive-layout {
        grid-template-columns: 1fr;
    }
    
    .shm-archive-sidebar {
        order: -1;
    }
}

/* Archive Sidebar */
.shm-archive-sidebar {
    position: sticky;
    top: 20px;
}

.shm-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.shm-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shm-user-avatar {
    flex-shrink: 0;
}

.shm-user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0073aa;
}

.shm-user-info {
    flex: 1;
}

.shm-user-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.shm-user-items-count {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.shm-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shm-sidebar-btn {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.shm-sidebar-btn.shm-btn-primary {
    background: #0073aa;
    color: #fff;
}

.shm-sidebar-btn.shm-btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.shm-sidebar-btn.shm-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
}

.shm-sidebar-btn.shm-btn-secondary:hover {
    background: #e0e0e0;
    border-color: #0073aa;
    color: #0073aa;
}

.shm-sidebar-login {
    text-align: center;
}

.shm-login-prompt h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.shm-login-prompt p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.shm-archive-wrapper {
    padding: 40px 0;
    direction: rtl;
}

.shm-warning-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.shm-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.shm-warning-content {
    flex: 1;
    color: #856404;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
}

.shm-warning-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #664d03;
}

@media (max-width: 768px) {
    .shm-warning-notice {
        flex-direction: column;
        gap: 10px;
    }
    
    .shm-warning-icon {
        align-self: center;
    }
}

.shm-archive-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.shm-archive-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.shm-archive-description {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

/* Filters Section */
.shm-filters-section {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shm-filters-form {
    direction: rtl;
}

.shm-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    align-items: end;
}

@media (max-width: 768px) {
    .shm-filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .shm-filter-group {
        width: 100%;
    }
    
    .shm-price-group {
        grid-column: span 1;
    }
    
    .shm-price-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .shm-price-separator {
        display: none;
    }
    
    .shm-filter-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .shm-filter-btn {
        width: 100%;
    }
}

.shm-filter-group {
    display: flex;
    flex-direction: column;
}

.shm-filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.shm-filter-input,
.shm-filter-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.shm-filter-input:focus,
.shm-filter-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.shm-price-group {
    grid-column: span 2;
}

.shm-price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shm-price-inputs .shm-filter-input {
    flex: 1;
}

.shm-price-separator {
    color: #666;
    font-weight: 600;
}

.shm-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shm-filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.shm-filter-submit {
    background: #0073aa;
    color: #fff;
}

.shm-filter-submit:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.shm-filter-reset {
    background: #6c757d;
    color: #fff;
}

.shm-filter-reset:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

@media (max-width: 768px) {
    .shm-filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .shm-filter-group {
        width: 100%;
    }
    
    .shm-price-group {
        grid-column: span 1;
    }
    
    .shm-price-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .shm-price-separator {
        display: none;
    }
    
    .shm-filter-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .shm-filter-btn {
        width: 100%;
    }
}

.shm-results-count {
    margin-bottom: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-right: 4px solid #0073aa;
    border-radius: 4px;
}

.shm-results-count p {
    margin: 0;
    color: #333;
    font-weight: 600;
}

@media (max-width: 768px) {
    .shm-filters-row {
        grid-template-columns: 1fr;
    }
    
    .shm-price-group {
        grid-column: span 1;
    }
    
    .shm-filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .shm-filter-btn {
        width: 100%;
    }
}

.shm-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .shm-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.shm-item-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.shm-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

.shm-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.shm-item-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
}

.shm-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shm-item-card:hover .shm-item-image img {
    transform: scale(1.1);
}

.shm-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.shm-item-info {
    padding: 10px;
    background: #fff;
}

.shm-item-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    min-height: 30px;
}

.shm-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.shm-item-meta .shm-publish-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.shm-item-meta .shm-publish-date svg {
    width: 14px;
    height: 14px;
}

.shm-item-meta .shm-price {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    background: #e7f3ff;
    padding: 4px 12px;
    border-radius: 6px;
}

.shm-item-meta .shm-price-delivery {
    color: #f56e28;
    background: #fff4e6;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.shm-user-item-price.shm-price-delivery {
    color: #f56e28;
    background: #fff4e6;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.shm-item-meta .shm-city {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shm-item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shm-pagination {
    margin-top: 40px;
    text-align: center;
}

.shm-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.shm-pagination .page-numbers:hover,
.shm-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.shm-no-items {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.shm-error {
    text-align: center;
    padding: 60px 20px;
    color: #d9534f;
    font-size: 18px;
}


