/* Istcool Custom Styles */
* { font-family: 'Vazir', sans-serif; }
body { direction: rtl; text-align: right; }
.hero-gradient { background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f7ff 100%); }
.product-card { transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.modal-overlay { backdrop-filter: blur(4px); }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.slide-down { animation: slideDown 0.3s ease; }
.mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
.nav-active { border-bottom: 2px solid #2563eb; }
.banner-campro { background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%); }
.banner-water { background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%); }
.warranty-banner { background: linear-gradient(135deg, #1e3a6e 0%, #2563eb 100%); }
.owl-theme .owl-dots .owl-dot span { background: #cbd5e1; }
.owl-theme .owl-dots .owl-dot.active span { background: #2563eb; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.woocommerce ul.products li.product { background: white; border-radius: 1rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.woocommerce .onsale { background: #ef4444; color: white; border-radius: 0.25rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; min-height: auto; line-height: 1.5; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: #2563eb; color: white; border-radius: 0.5rem; padding: 0.75rem 1.5rem; border: none; transition: all 0.3s ease; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: #1d4ed8; }
.menu-item { position: relative; }
.menu-item .sub-menu { display: none; position: absolute; top: 100%; right: 0; background: white; min-width: 200px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-radius: 0.5rem; padding: 0.5rem 0; z-index: 100; }
.menu-item:hover .sub-menu { display: block; }
.sub-menu li a { display: block; padding: 0.5rem 1rem; color: #374151; text-decoration: none; }
.sub-menu li a:hover { background: #f3f4f6; color: #2563eb; }
@media (max-width: 768px) { .hero-gradient { padding: 2rem 0; } }
/* --- WooCommerce Single Product Custom Styles --- */

/* Tabs Styling */
.woocommerce-tabs .wc-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #f3f4f6;
    padding: 0 2rem;
    margin-bottom: 2rem;
    list-style: none !important;
}

.woocommerce-tabs .wc-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-tabs .wc-tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.woocommerce-tabs .wc-tabs li.active a,
.woocommerce-tabs .wc-tabs li a:hover {
    color: #2563eb; /* secondary color */
    border-bottom-color: #2563eb;
}

.woocommerce-Tabs-panel {
    padding: 0 2rem 2rem 2rem;
    color: #4b5563;
    line-height: 1.8;
}

.woocommerce-Tabs-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2a4a; /* primary color */
    margin-bottom: 1rem;
}

/* Reviews / Comments Styling */
.woocommerce-Reviews-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 1.5rem;
}

.commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.commentlist .comment {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #f3f4f6;
}

.commentlist .comment-text {
    margin: 0 !important;
}

.commentlist .meta {
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 0.5rem;
}

.commentlist .description {
    color: #4b5563;
    line-height: 1.7;
}

/* Comment Form */
.comment-respond {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #f3f4f6;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 1.5rem;
    display: block;
}

.comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-family: 'Vazirmatn', sans-serif;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form .form-submit input[type="submit"] {
    background: #2563eb;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Vazirmatn', sans-serif;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Star Rating in Form */
.comment-form-rating .stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.comment-form-rating .stars a {
    color: #d1d5db;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-form-rating .stars a.active,
.comment-form-rating .stars a:hover {
    color: #fbbf24; /* Yellow for stars */
}

.comment-form-rating .stars a::before {
    content: "\f005"; /* Font Awesome Star */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}