/* فونت وزیر */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn.eot');
    src: url('../fonts/Vazirmatn.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn.woff2') format('woff2'),
         url('../fonts/Vazirmatn.woff') format('woff'),
         url('../fonts/Vazirmatn.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Bold.eot');
    src: url('../fonts/Vazirmatn-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.woff') format('woff'),
         url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Medium.eot');
    src: url('../fonts/Vazirmatn-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn-Medium.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Medium.woff') format('woff'),
         url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Light.eot');
    src: url('../fonts/Vazirmatn-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn-Light.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Light.woff') format('woff'),
         url('../fonts/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Thin.eot');
    src: url('../fonts/Vazirmatn-Thin.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn-Thin.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Thin.woff') format('woff'),
         url('../fonts/Vazirmatn-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    
	font-family: 'Vazir', sans-serif !important;
}
/* ========== VARIABLES & RESET ========== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #8b4513;
    --accent-color: #e67e22;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --font-primary: 'Vazir', 'IRANSans', 'Tahoma', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-hover: 0 15px 40px rgba(230,126,34,0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --border-radius-circle: 50%;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(230,126,34,0.05);
    border-radius: 50%;
    z-index: 0;
}

.breadcrumb::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(44,62,80,0.03);
    border-radius: 50%;
    z-index: 0;
}

.breadcrumb .container {
    position: relative;
    z-index: 1;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    position: relative;
}

.breadcrumb li a {
    color: var(--gray-700);
    text-decoration: none;
    padding: 8px 15px;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.breadcrumb li a i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.breadcrumb li a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.breadcrumb li a:hover i {
    color: white;
}

.breadcrumb li.active {
    color: var(--primary-color);
    font-weight: 700;
    background: white;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    border-right: 3px solid var(--accent-color);
}

.breadcrumb li:not(:last-child)::after {
    content: '\f053';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ========== PRODUCT DETAIL WRAPPER ========== */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========== PRODUCT GALLERY ========== */
.product-gallery {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.product-gallery:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--primary-color));
}

.main-image {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 25px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    position: relative;
    cursor: crosshair;
    transition: all var(--transition-normal);
}

.main-image:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.main-image:hover img {
    transform: scale(1.1);
}

.thumbnail-gallery {
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--gray-200);
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.thumbnails {
    display: flex;
    gap: 15px;
    padding: 5px 0;
}

.thumbnail {
    width: 90px;
    height: 90px;
    border: 3px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.thumbnail:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.thumbnail:hover::after {
    opacity: 1;
}

.thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.3);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.thumbnail:hover img {
    transform: scale(1.2);
}

/* ========== PRODUCT INFO ========== */
.product-info {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(230,126,34,0.1) 0%, transparent 100%);
    border-radius: 0 0 0 150px;
    z-index: 0;
}

.product-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
    background: linear-gradient(135deg, var(--gray-100) 0%, white 100%);
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    font-weight: 500;
}

.product-meta span:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.product-meta span i {
    color: var(--accent-color);
    font-size: 1rem;
}

.product-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.product-model {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    margin-bottom: 15px;
    padding: 10px 15px;
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    border-right: 4px solid var(--accent-color);
    font-size: 1.1rem;
}

.product-model i {
    color: var(--accent-color);
}

.short-description {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px dashed var(--gray-200);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* ========== RATING SECTION ========== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--gray-100) 0%, white 100%);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-200);
}

.product-rating .stars {
    color: #ffc107;
    font-size: 1.3rem;
    letter-spacing: 3px;
    display: flex;
    gap: 2px;
}

.product-rating .stars i {
    filter: drop-shadow(0 2px 4px rgba(255,193,7,0.3));
    transition: all var(--transition-normal);
}

.product-rating .stars i:hover {
    transform: scale(1.2);
}

.rating-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* ========== PRICE SECTION ========== */
.price-section {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg);
    border-right: 5px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230,126,34,0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230,126,34,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230,126,34,0);
    }
}

.price-section::before {
    content: '⍟';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 120px;
    color: rgba(230,126,34,0.1);
    transform: rotate(15deg);
    font-family: 'Vazir', serif;
}

.discounted-price {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(230,126,34,0.2);
    line-height: 1;
}

