input,
textarea,
select {
  display: block;
  border-radius: 7px;
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: 5px;
  border: 1px solid #b5b1b1;
  font-family: inherit;
}

.sellino-checkout-wrapper {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px #eee;
}

.sellino-checkout-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.sellino-checkout-form input,
.sellino-checkout-form textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 4px;
}

.sellino-checkout-total {
  margin: 24px 0;
  font-size: 1.2rem;
  color: #222;
}

.sellino-checkout-btn {
  background: #2ecc40;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.sellino-checkout-btn:hover {
  background: #27ae38;
}

/* Product Category Page Styles */
.sellino-category-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #eee;
}

.sellino-category-title {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}

.sellino-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.sellino-product-card {
  width: 260px;
  background: #fafbfc;
  border-radius: 10px;
  box-shadow: 0 1px 6px #e0e0e0;
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sellino-product-card:hover {
  box-shadow: 0 4px 16px #d0d0d0;
}

.sellino-product-img-link {
  display: block;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.sellino-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sellino-product-info {
  padding: 18px 16px 16px 16px;
  width: 100%;
  text-align: center;
}

.sellino-product-title {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.sellino-product-prices {
  margin-bottom: 10px;
}

.sellino-product-price {
  color: #222;
  font-weight: bold;
  font-size: 1.1rem;
}

.sellino-product-sale-price {
  color: #e74c3c;
  font-weight: bold;
  font-size: 1.1rem;
  margin-left: 8px;
}

.sellino-product-old-price {
  color: #aaa;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.sellino-product-stock {
  font-size: 0.95rem;
  margin-top: 6px;
}

.sellino-product-stock.in-stock {
  color: #27ae60;
}

.sellino-product-stock.out-of-stock {
  color: #e74c3c;
}

.sellino-no-products,
.sellino-category-not-found {
  text-align: center;
  color: #888;
  font-size: 1.2rem;
  margin: 40px 0;
}

/* استایل محصولات سلینو */
.sellino-products-widget {
  margin: 2em 0;
}

.sellino-products-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.sellino-mode-grid .sellino-products-list {
  flex-direction: row;
}

.sellino-mode-list .sellino-products-list {
  flex-direction: column;
}

.sellino-product-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sellino-mode-list .sellino-product-item {
  flex-direction: row;
  max-width: 100%;
  align-items: flex-start;
}

.sellino-product-thumb {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.sellino-mode-list .sellino-product-thumb {
  margin-bottom: 0;
  margin-left: 16px;
}

.sellino-product-title {
  font-size: 1.1em;
  margin: 0 0 8px 0;
  text-align: center;
}

.sellino-mode-list .sellino-product-title {
  text-align: right;
}

.sellino-product-price {
  font-weight: bold;
  color: #2e7d32;
  margin-top: 8px;
}

.sellino-sale-price {
  color: #d32f2f;
  margin-left: 8px;
}

.sellino-old-price {
  color: #888;
  text-decoration: line-through;
  font-size: 0.95em;
}


.sellino-product-single {
  max-width: 700px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #eee;
}

.sellino-product-single h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.sellino-product-meta {
  margin: 20px 0;
  font-size: 1.1rem;
}

.sellino-product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sellino-product-gallery img {
  border-radius: 8px;
  box-shadow: 0 1px 4px #ccc;
}

.sellino-add-to-cart-form {
  margin: 20px 0;
}

.sellino-add-to-cart-btn {
  background: #2ecc40;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.sellino-add-to-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/*******************************/
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-image {
  transition: transform 0.3s ease;
  cursor: pointer;
}


.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .image-overlay {
  opacity: 1;
}

.image-overlay::before {
  content: '🔍';
  font-size: 24px;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sellino-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .sellino-gallery-masonry {
    column-count: 2 !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .sellino-gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .sellino-gallery-masonry {
    column-count: 1 !important;
  }
}

/* Animation Classes */
.hover-zoom .gallery-image {
  transition: transform 0.3s ease;
}

.hover-zoom:hover .gallery-image {
  transform: scale(1.05);
}

.hover-slide .gallery-image {
  transition: transform 0.3s ease;
}

.hover-slide:hover .gallery-image {
  transform: translateY(-5px);
}

.hover-fade .gallery-image {
  transition: opacity 0.3s ease;
}

.hover-fade:hover .gallery-image {
  opacity: 0.8;
}

.hover-rotate .gallery-image {
  transition: transform 0.3s ease;
}

.hover-rotate:hover .gallery-image {
  transform: rotate(2deg);
}

/* Loading Animation */
.gallery-loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2ecc40;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Error State */
.gallery-error {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-style: italic;
}

/* Accessibility */
.gallery-image:focus {
  outline: 2px solid #2ecc40;
  outline-offset: 2px;
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
  outline: 2px solid #2ecc40;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .image-overlay {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .gallery-image,
  .image-overlay {
    transition: none;
  }
}

/* Sellino Search Modal Styles */
.sellino-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}

.sellino-search-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 95vw;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sellino-search-modal-close {
  position: absolute;
  top: 39px;
  left: 35px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  z-index: 2;
}

.sellino-search-form {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sellino-search-input {
  font-family: inherit;
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1.1rem;
  outline: none;
  background: #fafbfc;
}

.sellino-search-autocomplete-label {
  font-size: 1rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.sellino-search-results {
  flex: 1;
  overflow-y: auto;
  max-height: 350px;
  margin-top: 8px;
}

.sellino-search-result-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.sellino-search-result-item:last-child {
  border-bottom: none;
}

.sellino-search-result-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
}

.sellino-search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sellino-search-result-title {
  font-size: 1.05rem;
  color: #222;
  font-weight: 500;
  margin: 0;
}

.sellino-search-result-price {
  color: #27ae60;
  font-size: 1rem;
  font-weight: bold;
}

@media (max-width: 600px) {
  .sellino-search-modal-content {
    max-width: 98vw;
    padding: 18px 6px 12px 6px;
  }

  .sellino-search-result-thumb {
    width: 40px;
    height: 40px;
  }
}

/************* otp *************/
.sellino-otp-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.sellino-otp-container h2 {
  text-align: center;
  margin-bottom: 24px;
}

.sellino-otp-container input[type="text"],
.sellino-otp-container input[type="tel"] {
  font-family: inherit;
  text-align: center;
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1.1em;
  box-sizing: border-box;
}

.sellino-otp-container button {
  font-family: inherit;
  width: 100%;
  padding: 12px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.sellino-otp-container button:hover {
  background: #005177;
}

.sellino-otp-message {
  text-align: center;
  color: #d54e21;
  margin-bottom: 12px;
}

/************* end otp *************/


/************* dashboard *************/
.sellino-dashboard-wrapper {
  display: flex;
  margin-top: 60px;
}

.sellino-dashboard-sidebar {
  width: 200px;
  background: #f7fafd;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 32px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: sticky;
  top: 32px;
  margin-left: 32px;
}

.sellino-dashboard-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px 12px 12px;
  font-size: 16px;
  color: #222;
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  margin-bottom: 8px;
  transition: background 0.15s, color 0.15s;
}

.sellino-dashboard-sidebar a:hover,
.sellino-dashboard-sidebar a.active {
  background: #eaf6fb;
  color: #0073aa;
}

.sellino-dashboard-sidebar a.logout {
  color: #e74c3c;
}

@media (max-width: 900px) {
  .sellino-dashboard-sidebar {
    width: 100%;
    flex-direction: row;
    margin-left: 0;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0;
  }

  .sellino-dashboard-sidebar a {
    flex: 1;
    justify-content: center;
    border-radius: 0;
    margin-bottom: 0;
    padding: 16px 0;
    font-size: 15px;
  }
}

/* Dashboard Content Area */
.sellino-dashboard-content {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 32px 24px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .sellino-dashboard-content {
    box-shadow: none;
    border-radius: 0 0 12px 12px;
    padding: 20px 8px;
  }
}

@media (max-width: 900px) {
  .sellino-dashboard-wrapper {
    flex-direction: column;
    margin-top: 24px;
  }

  .sellino-dashboard-sidebar {
    width: 100%;
    flex-direction: row;
    margin-left: 0;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0;
    position: static;
    top: auto;
  }

  .sellino-dashboard-sidebar a {
    flex: 1;
    justify-content: center;
    border-radius: 0;
    margin-bottom: 0;
    padding: 14px 0;
    font-size: 15px;
  }

  .sellino-dashboard-content {
    box-shadow: none;
    border-radius: 0 0 12px 12px;
    padding: 20px 8px;
  }

  .sellino-dashboard-content>div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .sellino-dashboard-content>div[style*="display:flex"]>div {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .sellino-dashboard-content h2 {
    font-size: 1.2rem !important;
    margin-bottom: 16px !important;
  }

  .sellino-dashboard-content>div[style*="display:flex"]>div {
    padding: 12px 8px !important;
    font-size: 14px !important;
  }

  .sellino-dashboard-sidebar a {
    font-size: 13px;
    padding: 10px 0;
  }
}

/* Responsive Table */
@media (max-width: 900px) {
  .sellino-dashboard-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-collapse: separate;
    border-spacing: 0;
  }

  .sellino-dashboard-content thead,
  .sellino-dashboard-content tbody,
  .sellino-dashboard-content th,
  .sellino-dashboard-content td,
  .sellino-dashboard-content tr {
    display: block;
  }

  .sellino-dashboard-content thead {
    display: none;
  }

  .sellino-dashboard-content tr {
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
    border-radius: 8px;
    box-shadow: 0 1px 4px #f0f0f0;
    padding: 10px 0;
  }

  .sellino-dashboard-content td {
    padding: 8px 16px;
    text-align: right;
    position: relative;
    font-size: 15px;
  }

  .sellino-dashboard-content td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #0073aa;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
  }
}

/************* end dashboard *************/
/************* cart *************/
.sellino-btn {
  background: #2ecc40;
  color: #fff;
  border: none;
  padding: 6px 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  cursor: pointer;
}

/************* end cart *************/

/************* single prodcut *********/
.swiper-slide {
  text-align: center;
}

.sellino-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: sellino-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes sellino-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* --- Cart Step 1 (سبد خرید) Styles --- */
.cart-step {
  max-width: 960px;
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px #e6e6e6;
  padding: 32px 28px 24px 28px;
  font-family: inherit;
}

.cart-step h2 {
  font-size: 1.6rem;
  margin-bottom: 28px;
  text-align: center;
  color: #222;
  letter-spacing: 0.5px;
}

.cart-step #cart-items-list ul {
  padding: 0;
  margin: 0 0 18px 0;
  list-style: none;
}

.cart-step #cart-items-list li {
  background: #f8fafd;
  border-radius: 10px;
  box-shadow: 0 1px 4px #f0f0f0;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  transition: box-shadow 0.2s, background 0.2s;
}

.cart-step #cart-items-list li:hover {
  box-shadow: 0 4px 16px #e0e0e0;
  background: #f1f7fa;
}

.cart-step #cart-items-list img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  background: #fff;
}

.cart-step #cart-items-list span {
  font-size: 1.08rem;
  color: #222;
}

