a {
    color: var(--colorPrimary);
    text-decoration: none;
}


.product-main {
    display: flex;
    gap: 30px;
    background: white;
    padding: 30px;
}

/* Product Images */
.product-images {
    width: 35%;
    min-width: 420px;
}

.product-main-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--colorPrimary);
}

/* Product Info */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}

.product-prices {
    margin-bottom: 15px;
}

.product-old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-new-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--colorPrimary);
}

.product-short-desc {
    color: #666;
    margin: 15px 0;
    line-height: 1.7;
}

/* Product Specifications Table */
.product-specs {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.product-specs tr {
    border-bottom: 1px dotted rgba(0, 0, 0, .1);
}

.product-specs tr:nth-child(even) {
    background-color: rgba(0, 0, 0, .025);
}

.product-specs th {
    text-align: right;
    padding: 12px 15px;
    font-weight: 600;
    width: 40%;
    color: #444;
}

.product-specs td {
    text-align: right;
    padding: 12px 15px;
    color: #666;
}

/* Add to Cart */
.add-to-cart {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.quantity-input {
    width: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.add-to-cart-btn {
    background-color: var(--colorPrimary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: var(--colorPrimary);
}

.product-meta {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
}

.product-meta .product-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    font-size: 14px;
}

.product-meta .product-meta-item .meta-item-label {
    font-weight: 700;
    color: var(--colorText);
}

.product-meta .product-meta-item .meta-item-content {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--colorPrimary);
}

.product-meta .product-meta-item .meta-item-content a::after {
    content: " ,";
}

.product-meta .product-meta-item .meta-item-content a:last-child::after {
    content: "";
}

/* Tabs */
.product-tabs {
    margin-top: 40px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

ul.basic-tabs {
    background: #f5f5f5;
    display: flex;
    padding: 10px 0 !important;
    border-radius: 8px;
    margin-bottom: 20px;
}

ul.basic-tabs li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: #444;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

ul.basic-tabs li.active {
    color: var(--colorPrimary);
    font-weight: 600;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Reviews Form */
.review-form {
    margin-bottom: 30px;
}

.review-form h3 {
    margin-bottom: 20px;
    color: #222;
}

.review-form form {
    border: 1px solid #ebebeb;
    padding: 20px;
    border-radius: 5px;
    background: #fbfbfb;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
}

.rating-input input[type="radio"]:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: #ffc107;
}

.submit-review-btn {
    background-color: var(--colorPrimary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

/* Reviews List */
.reviews-list {
    margin-top: 30px;
}

.reviews-list-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.reviews-list-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: #222;
}

.review-date {
    color: #999;
    font-size: 12px;
}

.review-rating {
    color: #ffc107;
    margin: 5px 0;
}

.review-msg {
    color: #666;
    line-height: 1.6;
}

/* Related Products */
.related-products {
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
    background: #D7D7D7;
    border-radius: 0 0 8px 8px;
    padding: 30px;
}

.related-products h2 {
    font-size: 26px;
    margin-bottom: 36px;
    color: #222;
    text-align: center;
}

.related-products .shape-top {
    position: absolute;
    left: 0;
    top: -60px;
    width: 100%;
    height: 60px;
    transform: rotate(180deg);
}

.related-products .shape-top img,
.related-products .shape-top svg {
    width: 200%;
    height: 100%;
}

.related-products .shape-top svg path {
    fill: #D7D7D7;
}

.related-products .shape-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: #fff;
    z-index: 0;
}

.related-products .shape-bottom img,
.related-products .shape-bottom svg {
    width: 200%;
    height: 100px;
}

.related-products .shape-bottom svg path {
    fill: #D7D7D7;
}

.products-grid {
    position: relative;
    z-index: 1;
}

/* Print Year Selection */
.print-year-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.print-year-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

.print-year-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.print-year-option {
    position: relative;
    min-width: 120px;
    padding: 12px 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.print-year-option:hover {
    border-color: var(--colorPrimary);
    transform: translateY(-2px);
}

.print-year-option.active {
    border-color: var(--colorPrimary);
    background: rgba(112, 41, 227, 0.05);
}

.print-year-option input[type="radio"] {
    display: none;
}

.print-year-option label {
    display: block;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.print-year-option.active label {
    color: var(--colorPrimary);
}

.print-year-option .year-price {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.print-year-option.active .year-price {
    color: var(--colorPrimary);
    font-weight: 600;
}

.print-year-error {
    display: none;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
}

/* Out of Stock Badge */
.out-of-stock-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Grayscale Image */
.product-out-of-stock .product-main-image,
.product-out-of-stock .product-thumbnail {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Disabled Add to Cart Button */
.product-out-of-stock .add-to-cart-btn {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Out of Stock Overlay */
.product-out-of-stock .product-images::before {
    content: 'ناموجود';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.9);
    color: white;
    font-size: 36px;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-out-of-stock .product-images:hover::before {
    opacity: 1;
}

/* Grayed out Prices */
.product-out-of-stock .product-new-price,
.product-out-of-stock .product-old-price {
    color: #999 !important;
    text-decoration: line-through !important;
}

/* Notify Me Section */
.notify-me-section {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    color: white;
}

.notify-me-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.notify-me-section p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.notify-me-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.notify-me-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.notify-me-form button {
    background: white;
    color: #3498db;
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.notify-me-form button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Alternative Products Section */
.alternative-products {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px dashed #e0e0e0;
}

.alternative-products h2 {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    margin-bottom: 25px;
    text-align: center;
}

.alternative-products .products-grid {
    margin-top: 20px;
}

/* Similar Products Badge */
.similar-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
}

/* =============================================================
   RESPONSIVE STYLES FOR PRODUCT PAGE
   ============================================================= */

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {

    /* Product Main Layout - Stack vertically */
    .product-main {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    /* Product Images */
    .product-images {
        width: 100%;
        min-width: auto;
    }

    .product-main-image {
        height: 350px;
    }

    .product-thumbnails {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    /* Product Info */
    .product-info {
        width: 100%;
    }

    .product-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .product-prices {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .product-old-price {
        font-size: 16px;
        margin-left: 0;
    }

    .product-new-price {
        font-size: 22px;
    }

    .product-short-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Product Specifications Table */
    .product-specs {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }

    .product-specs th,
    .product-specs td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .product-specs th {
        width: 45%;
    }

    /* Add to Cart */
    .add-to-cart {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .quantity-input {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .add-to-cart-btn {
        padding: 14px;
        font-size: 16px;
        width: 100%;
    }

    /* Tabs */
    .product-tabs {
        margin-top: 30px;
        padding: 15px;
    }

    ul.basic-tabs {
        flex-direction: column;
        padding: 5px 0 !important;
    }

    ul.basic-tabs li {
        width: 100%;
        padding: 12px;
        border-bottom: 1px solid #ddd;
    }

    ul.basic-tabs li:last-child {
        border-bottom: none;
    }

    .tab-content {
        padding: 15px 0;
    }

    /* Reviews Form */
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .rating-input {
        flex-wrap: wrap;
    }

    .submit-review-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    /* Reviews List */
    .review-item {
        padding: 12px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .review-date {
        font-size: 11px;
    }

    /* Related Products */
    .related-products {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .related-products h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* Tablet Devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Product Main Layout */
    .product-main {
        padding: 25px;
        gap: 25px;
    }

    /* Product Images */
    .product-images {
        width: 40%;
        min-width: 350px;
    }

    .product-main-image {
        height: 450px;
    }

    /* Product Info */
    .product-title {
        font-size: 22px;
    }

    .product-new-price {
        font-size: 22px;
    }

    /* Product Specifications Table */
    .product-specs th,
    .product-specs td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Tabs */
    .product-tabs {
        padding: 18px;
    }

    ul.basic-tabs li {
        padding: 8px;
        font-size: 14px;
    }

    /* Related Products */
    .related-products {
        padding: 25px;
    }
}

/* Small Desktop (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {

    /* Product Main Layout */
    .product-main {
        padding: 28px;
        gap: 28px;
    }

    /* Product Images */
    .product-images {
        width: 38%;
        min-width: 380px;
    }

    .product-main-image {
        height: 480px;
    }

    /* Product Info */
    .product-title {
        font-size: 23px;
    }
}

/* Large Desktop (1201px - 1440px) */
@media (min-width: 1201px) and (max-width: 1440px) {

    /* Product Main Layout */
    .product-main {
        padding: 30px;
        gap: 30px;
    }

    /* Product Images */
    .product-images {
        width: 36%;
        min-width: 400px;
    }

    .product-main-image {
        height: 500px;
    }
}

/* Extra Large Desktop (1441px and above) */
@media (min-width: 1441px) {

    /* Product Main Layout */
    .product-main {
        padding: 35px;
        gap: 35px;
    }

    /* Product Images */
    .product-images {
        width: 35%;
        min-width: 420px;
    }

    .product-main-image {
        height: 520px;
    }
}

/* Landscape Mobile (for wider mobile screens) */
@media (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
    .product-main-image {
        height: 280px;
    }

    .product-info {
        font-size: 14px;
    }

    .product-title {
        font-size: 18px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .product-main-image,
    .product-thumbnail {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {

    .breadcrumb,
    .add-to-cart,
    .product-tabs ul.basic-tabs li:not(.active),
    .review-form,
    .related-products {
        display: none !important;
    }

    .product-main,
    .product-tabs,
    .tab-content {
        box-shadow: none !important;
        border: none !important;
    }

    .product-title {
        font-size: 28px !important;
    }

    .product-prices {
        font-size: 20px !important;
    }
}