:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.12);
  --primary-shadow: rgba(79, 70, 229, 0.28);
  --primary-shadow-hover: rgba(79, 70, 229, 0.4);
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-card: #ffffff;
  --bg-image: #f8fafc;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --success: #059669;
  --danger: #dc2626;
  --radius-xl: 16px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.12);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --font-xs: 0.85rem;
  --font-sm: 0.95rem;
  --font-base: 1rem;
  --font-md: 1.25rem;
  --font-lg: 1.4rem;
  --font-xl: 1.85rem;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --transition-fast: 0.2s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s ease;
  --font-family: "Vazirmatn", "IRANSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hikashop_products,
.hikashop_product,
#hikashop_product_main_div,
.hikashop_checkout,
.hikashop_cart,
.hikashop_filter,
#hikashop_cart,
.hikashop_cart_module,
.hikashop_checkout_cart,
#hikashop_checkout_cart {
  direction: rtl;
  text-align: right;
  font-family: var(--font-family);
}

.hikashop_products .hikashop_product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  overflow: hidden;
  position: relative;
}

.hikashop_products .hikashop_product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.hikashop_product_name,
.hikashop_product_name a {
  font-size: 16px;
  font-weight: var(--font-bold);
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hikashop_product_name a:hover {
  color: var(--primary);
  text-decoration: none;
}

.hikashop_product_price,
.hikashop_product_price_full {
  font-size: 1.35rem;
  font-weight: var(--font-extrabold);
  color: var(--primary);
  margin: var(--space-md) 0;
  letter-spacing: -0.3px;
}

.hikashop_product_price_with_discount {
  color: var(--primary);
}

.hikashop_product_discount {
  color: var(--text-muted);
  font-size: var(--font-sm);
  text-decoration: line-through;
  margin-left: var(--space-sm);
  font-weight: var(--font-medium);
}

.hikashop_product_image,
.hikashop_product_image_main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--bg-image);
}

.hikashop_product_image img,
.hikashop_product_image_main img {
  border-radius: var(--radius-lg);
  transition: transform var(--transition-slow);
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hikashop_product:hover .hikashop_product_image img {
  transform: scale(1.04);
}

.hikashop_product_stock {
  font-size: 0.9rem;
  font-weight: var(--font-semibold);
  margin: var(--space-sm) 0 var(--space-xs);
  color: var(--success);
}

.hikashop_product_stock.hikashop_product_stock_out {
  color: var(--danger);
}

.hikashop_product_description_main {
  font-size: var(--font-base);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: var(--space-lg);
}

.hikashop_filter select,
.hikashop_filter input[type="text"] {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px var(--space-lg);
  transition: var(--transition-base);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
}

.hikashop_filter select:focus,
.hikashop_filter input[type="text"]:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

#hikashop_product_main_div .hikashop_product_name {
  font-size: var(--font-xl);
  margin-bottom: 14px;
  font-weight: var(--font-extrabold);
  color: var(--text-main);
  line-height: 1.35;
}

#hikashop_product_main_div .hikashop_product_price {
  font-size: var(--font-xl);
  color: var(--primary);
}

.hikashop_products .hikashop_product .uk-card-body,
.hikashop_product .uk-card-media-top {
  padding: 0;
}

a.hikashop_cart_button,
.hikashop_cart_input_button,
input[type="submit"].hikashop_cart_input_button,
.hikashop_product_quantity_field + .hikashop_cart_input_button,
a.hikashop_compare_button {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 14px var(--primary-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-decoration: none;
  line-height: 1.4;
  text-shadow: none !important;
}

a.hikashop_cart_button:hover,
.hikashop_cart_input_button:hover,
input[type="submit"].hikashop_cart_input_button:hover,
a.hikashop_compare_button:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px var(--primary-shadow-hover);
  transform: translateY(-2px);
  color: #fff !important;
  outline: none;
  border: none;
}

.hikashop_cart_input_button:active,
a.hikashop_cart_button:active {
  transform: translateY(0);
}

.hikashop_cart_input_button:focus-visible,
a.hikashop_cart_button:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.hikashop_cart_input_button.uk-button-primary {
  background: var(--primary);
}

#hikashop_checkout_shopping_button a.hikashop_cart_button,
#hikashop_add_to_cart_continue_div a.hikashop_cart_button {
  background: #fff;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