.cart-step .cart-qty {
  min-width: 28px;
  display: inline-block;
  text-align: center;
  font-weight: 500;
  font-size: 1.08rem;
}

.cart-step .sellino-decrease-qty,
.cart-step .sellino-increase-qty {
  background: #f0f4f8;
  border: none;
  color: #2980ef;
  font-size: 1.1rem;
  border-radius: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.cart-step .sellino-decrease-qty:hover,
.cart-step .sellino-increase-qty:hover {
  background: #e3eefd;
  color: #1761b0;
}

.cart-step .sellino-remove-from-cart {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 1.3rem;
  margin-right: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}

.cart-step .sellino-remove-from-cart:hover {
  background: #ffeaea;
  color: #c0392b;
}

.cart-step #go-to-step2.next-step-btn {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #2ecc40 0%, #27ae60 100%);
  color: #fff;
  border: none;
  padding: 14px 0;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 2px 8px #e0ffe6;
  transition: background 0.2s, box-shadow 0.2s;
}

.cart-step #go-to-step2.next-step-btn:hover {
  background: linear-gradient(90deg, #27ae60 0%, #2ecc40 100%);
  box-shadow: 0 4px 16px #c8f7d8;
}

.cart-step #cart-items-list {
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .cart-step {
    padding: 18px 4px 16px 4px;
  }

  .cart-step #cart-items-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 8px;
  }

  .cart-step #go-to-step2.next-step-btn {
    font-size: 1rem;
    padding: 12px 0;
  }
}

