/*
Theme Name: Fars Fish
Theme URI: https://farsfish.ir/
Author: Mohammad Hossein Alipor
Author URI: https://example.com/
Description: Theme description
Version: 1.0
License: GPL v2 or later
Text Domain: your-textdomain
*/

/* WordPress Core Styles */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float:right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }
.my-breadcrumb {
    font-size: 14px;
    color: #555;
}

.my-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.my-breadcrumb a:hover {
    text-decoration: underline;
}

.my-breadcrumb span {
    color: #333;
    font-weight: bold;
}
.quantity .qty,
.quantity input.qty,
input.qty {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    max-width: 100% !important;
  }
  div.quantity{
  max-width: 100% !important;

}

/* استایل لودر */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل نمایش گرید/لیست */
.procategory-listbox {
    display: none;
}

.list-view .procategory-listbox {
    display: block;
}

.list-view .procategory-gridbox {
    display: none;
}

.grid-view .procategory-gridbox {
    display: block;
}

/* استایل محصولات */
.e-procategory-box {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.e-procategory-box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* استایل رنگ‌ها */
.na-color-skin {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.na-color-skin li {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* استایل تگ جدید */
.new-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    padding: 0px 11px;
}



  /* Modern Checkout Styling */
  .wc-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  }

  /* Progress Bar */
  .checkout-progress-bar {
    margin-bottom: 40px;
  }

  .progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px;
  }

  .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
  }

  .step-number {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid #e2e8f0;
  }

  .progress-step.active .step-number {
    background: #007cba;
    color: white;
    border-color: #007cba;
  }

  .progress-step.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
  }

  .step-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    text-align: center;
  }

  .progress-step.active .step-label,
  .progress-step.completed .step-label {
    color: #2c3e50;
  }

  .progress-line {
    height: 4px;
    background: #e2e8f0;
    position: relative;
    top: -32px;
    margin: 0 20px;
    z-index: 1;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #10b981 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
  }

  /* Checkout Header */
  .checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eef2f7;
  }

  .checkout-title {
    margin: 0;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .checkout-title .dashicons {
    color: #007cba;
    font-size: 36px;
  }

  .checkout-login-prompt {
    color: #64748b;
    font-size: 14px;
  }

  .checkout-login-prompt a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }

  .checkout-login-prompt a:hover {
    color: #005a87;
    text-decoration: underline;
  }

  /* Login Form */
  .checkout-login-form {
    background: white;
    border: 2px solid #007cba;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 124, 186, 0.1);
  }

  .login-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .login-form-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
  }

  .close-login-form {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .close-login-form:hover {
    background: #f1f5f9;
    color: #ef4444;
  }

  .login-form-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
    text-align: center;
    color: #64748b;
  }

  .login-form-footer a {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
  }

  .login-form-footer a:hover {
    text-decoration: underline;
  }

  /* Login Required State */
  .checkout-login-required {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 40px auto;
  }

  .login-required-icon {
    font-size: 80px;
    color: #cbd5e1;
    margin-bottom: 20px;
  }

  .checkout-login-required h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 24px;
  }

  .checkout-login-required p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 16px;
  }

  .login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
  }

  .login-actions .button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .login-actions .login-btn {
    background: #007cba;
    color: white;
    border: none;
  }

  .login-actions .login-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
  }

  .login-actions .register-btn {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
  }

  .login-actions .register-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
  }

  /* Checkout Content Layout */
  .checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    position: relative;
  }

  @media (max-width: 1024px) {
    .checkout-content {
      grid-template-columns: 1fr;
    }
  }

  /* Checkout Sections */
  .checkout-section {
    background: white;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
  }

  .checkout-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  }

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2f7;
  }

  .section-title {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
  }

  .section-title .dashicons {
    color: #007cba;
    font-size: 20px;
  }

  .same-as-shipping {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
  }

  .same-as-shipping input[type="checkbox"] {
    margin: 0;
  }

  /* Contact Options */
  .contact-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
  }

  .contact-option {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .contact-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  .contact-option input[type="radio"] {
    position: absolute;
    opacity: 0;
  }

  .contact-option input[type="radio"]:checked+.option-content {
    color: #007cba;
  }

  .contact-option input[type="radio"]:checked+.option-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #007cba;
    border-radius: 10px;
    pointer-events: none;
  }

  .option-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .option-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
  }

  .option-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
  }

  /* Form Fields Enhancement */
  .woocommerce form .form-row {
    margin-bottom: 20px;
    padding: 0;
  }

  .woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
  }

  .woocommerce form .form-row label .required {
    color: #ef4444;
  }

  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #475569;
  }

  .woocommerce form .form-row input.input-text:focus,
  .woocommerce form .form-row textarea:focus,
  .woocommerce form .form-row select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
  }

  .woocommerce form .form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
  }

  /* Payment Methods */
  .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .wc_payment_method {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
  }

  .wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin: 0;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.3s ease;
  }

  .wc_payment_method label:hover {
    background: #f1f5f9;
  }

  .wc_payment_method input[type="radio"]:checked+label {
    background: #e0f2fe;
    border-color: #007cba;
  }

  .payment_method_icons {
    margin-left: auto;
    display: flex;
    gap: 8px;
  }

  .payment_method_icons img {
    height: 24px;
    width: auto;
  }

  .payment_box {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: white;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Order Summary Sticky */
  .order-summary-sticky {
    position: sticky;
    top: 30px;
    background: white;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  }

  .order-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
  }

  .summary-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .summary-title .dashicons {
    font-size: 20px;
  }

  .edit-cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }

  .edit-cart-link:hover {
    opacity: 1;
    text-decoration: underline;
  }

  .edit-cart-link .dashicons {
    font-size: 16px;
  }

  /* Order Items Preview */
  .order-items-preview {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    border-bottom: 1px solid #eef2f7;
  }

  .order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .order-item:last-child {
    border-bottom: none;
  }

  .item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .item-details {
    flex: 1;
  }

  .item-name {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
  }

  .item-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
  }

  .item-total {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
    align-self: center;
  }

  /* Order Totals Preview */
  .order-totals-preview {
    padding: 20px;
    border-bottom: 1px solid #eef2f7;
  }

  .totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #475569;
  }

  .totals-row.subtotal {
    border-bottom: 1px solid #f1f5f9;
  }

  .totals-row.total {
    border-top: 2px solid #eef2f7;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
  }

  .totals-row.discount {
    color: #10b981;
  }

  .totals-label {
    font-weight: 500;
  }

  .totals-value {
    font-weight: 600;
    text-align: right;
  }

  .tax-note {
    display: block;
    font-weight: normal;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
  }

  /* Security Badges */
  .security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
  }

  .security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
  }

  .security-badge .dashicons {
    color: #10b981;
    font-size: 20px;
  }

  /* Place Order Section */
  .place-order-section {
    padding: 20px;
  }

  .place-order-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .place-order-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .place-order-btn:hover::after {
    left: 100%;
  }

  .place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 124, 186, 0.3);
  }

  .place-order-btn:active {
    transform: translateY(0);
  }

  .place-order-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .place-order-btn .btn-total {
    font-size: 20px;
  }

  .place-order-btn .dashicons {
    font-size: 20px;
  }

  .place-order-note {
    margin-top: 15px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
  }

  .place-order-note .dashicons {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 5px;
  }

  /* Payment Icons */
  .payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .payment-icon {
    font-size: 28px;
    color: #64748b;
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }

  .payment-icon:hover {
    opacity: 1;
  }

  /* Order Review Mobile */
  .order-review-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #eef2f7;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .review-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .review-total {
    display: flex;
    flex-direction: column;
  }

  .total-label {
    font-size: 12px;
    color: #64748b;
  }

  .total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
  }

  .place-order-btn-mobile {
    padding: 15px 25px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
  }

  .place-order-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.3);
  }

  /* Mobile Responsive */
  @media (max-width: 768px) {
    .wc-checkout-wrapper {
      padding: 15px;
    }

    .checkout-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }

    .checkout-title {
      font-size: 24px;
    }

    .progress-steps {
      gap: 5px;
    }

    .step-label {
      font-size: 12px;
    }

    .checkout-content {
      gap: 20px;
      padding-bottom: 100px;
      /* Space for mobile order review */
    }

    .order-summary-sticky {
      position: static;
    }

    .order-review-mobile {
      display: block;
    }

    .address-sections {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .contact-options {
      flex-direction: column;
    }

    .security-badges {
      flex-direction: column;
      gap: 10px;
      align-items: center;
    }

    .payment-icons {
      flex-wrap: wrap;
    }
  }

  /* Loading States */
  .loading .place-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  .woocommerce-input-wrapper{
    width: 100% !important;
  }

  .loading .place-order-btn::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #007cba;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -12px;
    margin-left: -12px;
    z-index: 2;
  }

  /* Error States */
  .woocommerce-invalid input.input-text,
  .woocommerce-invalid textarea,
  .woocommerce-invalid select {
    border-color: #ef4444 !important;
  }

  .woocommerce-invalid label {
    color: #ef4444;
  }

  .woocommerce-validated input.input-text,
  .woocommerce-validated textarea,
  .woocommerce-validated select {
    border-color: #10b981 !important;
  }

  /* Success States */
  .checkout-success {
    border-color: #10b981;
    background: #f0fdf4;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  /* Print Styles */
  @media print {

    .checkout-progress-bar,
    .checkout-header,
    .checkout-login-prompt,
    .checkout-login-form,
    .security-badges,
    .payment-icons,
    .order-review-mobile,
    .edit-cart-link,
    .place-order-section {
      display: none !important;
    }

    .checkout-content {
      display: block;
    }

    .checkout-section {
      break-inside: avoid;
      border: 1px solid #000;
    }

    .order-summary-sticky {
      border: 1px solid #000;
    }
  }