#hikashop_checkout_shopping_button a.hikashop_cart_button:hover,
#hikashop_add_to_cart_continue_div a.hikashop_cart_button:hover {
  background: var(--primary-light);
  color: var(--primary-hover) !important;
}

#hikashop_cart,
.hikashop_cart_module,
.hikashop_checkout_cart,
#hikashop_checkout_cart {
  width: 100%;
  color: var(--text-main);
  line-height: 1.5;
}

#hikashop_cart table,
.hikashop_checkout_cart table,
#hikashop_checkout_cart table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

#hikashop_cart th,
.hikashop_checkout_cart thead th,
#hikashop_checkout_cart thead th {
  background: var(--bg-image);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

#hikashop_cart td,
.hikashop_checkout_cart td,
#hikashop_checkout_cart td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 15px;
}

#hikashop_cart tr:last-child td,
.hikashop_checkout_cart tbody tr:last-child td {
  border-bottom: none;
}

#hikashop_cart .row0:hover,
#hikashop_cart .row1:hover,
.hikashop_checkout_cart .row0:hover,
.hikashop_checkout_cart .row1:hover {
  background-color: var(--bg-image);
}

.hikashop_product_checkout_cart_image,
.hikashop_cart_product_image_value img,
.hikashop_checkout_cart .hikashop_cart_product_image_value img,
td.hikashop_cart_product_image_value img {
  width: 75px !important;
  height: 75px !important;
  max-width: 75px !important;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

@media (max-width: 768px) {
  .hikashop_product_checkout_cart_image,
  .hikashop_cart_product_image_value img,
  .hikashop_checkout_cart .hikashop_cart_product_image_value img,
  td.hikashop_cart_product_image_value img {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.hikashop_cart_product_name a,
#hikashop_cart .hikashop_cart_module_product_name_value a,
.hikashop_cart_product_name_value a {
  color: var(--text-main);
  font-weight: var(--font-semibold);
  font-size: 16px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hikashop_cart_product_name a:hover,
#hikashop_cart .hikashop_cart_module_product_name_value a:hover {
  color: var(--primary);
}

span.hikashop_product_price,
.hikashop_cart_value span.hikashop_product_price,
.hikashop_cart_module_product_total_value span.hikashop_product_price,
.hikashop_checkout_cart_final_total,
span.hikashop_checkout_cart_final_total,
span.hikashop_checkout_cart_shipping,
span.hikashop_checkout_cart_payment,
span.hikashop_checkout_cart_taxes,
span.hikashop_checkout_cart_coupon,
.hikashop_checkout_cart_additional,
span.hikashop_checkout_cart_subtotal {
  color: var(--primary);
  font-weight: var(--font-bold);
  font-size: 16px;
  font-style: normal;
  font-family: inherit;
  white-space: nowrap;
}

span.hikashop_product_price_before_discount {
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: var(--font-medium);
  margin-left: 30%;
}

span.hikashop_product_price_full {
  color: var(--text-secondary);
  display: block;
  font-size: 14px;
}

.hikashop_product_price_full {
  text-align: left;
}

#hikashop_checkout_cart_final_total_title,
#hikashop_checkout_cart_total2_title,
.hikashop_cart_subtotal_title,
.hikashop_cart_title {
  color: var(--text-main);
  font-weight: var(--font-bold);
  font-size: 16px;
}

.hikashop_checkout_cart tfoot td,
#hikashop_checkout_cart tfoot td,
.hikashop_cart_module_product_total_title,
.hikashop_cart_module_product_total_value {
  color: var(--text-main) !important;
  font-weight: var(--font-bold);
  font-size: 17px !important;
}

.hikashop_checkout_cart tfoot .hikashop_checkout_cart_final_total,
#hikashop_checkout_cart tfoot .hikashop_checkout_cart_final_total,
span.hikashop_checkout_cart_final_total,
span.hikashop_checkout_cart_subtotal,
.hikashop_cart_subtotal_value span {
  color: #0f172a !important;
  font-size: 19px !important;
  font-weight: var(--font-extrabold) !important;
}

.hikashop_product_quantity_field,
.hikashop_cart_product_quantity_value .hikashop_product_quantity_field {
  width: 48px;
  height: 50px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: var(--font-semibold);
  color: var(--text-main);
  background: var(--bg-card);
  padding: 0;
  margin: 0 4px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: inherit;
}

.hikashop_product_quantity_field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

a.hikashop_product_quantity_field_change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-image);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: var(--font-bold);
  font-size: 17px;
  text-decoration: none;
  margin: 0 2px;
  transition: all var(--transition-fast);
}

a.hikashop_product_quantity_field_change:hover {
  background: var(--primary);
  color: #fff;
}

.hikashop_cart_product_quantity_value .hikashop_product_quantity_field,
.hikashop_cart_product_quantity_value .hikashop_cart_product_quantity_refresh,
.hikashop_cart_product_quantity_value .hikashop_cart_product_quantity_delete {
  float: none;
  display: inline-flex;
  vertical-align: middle;
  margin: 0 3px;
}

.hikashop_cart_product_quantity_delete,
.hikashop_cart_product_quantity_refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-image);
  transition: background var(--transition-fast);
}