.align-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.sellino-cart-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  min-width: 260px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 16px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .sellino-cart-dropdown {
    right: -150px !important;
  }
}

/*******************/
.sellino-main-video-player {
  text-align: center;
}

.sellino-curriculum-accordion {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  background: #fff;
}

.sellino-accordion-chapter {
  border-bottom: 1px solid #f0f0f0;
}

.sellino-accordion-title {
  cursor: pointer;
  background: #f7f7f7;
  padding: 14px 18px 14px 40px;
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  transition: background 0.2s;
}

.sellino-accordion-title .toggle-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #2ecc40;
  transition: transform 0.2s;
}

.sellino-accordion-title.open {
  background: #e8fbe8;
}

.sellino-accordion-content {
  display: none;
  padding: 14px 30px 14px 10px;
  background: #fcfcfc;
}

.sellino-curriculum-accordion ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sellino-curriculum-accordion li {
  margin-bottom: 12px;
  display: block;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.sellino-locked-video {
  float: left;
  background: #2ecc40;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.sellino-play-video {
  float: left;
  background: #2ecc40;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.sellino-play-video:hover {
  background: #27ae38;
}

.sellino-curriculum-accordion .icon-locked {
  color: #e74c3c;
  font-size: 17px;
  margin-right: 2px;
}

.sellino-curriculum-accordion .icon-free {
  color: #27ae60;
  font-size: 13px;
  margin-right: 2px;
}