.original-price {
    font-size: 1.6rem;
    color: var(--gray-500);
    text-decoration: line-through;
    position: relative;
}

.original-price::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    right: -5px;
    height: 2px;
    background: var(--danger-color);
    transform: rotate(-5deg);
}

.discount-badge {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.regular-price .current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(44,62,80,0.2);
}

/* ========== STOCK STATUS ========== */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    border-radius: 40px;
    margin: 15px 0;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stock-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    to {
        left: 200%;
    }
}

.stock-status.in_stock {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #a3cfbb;
}

.stock-status.low_stock {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #ffe69c;
}

.stock-status.out_of_stock {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stock-quantity {
    font-size: 0.95rem;
    opacity: 0.8;
    background: white;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* ========== WARRANTY INFO ========== */
.warranty-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #27ae60;
    margin: 15px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: var(--border-radius-md);
    border-right: 4px solid #27ae60;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.warranty-info i {
    font-size: 1.3rem;
    animation: shieldPulse 2s infinite;
}

@keyframes shieldPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.warranty-desc {
    font-size: 0.95rem;
    opacity: 0.8;
    background: white;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* ========== QUICK SPECS ========== */
.quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-300);
    position: relative;
}

.quick-specs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--primary-color));
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.quick-spec-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.quick-spec-item .spec-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
}

.quick-spec-item .spec-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 20px;
}

/* ========== PRODUCT ACTIONS ========== */
.product-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: white;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.quantity-selector:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.qty-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 1rem;
    transition: all var(--transition-normal);
    font-weight: bold;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

#productQuantity {
    width: 70px;
    border: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    background: white;
    color: var(--primary-color);
}

#productQuantity:focus {
    outline: none;
    background: var(--gray-100);
}

.add-to-cart-btn, .buy-now-btn, .out-of-stock-btn, .notify-btn, .btn-wishlist, .compare-btn {
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.add-to-cart-btn::before, .buy-now-btn::before, .btn-wishlist::before, .compare-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover::before, .buy-now-btn:hover::before, .btn-wishlist:hover::before, .compare-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #9c4e19 100%);
    color: white;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #9c4e19 0%, var(--secondary-color) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.4);
}

.buy-now-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e67e22 100%);
    color: white;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(230,126,34,0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(230,126,34,0.8);
    }
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, var(--accent-color) 100%);
    transform: translateY(-3px) scale(1.02);
}

.out-of-stock-btn {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    cursor: not-allowed;
    grid-column: span 2;
    opacity: 0.8;
}

.notify-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.notify-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52,152,219,0.4);
}

.btn-wishlist {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--gray-200);
}

.btn-wishlist:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231,76,60,0.2);
}

.btn-wishlist.in-wishlist {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
    color: white;
    border-color: var(--danger-color);
}

.compare-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--gray-200);
}

.compare-btn:hover {
    border-color: var(--info-color);
    color: var(--info-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52,152,219,0.2);
}

.compare-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
}

/* ========== SHARE BUTTONS ========== */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.share-buttons::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230,126,34,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.share-buttons span {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-circle);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.3rem;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.share-btn:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-lg);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
}

.share-btn.copy-link {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

/* ========== PRODUCT FEATURES ========== */
.product-features {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--gray-200);
    position: relative;
}

.product-features h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    position: relative;
    padding-right: 15px;
}

.product-features h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
    border-radius: 5px;
}

.product-features h3 i {
    color: var(--accent-color);
    animation: starSpin 3s infinite linear;
}

@keyframes starSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-md);
    color: var(--gray-700);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.product-features li:hover {
    transform: translateX(-5px) translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    background: white;
}

.product-features li i {
    color: #2ecc71;
    font-size: 1.2rem;
    animation: checkBounce 1s infinite;
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ========== PRODUCT TABS ========== */
.product-tabs {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 60px;
    border: 1px solid var(--gray-200);
}

.tabs-nav {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid var(--accent-color);
    overflow-x: auto;
    padding: 0 10px;
    gap: 5px;
}

.tabs-nav li {
    padding: 18px 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-normal);
    white-space: nowrap;
    position: relative;
    font-size: 1.05rem;
}