.hikashop_cart_product_quantity_delete:hover {
  background: #fee2e2;
}

.hikashop_checkout_cart tfoot td,
#hikashop_checkout_cart tfoot td {
  padding: 14px 16px;
  text-align: left;
  background: var(--bg-image);
  font-size: 16px;
}

.hikashop_checkout_cart tfoot tr {
  border: none;
}

#hikashop_checkout_cart tfoot tr td.hikashop_cart_empty_footer {
  border: none;
  background: transparent;
}

.hikashop_cart_module_product_total_title {
  text-align: left;
  font-weight: var(--font-bold);
  color: var(--text-main);
}

#hikashop_cart .hikashop_cart_module_product_name_value a {
  font-weight: var(--font-medium);
  font-size: 14px;
}

#hikashop_cart span.hikashop_product_price {
  font-size: 15px;
}

#hikashop_cart hr {
  display: none;
}

#hikashop_cart .hikashop_cart_input_button {
  width: 100%;
  margin-top: 12px;
}

.hikashop_checkout_cart_coupon {
  color: #f30d0d;
  font-size: 16px;
}

#hikashop_checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-image);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: var(--font-semibold);
}

#hikashop_checkout_coupon input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

#hikashop_checkout_coupon input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.hikashop_not_authorized {
  text-align: center;
  padding: 40px 20px;
  color: var(--danger);
  font-weight: var(--font-semibold);
  background: #fef2f2;
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

.hikashop_checkout_cart_print_link {
  float: none;
  display: inline-block;
  margin-bottom: 12px;
}

#hikashop_checkout_next_button,
#hikashop_checkout_shopping_button {
  float: none;
}

@media (max-width: 960px) {
  .hikashop_products .hikashop_product {
    padding: var(--space-lg);
  }
}

@media (max-width: 1024px) {
  .hikashop_checkout_cart .hikashop_cart_product_image_value:before,
  .hikashop_checkout_cart .hikashop_cart_product_name_value:before,
  .hikashop_checkout_cart table tbody td.hikashop_cart_product_total_value,
  .hikashop_checkout_cart table tbody td.hikashop_cart_subtotal_value {
    display: none;
  }

  .hikashop_checkout_cart table tbody td.hikashop_cart_total_value {
    background: rgba(198, 229, 243, 0.27);
  }

  .hikashop_checkout_cart table tbody tr > * {
    display: block;
    text-align: center !important;
  }

  .hikashop_checkout_cart td.hikashop_cart_product_name_value {
    width: 100% !important;
    font-weight: 700;
  }

  .hikashop_cart_product_image_thumb {
    text-align: center;
  }

  .hikashop_checkout_cart {
    background: #f7f7f7;
  }
}