.tabs-nav li::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.tabs-nav li:hover {
    color: var(--accent-color);
    background: rgba(230,126,34,0.05);
}

.tabs-nav li:hover::before {
    width: 80%;
}

.tabs-nav li.active {
    color: var(--accent-color);
    font-weight: 700;
    background: white;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.tabs-nav li.active::before {
    width: 100%;
}

.tabs-content {
    padding: 40px;
    background: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== DESCRIPTION TAB ========== */
.description-content {
    line-height: 2;
    color: var(--gray-700);
    font-size: 1.05rem;
}

.description-content p {
    margin-bottom: 20px;
}

.description-content h1, .description-content h2, .description-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.description-content ul, .description-content ol {
    padding-right: 20px;
    margin: 15px 0;
}

.description-content li {
    margin-bottom: 8px;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.description-content th, .description-content td {
    padding: 12px;
    border: 1px solid var(--gray-200);
}

.description-content th {
    background: var(--gray-100);
    font-weight: 600;
}

/* ========== SPECIFICATIONS TAB ========== */
.spec-group {
    margin-bottom: 40px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spec-group h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    font-size: 1.3rem;
    position: relative;
    padding-right: 15px;
}

.spec-group h4::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
    border-radius: 5px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spec-table tr {
    transition: background var(--transition-normal);
}

.spec-table tr:hover {
    background: var(--gray-100);
}

.spec-table th,
.spec-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.spec-table th {
    text-align: right;
    color: var(--gray-700);
    font-weight: 600;
    background: var(--gray-100);
    width: 35%;
    font-size: 1.05rem;
}

.spec-table td {
    color: var(--gray-900);
    font-weight: 500;
    background: white;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

.unit {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-right: 5px;
    font-weight: normal;
}

.no-specs {
    text-align: center;
    padding: 50px;
    color: var(--gray-600);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    border: 2px dashed var(--gray-300);
}

/* ========== GUN SPECS GRID ========== */
.gun-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.spec-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230,126,34,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all var(--transition-slow);
}

.spec-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.spec-item:hover::before {
    transform: scale(2);
}

.spec-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: all var(--transition-normal);
    filter: drop-shadow(0 5px 10px rgba(230,126,34,0.3));
}

.spec-item:hover i {
    transform: rotateY(180deg) scale(1.1);
}

.spec-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spec-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 5px;
    font-weight: 500;
}

.spec-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

/* ========== ADDITIONAL SPECS ========== */
.additional-specs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.spec-row {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    background: white;
}

.spec-row:hover {
    background: var(--gray-100);
    transform: translateX(-5px);
    border-radius: var(--border-radius-sm);
}

.spec-row .spec-label {
    width: 250px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.spec-row .spec-value {
    flex: 1;
    color: var(--gray-700);
    font-weight: 500;
}

/* ========== REVIEWS SECTION ========== */
.reviews-section {
    max-width: 900px;
    margin: 0 auto;
}

.rating-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.rating-summary::before {
    content: '★★★★★';
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 120px;
    color: rgba(230,126,34,0.1);
    transform: rotate(-15deg);
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.average-rating {
    text-align: center;
    position: relative;
    z-index: 1;
}

.rating-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    text-shadow: 3px 3px 6px rgba(230,126,34,0.3);
    animation: numberPulse 2s infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.average-rating .stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin: 10px 0;
    letter-spacing: 5px;
}

.rating-count {
    display: block;
    color: var(--gray-600);
    margin-top: 5px;
    font-size: 1rem;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.add-review-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.add-review-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-review-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(230,126,34,0.4);
}

.add-review-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-review-btn i {
    font-size: 1.2rem;
    animation: penWiggle 1s infinite;
}

@keyframes penWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* ========== QUESTIONS SECTION ========== */
.questions-section {
    max-width: 900px;
    margin: 0 auto;
}

.ask-question {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.ask-question::before {
    content: '?';
    position: absolute;
    top: -30px;
    left: -30px;
    font-size: 150px;
    color: rgba(230,126,34,0.1);
    font-weight: bold;
    transform: rotate(15deg);
}

.ask-question h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ask-question h4::before {
    content: '\f059';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-color);
}

#questionForm textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    font-family: 'Vazir';
    margin-bottom: 15px;
    resize: vertical;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

#questionForm textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

#questionForm button {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

#questionForm button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== RELATED PRODUCTS ========== */
.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid var(--gray-200);
}

.related-products h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.related-products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.related-product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
    position: relative;
    animation: fadeInScale 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.related-product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.related-product-card a {
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.related-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.related-product-card:hover .related-image::after {
    opacity: 1;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.related-product-card:hover .related-image img {
    transform: scale(1.2);
}

.related-info {
    padding: 25px;
    background: white;
    position: relative;
}

.related-info h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    height: 50px;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.4;
}

.related-price {
    margin: 15px 0;
}

.related-price .current {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.3rem;
    background: var(--gray-100);
    padding: 5px 10px;
    border-radius: 20px;
}

.related-price .original {
    text-decoration: line-through;
    color: var(--gray-500);
    margin-right: 10px;
    font-size: 1rem;
}

.related-stock {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 500;
}

.related-stock.in_stock {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #a3cfbb;
}

.related-stock.low_stock {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #ffe69c;
}

.related-stock.out_of_stock {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== MODAL STYLES ========== */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-content {
    background: white;
    margin: 20px;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 550px;
    position: relative;
    animation: modalSlideDown 0.4s ease;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray-500);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-circle);
    transition: all var(--transition-normal);
    background: var(--gray-100);
}

.close-modal:hover {
    color: var(--danger-color);
    transform: rotate(90deg) scale(1.1);
    background: var(--gray-200);
}

.modal h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.modal h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 3px;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
}

.modal .form-group input,
.modal .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    font-family: 'Vazir';
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

.modal .form-group input:hover,
.modal .form-group textarea:hover {
    border-color: var(--secondary-color);
}

/* ========== STAR RATING ========== */
.rating-input {
    margin-bottom: 25px;
}

.rating-input label {
    display: block;
    margin-bottom: 12px;
    color: var(--gray-700);
    font-weight: 500;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 35px;
    color: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: 0;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 10px rgba(255,193,7,0.5);
}

.submit-review-btn,
.submit-notify-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.submit-review-btn::before,
.submit-notify-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-review-btn:hover,
.submit-notify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230,126,34,0.4);
}

.submit-review-btn:hover::before,
.submit-notify-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ========== TOAST MESSAGES ========== */
.toast-message {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideInLeft 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 4px solid #2e7d32;
}

.toast-message.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-right-color: #962d22;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .product-title {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .tabs-nav li {
        padding: 15px 25px;
    }
}

@media (max-width: 992px) {
    .product-detail-wrapper {
        gap: 30px;
    }
    
    .product-info {
        padding: 30px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .main-image {
        height: 400px;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tabs-nav li {
        flex: 1 1 auto;
        text-align: center;
    }
    
    .gun-specs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .spec-item {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        gap: 20px;
    }
    
    .product-info {
        padding: 25px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .product-meta {
        gap: 8px;
    }
    
    .product-meta span {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .original-price {
        font-size: 1.3rem;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .quantity-selector {
        width: fit-content;
        margin: 0 auto;
    }
    
    .tabs-nav {
        flex-direction: column;
        padding: 0;
    }
    
    .tabs-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--gray-200);
        border-radius: 0;
    }
    
    .tabs-nav li.active {
        border-radius: 0;
    }
    
    .tabs-content {
        padding: 25px;
    }
    
    .gun-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-table th {
        width: 45%;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .spec-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .spec-row .spec-label {
        width: 100%;
    }
    
    .rating-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .product-meta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-meta span {
        justify-content: center;
    }
    
    .price-section {
        padding: 20px;
    }
    
    .discounted-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quick-specs {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-spec-item {
        justify-content: space-between;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .tabs-content {
        padding: 20px 15px;
    }
    
    .spec-group h4 {
        font-size: 1.1rem;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .related-products h2 {
        font-size: 1.6rem;
    }
    
    .related-info {
        padding: 15px;
    }
    
    .related-info h4 {
        font-size: 1rem;
        height: 40px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .product-actions,
    .share-buttons,
    .add-review-btn,
    .ask-question,
    .modal {
        display: none !important;
    }
    
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .tabs-content {
        padding: 20px;
    }
}