@media (min-width: 768px) {
  .hikashop_checkout_cart tbody tr[class^="row"] td {
    border: none;
    font-size: 18px;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  /* Product rows as cards */
  #hikashop_cart table,
  .hikashop_checkout_cart table,
  #hikashop_checkout_cart table {
    display: block;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }

  #hikashop_cart thead,
  .hikashop_checkout_cart thead {
    display: none;
  }

  #hikashop_cart tbody,
  .hikashop_checkout_cart tbody,
  #hikashop_checkout_cart tbody {
    display: block;
  }

  #hikashop_cart tbody tr,
  .hikashop_checkout_cart tbody tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
  }

  #hikashop_cart tbody td,
  .hikashop_checkout_cart tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
  }

  #hikashop_cart tbody td:last-child,
  .hikashop_checkout_cart tbody td:last-child {
    border-bottom: none;
  }

  .hikashop_cart_product_quantity_value {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
  }

  .hikashop_product_price_full {
    text-align: right;
  }

  a.hikashop_cart_button,
  .hikashop_cart_input_button {
    width: 100%;
    margin: 6px 0;
    padding: 14px 20px;
    font-size: 16px;
  }

  #hikashop_checkout_next_button,
  #hikashop_checkout_shopping_button {
    width: 100%;
  }

  #hikashop_checkout_coupon {
    flex-direction: column;
    align-items: stretch;
  }

  #hikashop_checkout_coupon input {
    width: 100%;
  }

  .hikashop_checkout_cart tfoot,
  #hikashop_checkout_cart tfoot {
    display: block !important;
    width: 100%;
    margin-top: 16px;
    background: var(--bg-image);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    box-shadow: var(--shadow-sm);
  }

  .hikashop_checkout_cart tfoot tr,
  #hikashop_checkout_cart tfoot tr,
  tr.hikashop_cart_subtotal_row,
  tr.hikashop_cart_total_row,
  tr.hikashop_cart_coupon_row {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    background: transparent !important;
  }

  .hikashop_checkout_cart tfoot tr:last-child,
  #hikashop_checkout_cart tfoot tr:last-child {
    border-bottom: none;
  }

  .hikashop_checkout_cart tfoot td.hikashop_cart_empty_footer,
  #hikashop_checkout_cart tfoot td.hikashop_cart_empty_footer,
  td.hikashop_cart_empty_footer {
    display: none !important;
  }

  .hikashop_checkout_cart tfoot td.hikashop_cart_subtotal_title,
  .hikashop_checkout_cart tfoot td.hikashop_cart_title,
  #hikashop_checkout_cart_total2_title,
  #hikashop_checkout_cart_final_total_title,
  td.hikashop_cart_subtotal_title,
  td.hikashop_cart_title {
    display: block !important;
    width: auto !important;
    flex: 0 0 auto;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: right !important;
    order: 1;
  }

  .hikashop_checkout_cart tfoot td.hikashop_cart_subtotal_value,
  .hikashop_checkout_cart tfoot td.hikashop_cart_total_value,
  .hikashop_checkout_cart tfoot td.hikashop_cart_coupon_value,
  td.hikashop_cart_subtotal_value,
  td.hikashop_cart_total_value,
  td.hikashop_cart_coupon_value {
    display: block !important;
    width: auto !important;
    flex: 1 1 auto;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    order: 2;
  }

  span.hikashop_checkout_cart_subtotal,
  span.hikashop_checkout_cart_final_total,
  span.hikashop_checkout_cart_coupon,
  .hikashop_cart_subtotal_value span,
  .hikashop_cart_total_value span,
  .hikashop_cart_coupon_value span {
    display: inline-block !important;
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    float: left;
  }

  .hikashop_cart_module_product_total_title,
  .hikashop_cart_module_product_total_value {
    font-size: 17px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 640px) {
  .hikashop_products {
    display: block;
  }

  .hikashop_products .hikashop_product {
    width: 100%;
    flex: none;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-lg);
  }

  .hikashop_product_name,
  .hikashop_product_name a {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .hikashop_product_price,
  .hikashop_product_price_full {
    font-size: 1.25rem;
    margin: 10px 0;
  }

  .hikashop_product_discount {
    font-size: var(--font-xs);
  }

  .hikashop_product_image,
  .hikashop_product_image_main {
    margin-bottom: 14px;
    border-radius: var(--radius-md);
  }

  .hikashop_product_image img,
  .hikashop_product_image_main img {
    border-radius: var(--radius-md);
  }

  .hikashop_cart_input_button {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
  }

  .hikashop_product_stock {
    font-size: 0.85rem;
  }

  #hikashop_product_main_div .hikashop_product_name {
    font-size: 1.5rem;
  }

  #hikashop_product_main_div .hikashop_product_price {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  #hikashop_cart tbody td,
  .hikashop_checkout_cart tbody td {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hikashop_cart_product_quantity_value {
    width: 100%;
    justify-content: flex-start;
  }

  span.hikashop_checkout_cart_subtotal,
  span.hikashop_checkout_cart_final_total,
  span.hikashop_checkout_cart_coupon {
    font-size: 17px !important;
  }
}

@media (min-width: 992px) {
  #hikashop_cart table,
  .hikashop_checkout_cart table {
    border-radius: var(--radius-xl);
  }

  #hikashop_cart th,
  .hikashop_checkout_cart thead th {
    padding: 16px 20px;
  }

  #hikashop_cart td,
  .hikashop_checkout_cart td {
    padding: 18px 20px;
  }
}