/*--------------------------------------------------------------
# ECOMMERCE.CSS
# Reusable Ecommerce Layer
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# SHOP PRODUCT GRID
--------------------------------------------------------------*/

.product-card {
  height: 100%;

  display: flex;
  flex-direction: column;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 16px;

  overflow: hidden;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);

  border-color: color-mix(
    in srgb,
    var(--primary-color),
    transparent 70%
  );

  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}


/*--------------------------------------------------------------
# PRODUCT IMAGE
--------------------------------------------------------------*/

.product-card-image {
  position: relative;

  width: 100%;
  height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;

  background-color: #ffffff;

  border-bottom: 1px solid var(--border-color);

  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  transition: transform 0.35s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.035);
}


/*--------------------------------------------------------------
# PRODUCT IMAGE PLACEHOLDER
--------------------------------------------------------------*/

.product-image-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--soft-background);

  border-radius: 12px;

  color: var(--primary-color);

  font-size: 42px;
}


/*--------------------------------------------------------------
# PRODUCT CONTENT
--------------------------------------------------------------*/

.product-card-content {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 22px;
}

.product-category {
  display: inline-block;

  align-self: flex-start;

  margin-bottom: 10px;

  color: var(--primary-color);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 14px;

  color: var(--heading-color);

  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}

.product-card-content > p {
  margin-bottom: 18px;

  color: var(--muted-color);

  font-size: 14px;
  line-height: 1.7;
}


/*--------------------------------------------------------------
# PRODUCT CODE
--------------------------------------------------------------*/

.product-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 16px;

  padding: 10px 12px;

  background-color: var(--soft-background);

  border-radius: 9px;
}

.product-code span {
  color: var(--muted-color);

  font-size: 12px;
}

.product-code strong {
  color: var(--heading-color);

  font-size: 12px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# PRODUCT CARD FOOTER
--------------------------------------------------------------*/

.product-card-footer {
  margin-top: auto;
  padding-top: 18px;

  border-top: 1px solid var(--border-color);
}


/*--------------------------------------------------------------
# PRODUCT PRICE
--------------------------------------------------------------*/

.product-price {
  display: flex;
  flex-direction: column;

  margin-bottom: 16px;
}

.product-price span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 11px;
}

.product-price strong {
  color: var(--heading-color);

  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}


/*--------------------------------------------------------------
# PRODUCT BUTTON
--------------------------------------------------------------*/

.product-btn {
  width: 100%;

  justify-content: center;
}


/*--------------------------------------------------------------
# EMPTY SHOP STATE
--------------------------------------------------------------*/

.empty-state {
  padding: 50px 36px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 18px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
  width: 68px;
  height: 68px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--primary-light);
  color: var(--primary-color);

  border-radius: 16px;

  font-size: 30px;
}

.empty-state h2 {
  margin-bottom: 14px;

  font-size: 26px;
}

.empty-state p {
  max-width: 560px;

  margin: 0 auto 24px;

  color: var(--muted-color);

  line-height: 1.75;
}


/*--------------------------------------------------------------
# SHOP TOOLBAR
--------------------------------------------------------------*/

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;

  margin-bottom: 32px;

  padding: 16px 18px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.shop-toolbar-count {
  color: var(--muted-color);

  font-size: 14px;
}

.shop-toolbar-count strong {
  color: var(--heading-color);
}


/*--------------------------------------------------------------
# SHOP FILTERS
--------------------------------------------------------------*/

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-filter-btn {
  padding: 8px 13px;

  background-color: var(--surface-color);
  color: var(--default-color);

  border: 1px solid var(--border-color);
  border-radius: 8px;

  font-size: 13px;
  font-weight: 600;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.shop-filter-btn:hover,
.shop-filter-btn.active {
  background-color: var(--primary-color);
  color: var(--contrast-color);

  border-color: var(--primary-color);
}


/*--------------------------------------------------------------
# PRODUCT DETAIL
--------------------------------------------------------------*/

.product-detail {
  position: relative;
}

.product-detail-image {
  padding: 32px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 18px;

  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
}

.product-detail-image img {
  width: 100%;
  max-height: 520px;

  display: block;

  object-fit: contain;
}

.product-detail-content h1 {
  margin-bottom: 16px;

  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.product-detail-category {
  display: inline-block;

  margin-bottom: 10px;

  color: var(--primary-color);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-detail-code {
  margin-bottom: 20px;

  color: var(--muted-color);

  font-size: 13px;
}

.product-detail-description {
  margin-bottom: 24px;

  color: var(--muted-color);

  line-height: 1.8;
}


/*--------------------------------------------------------------
# PRODUCT DETAIL PRICE
--------------------------------------------------------------*/

.product-detail-price {
  margin-bottom: 26px;
}

.product-detail-price span {
  display: block;

  margin-bottom: 3px;

  color: var(--muted-color);

  font-size: 12px;
}

.product-detail-price strong {
  color: var(--heading-color);

  font-size: 28px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# QUANTITY CONTROLS
--------------------------------------------------------------*/

.quantity-control {
  display: flex;
  align-items: center;

  width: fit-content;

  border: 1px solid var(--border-color);
  border-radius: 9px;

  overflow: hidden;
}

.quantity-control button {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--surface-color);
  color: var(--heading-color);

  border: 0;

  font-size: 18px;
}

.quantity-control input {
  width: 60px;
  height: 42px;

  text-align: center;

  border: 0;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);

  font-size: 14px;
  font-weight: 600;
}


/*--------------------------------------------------------------
# ADD TO CART
--------------------------------------------------------------*/

.add-to-cart-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 24px;
}


/*--------------------------------------------------------------
# PRICE TIERS
--------------------------------------------------------------*/

.price-tiers {
  margin-top: 26px;

  border: 1px solid var(--border-color);
  border-radius: 12px;

  overflow: hidden;
}

.price-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 13px 16px;

  background-color: var(--surface-color);

  border-bottom: 1px solid var(--border-color);
}

.price-tier:last-child {
  border-bottom: 0;
}

.price-tier span {
  color: var(--muted-color);

  font-size: 13px;
}

.price-tier strong {
  color: var(--heading-color);

  font-size: 14px;
}


/*--------------------------------------------------------------
# BASKET
--------------------------------------------------------------*/

.cart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;

  gap: 20px;

  align-items: center;

  padding: 18px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.cart-item-image {
  width: 100px;
  height: 100px;

  padding: 8px;

  background-color: #ffffff;

  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.cart-item-content h3 {
  margin-bottom: 6px;

  font-size: 16px;
}

.cart-item-code {
  color: var(--muted-color);

  font-size: 12px;
}

.cart-item-price {
  color: var(--heading-color);

  font-size: 16px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# CART SUMMARY
--------------------------------------------------------------*/

.cart-summary {
  padding: 26px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 16px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.045);
}

.cart-summary h3 {
  margin-bottom: 22px;

  font-size: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;

  padding: 10px 0;

  color: var(--muted-color);

  border-bottom: 1px solid var(--border-color);

  font-size: 14px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;

  padding-top: 18px;

  color: var(--heading-color);

  font-size: 18px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# CHECKOUT
--------------------------------------------------------------*/

.checkout-card {
  padding: 30px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 16px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.checkout-card h2 {
  margin-bottom: 24px;

  font-size: 24px;
}

.checkout-card .form-control,
.checkout-card .form-select {
  min-height: 52px;

  color: var(--default-color);

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 9px;

  box-shadow: none;
}

.checkout-card .form-control:focus,
.checkout-card .form-select:focus {
  border-color: var(--primary-color);

  box-shadow: 0 0 0 3px color-mix(
    in srgb,
    var(--primary-color),
    transparent 88%
  );
}


/*--------------------------------------------------------------
# RESPONSIVE
--------------------------------------------------------------*/

@media (max-width: 991px) {

  .product-card-image {
    height: 240px;
  }

  .cart-item {
    grid-template-columns: 90px 1fr;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
  }

}


@media (max-width: 767px) {

  .product-card-image {
    height: 230px;
  }

  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-detail-image {
    padding: 22px;
  }

  .add-to-cart-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .add-to-cart-wrap .site-btn {
    width: 100%;
  }

  .quantity-control {
    width: 100%;
  }

  .quantity-control input {
    flex: 1;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;

    gap: 14px;

    padding: 15px;
  }

  .cart-item-image {
    width: 72px;
    height: 72px;
  }

  .checkout-card {
    padding: 24px 20px;
  }

}


@media (max-width: 575px) {

  .product-card-content {
    padding: 18px;
  }

  .product-card-image {
    height: 220px;
  }

  .empty-state {
    padding: 38px 22px;
  }

  .cart-summary {
    padding: 22px;
  }

}



/*--------------------------------------------------------------
# ECOMMERCE.CSS
# Reusable Ecommerce Layer
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# SHOP FILTER PANEL
--------------------------------------------------------------*/

.shop-filter-panel {
  margin-bottom: 34px;

  padding: 22px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 14px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}


/*--------------------------------------------------------------
# SHOP FILTER LABELS
--------------------------------------------------------------*/

.shop-filter-label {
  display: block;

  margin-bottom: 7px;

  color: var(--heading-color);

  font-size: 12px;
  font-weight: 650;
}


/*--------------------------------------------------------------
# SHOP FILTER INPUTS
--------------------------------------------------------------*/

.shop-filter-form .form-control,
.shop-filter-form .form-select {
  min-height: 48px;

  color: var(--default-color);

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 9px;

  font-size: 14px;

  box-shadow: none;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.shop-filter-form .form-control:hover,
.shop-filter-form .form-select:hover {
  border-color: color-mix(
    in srgb,
    var(--primary-color),
    transparent 65%
  );
}

.shop-filter-form .form-control:focus,
.shop-filter-form .form-select:focus {
  border-color: var(--primary-color);

  box-shadow: 0 0 0 3px color-mix(
    in srgb,
    var(--primary-color),
    transparent 88%
  );
}


/*--------------------------------------------------------------
# SHOP SEARCH
--------------------------------------------------------------*/

.shop-search-wrap {
  position: relative;
}

.shop-search-wrap i {
  position: absolute;

  left: 15px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--muted-color);

  font-size: 15px;

  pointer-events: none;
}

.shop-search-wrap .form-control {
  padding-left: 42px;
}


/*--------------------------------------------------------------
# SHOP FILTER BUTTON
--------------------------------------------------------------*/

.shop-filter-submit {
  width: 100%;
  min-height: 48px;

  justify-content: center;
}


/*--------------------------------------------------------------
# SHOP FILTER BOTTOM
--------------------------------------------------------------*/

.shop-filter-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-top: 18px;
  padding-top: 16px;

  border-top: 1px solid var(--border-color);

  color: var(--muted-color);

  font-size: 13px;
}

.shop-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--primary-color);

  font-size: 13px;
  font-weight: 650;

  transition: color 0.3s ease;
}

.shop-clear-filters:hover {
  color: var(--heading-color);
}


/*--------------------------------------------------------------
# PRODUCT GRID
--------------------------------------------------------------*/

.product-card {
  height: 100%;

  display: flex;
  flex-direction: column;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 16px;

  overflow: hidden;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);

  border-color: color-mix(
    in srgb,
    var(--primary-color),
    transparent 70%
  );

  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}


/*--------------------------------------------------------------
# PRODUCT IMAGE
--------------------------------------------------------------*/

.product-card-image {
  position: relative;

  width: 100%;
  height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;

  background-color: #ffffff;

  border-bottom: 1px solid var(--border-color);

  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  transition: transform 0.35s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.035);
}


/*--------------------------------------------------------------
# PRODUCT IMAGE PLACEHOLDER
--------------------------------------------------------------*/

.product-image-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--soft-background);

  border-radius: 12px;

  color: var(--primary-color);

  font-size: 42px;
}


/*--------------------------------------------------------------
# PRODUCT CONTENT
--------------------------------------------------------------*/

.product-card-content {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 22px;
}

.product-category {
  display: inline-block;

  align-self: flex-start;

  margin-bottom: 10px;

  color: var(--primary-color);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 14px;

  color: var(--heading-color);

  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}

.product-card-content > p {
  margin-bottom: 18px;

  color: var(--muted-color);

  font-size: 14px;
  line-height: 1.7;
}


/*--------------------------------------------------------------
# PRODUCT CODE
--------------------------------------------------------------*/

.product-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 16px;

  padding: 10px 12px;

  background-color: var(--soft-background);

  border-radius: 9px;
}

.product-code span {
  color: var(--muted-color);

  font-size: 12px;
}

.product-code strong {
  color: var(--heading-color);

  font-size: 12px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# PRODUCT CARD FOOTER
--------------------------------------------------------------*/

.product-card-footer {
  margin-top: auto;
  padding-top: 18px;

  border-top: 1px solid var(--border-color);
}


/*--------------------------------------------------------------
# PRODUCT PRICE
--------------------------------------------------------------*/

.product-price {
  display: flex;
  flex-direction: column;

  margin-bottom: 16px;
}

.product-price span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 11px;
}

.product-price strong {
  color: var(--heading-color);

  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}


/*--------------------------------------------------------------
# PRODUCT BUTTON
--------------------------------------------------------------*/

.product-btn {
  width: 100%;

  justify-content: center;
}


/*--------------------------------------------------------------
# EMPTY SHOP STATE
--------------------------------------------------------------*/

.empty-state {
  padding: 50px 36px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 18px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
  width: 68px;
  height: 68px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--primary-light);
  color: var(--primary-color);

  border-radius: 16px;

  font-size: 30px;
}

.empty-state h2 {
  margin-bottom: 14px;

  font-size: 26px;
}

.empty-state p {
  max-width: 560px;

  margin: 0 auto 24px;

  color: var(--muted-color);

  line-height: 1.75;
}


/*--------------------------------------------------------------
# PRODUCT DETAIL
--------------------------------------------------------------*/

.product-detail {
  position: relative;
}

.product-detail-image {
  padding: 32px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 18px;

  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
}

.product-detail-image img {
  width: 100%;
  max-height: 520px;

  display: block;

  object-fit: contain;
}

.product-detail-content h1 {
  margin-bottom: 16px;

  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.product-detail-category {
  display: inline-block;

  margin-bottom: 10px;

  color: var(--primary-color);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-detail-code {
  margin-bottom: 20px;

  color: var(--muted-color);

  font-size: 13px;
}

.product-detail-description {
  margin-bottom: 24px;

  color: var(--muted-color);

  line-height: 1.8;
}


/*--------------------------------------------------------------
# PRODUCT DETAIL PRICE
--------------------------------------------------------------*/

.product-detail-price {
  margin-bottom: 26px;
}

.product-detail-price span {
  display: block;

  margin-bottom: 3px;

  color: var(--muted-color);

  font-size: 12px;
}

.product-detail-price strong {
  color: var(--heading-color);

  font-size: 28px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# QUANTITY CONTROLS
--------------------------------------------------------------*/

.quantity-control {
  display: flex;
  align-items: center;

  width: fit-content;

  border: 1px solid var(--border-color);
  border-radius: 9px;

  overflow: hidden;
}

.quantity-control button {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--surface-color);
  color: var(--heading-color);

  border: 0;

  font-size: 18px;
}

.quantity-control input {
  width: 60px;
  height: 42px;

  text-align: center;

  border: 0;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);

  font-size: 14px;
  font-weight: 600;
}


/*--------------------------------------------------------------
# ADD TO CART
--------------------------------------------------------------*/

.add-to-cart-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 24px;
}


/*--------------------------------------------------------------
# PRICE TIERS
--------------------------------------------------------------*/

.price-tiers {
  margin-top: 26px;

  border: 1px solid var(--border-color);
  border-radius: 12px;

  overflow: hidden;
}

.price-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 13px 16px;

  background-color: var(--surface-color);

  border-bottom: 1px solid var(--border-color);
}

.price-tier:last-child {
  border-bottom: 0;
}

.price-tier span {
  color: var(--muted-color);

  font-size: 13px;
}

.price-tier strong {
  color: var(--heading-color);

  font-size: 14px;
}


/*--------------------------------------------------------------
# BASKET
--------------------------------------------------------------*/

.cart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;

  gap: 20px;

  align-items: center;

  padding: 18px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.cart-item-image {
  width: 100px;
  height: 100px;

  padding: 8px;

  background-color: #ffffff;

  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.cart-item-content h3 {
  margin-bottom: 6px;

  font-size: 16px;
}

.cart-item-code {
  color: var(--muted-color);

  font-size: 12px;
}

.cart-item-price {
  color: var(--heading-color);

  font-size: 16px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# CART SUMMARY
--------------------------------------------------------------*/

.cart-summary {
  padding: 26px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 16px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.045);
}

.cart-summary h3 {
  margin-bottom: 22px;

  font-size: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;

  padding: 10px 0;

  color: var(--muted-color);

  border-bottom: 1px solid var(--border-color);

  font-size: 14px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;

  padding-top: 18px;

  color: var(--heading-color);

  font-size: 18px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# CHECKOUT
--------------------------------------------------------------*/

.checkout-card {
  padding: 30px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 16px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.checkout-card h2 {
  margin-bottom: 24px;

  font-size: 24px;
}

.checkout-card .form-control,
.checkout-card .form-select {
  min-height: 52px;

  color: var(--default-color);

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 9px;

  box-shadow: none;
}

.checkout-card .form-control:focus,
.checkout-card .form-select:focus {
  border-color: var(--primary-color);

  box-shadow: 0 0 0 3px color-mix(
    in srgb,
    var(--primary-color),
    transparent 88%
  );
}


/*--------------------------------------------------------------
# RESPONSIVE
--------------------------------------------------------------*/

@media (max-width: 991px) {

  .shop-filter-panel {
    padding: 20px;
  }

  .product-card-image {
    height: 240px;
  }

  .cart-item {
    grid-template-columns: 90px 1fr;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
  }

}


@media (max-width: 767px) {

  .shop-filter-panel {
    margin-bottom: 26px;

    padding: 18px;
  }

  .shop-filter-bottom {
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;
  }

  .product-card-image {
    height: 230px;
  }

  .product-detail-image {
    padding: 22px;
  }

  .add-to-cart-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .add-to-cart-wrap .site-btn {
    width: 100%;
  }

  .quantity-control {
    width: 100%;
  }

  .quantity-control input {
    flex: 1;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;

    gap: 14px;

    padding: 15px;
  }

  .cart-item-image {
    width: 72px;
    height: 72px;
  }

  .checkout-card {
    padding: 24px 20px;
  }

}


@media (max-width: 575px) {

  .shop-filter-panel {
    padding: 16px;
  }

  .shop-filter-form .form-control,
  .shop-filter-form .form-select,
  .shop-filter-submit {
    min-height: 46px;
  }

  .product-card-content {
    padding: 18px;
  }

  .product-card-image {
    height: 220px;
  }

  .empty-state {
    padding: 38px 22px;
  }

  .cart-summary {
    padding: 22px;
  }

}


/*--------------------------------------------------------------
# CART QUANTITY
--------------------------------------------------------------*/

.cart-quantity-form {
  margin-top: 16px;
}

.cart-quantity-form label {
  display: block;

  margin-bottom: 6px;

  color: var(--muted-color);

  font-size: 12px;
}

.cart-quantity-row {
  display: flex;
  align-items: center;
  gap: 8px;

  max-width: 220px;
}

.cart-quantity-row .form-control {
  width: 90px;
  min-height: 42px;

  border: 1px solid var(--border-color);
  border-radius: 8px;

  box-shadow: none;
}

.cart-update-btn {
  min-height: 42px;

  padding: 0 14px;

  background-color: var(--primary-light);
  color: var(--primary-color);

  border: 0;
  border-radius: 8px;

  font-size: 13px;
  font-weight: 650;
}


/*--------------------------------------------------------------
# CART ITEM ACTIONS
--------------------------------------------------------------*/

.cart-item-actions {
  min-width: 150px;

  text-align: right;
}

.cart-item-price {
  margin-bottom: 14px;
}

.cart-item-price small {
  display: block;

  color: var(--muted-color);

  font-size: 11px;
  font-weight: 400;
}

.cart-item-subtotal {
  margin-bottom: 16px;

  display: flex;
  flex-direction: column;
}

.cart-item-subtotal span {
  color: var(--muted-color);

  font-size: 11px;
}

.cart-item-subtotal strong {
  color: var(--heading-color);

  font-size: 18px;
  font-weight: 700;
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 0;

  background: none;
  color: var(--muted-color);

  border: 0;

  font-size: 12px;
}

.cart-remove-btn:hover {
  color: #b42318;
}


/*--------------------------------------------------------------
# CART SUMMARY ACTIONS
--------------------------------------------------------------*/

.cart-summary-actions {
  margin-top: 24px;
}

.cart-summary-actions .site-btn {
  width: 100%;

  justify-content: center;
}

.cart-continue-shopping {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin-top: 15px;

  color: var(--primary-color);

  font-size: 13px;
  font-weight: 650;
}


/*--------------------------------------------------------------
# CART MOBILE
--------------------------------------------------------------*/

@media (max-width: 767px) {

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item-actions {
    grid-column: 1 / -1;

    padding-top: 14px;

    text-align: left;

    border-top: 1px solid var(--border-color);
  }

  .cart-item-subtotal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cart-quantity-row {
    max-width: 100%;
  }

}



/*--------------------------------------------------------------
# ACCOUNT PAGES
--------------------------------------------------------------*/

.account-card {
  padding: 34px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 18px;

  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.055);
}

.account-card-heading {
  margin-bottom: 26px;
  text-align: center;
}

.account-card-heading h2 {
  margin-bottom: 8px;

  font-size: 26px;
}

.account-card-heading p {
  margin-bottom: 0;

  color: var(--muted-color);

  font-size: 14px;
}


/*--------------------------------------------------------------
# ACCOUNT FORM
--------------------------------------------------------------*/

.account-form .form-label {
  margin-bottom: 7px;

  color: var(--heading-color);

  font-size: 13px;
  font-weight: 650;
}

.account-form .form-control {
  min-height: 50px;

  color: var(--default-color);

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 9px;

  box-shadow: none;
}

.account-form .form-control:focus {
  border-color: var(--primary-color);

  box-shadow: 0 0 0 3px color-mix(
    in srgb,
    var(--primary-color),
    transparent 88%
  );
}

.account-form-links {
  display: flex;
  justify-content: flex-end;

  margin-bottom: 20px;
}

.account-form-links a {
  color: var(--primary-color);

  font-size: 13px;
  font-weight: 650;
}

.account-submit {
  width: 100%;

  justify-content: center;
}


/*--------------------------------------------------------------
# ACCOUNT FOOTER
--------------------------------------------------------------*/

.account-card-footer {
  margin-top: 24px;
  padding-top: 20px;

  text-align: center;

  border-top: 1px solid var(--border-color);

  color: var(--muted-color);

  font-size: 13px;
}

.account-card-footer a {
  margin-left: 4px;

  color: var(--primary-color);

  font-weight: 650;
}


/*--------------------------------------------------------------
# ACCOUNT MOBILE
--------------------------------------------------------------*/

@media (max-width: 575px) {

  .account-card {
    padding: 26px 20px;
  }

}


/*--------------------------------------------------------------
# CHECKOUT FORM
--------------------------------------------------------------*/

.checkout-card .form-label {
  margin-bottom: 7px;

  color: var(--heading-color);

  font-size: 13px;
  font-weight: 650;
}


/*--------------------------------------------------------------
# CHECKOUT SUMMARY ITEMS
--------------------------------------------------------------*/

.checkout-summary-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding: 14px 0;

  border-bottom: 1px solid var(--border-color);
}

.checkout-summary-item > div {
  display: flex;
  flex-direction: column;
}

.checkout-summary-item strong {
  color: var(--heading-color);

  font-size: 13px;
}

.checkout-summary-item span {
  margin-top: 4px;

  color: var(--muted-color);

  font-size: 12px;
}


/*--------------------------------------------------------------
# CHECKOUT SUBMIT
--------------------------------------------------------------*/

.checkout-submit {
  margin-top: 24px;
}

.checkout-submit .site-btn {
  width: 100%;

  justify-content: center;
}

/*--------------------------------------------------------------
# ACCOUNT AREA
--------------------------------------------------------------*/

.account-sidebar {
  display: flex;
  flex-direction: column;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 16px;

  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-sidebar a,
.account-sidebar-logout {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 16px;

  background: none;
  color: var(--default-color);

  border: 0;
  border-bottom: 1px solid var(--border-color);

  font-size: 14px;
  font-weight: 600;

  text-align: left;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.account-sidebar a:last-of-type {
  border-bottom: 1px solid var(--border-color);
}

.account-sidebar a:hover,
.account-sidebar a.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.account-sidebar i {
  width: 18px;

  font-size: 16px;
}

.account-sidebar form {
  margin: 0;
}

.account-sidebar-logout {
  border-bottom: 0;

  color: var(--muted-color);

  cursor: pointer;
}

.account-sidebar-logout:hover {
  background-color: #fff4f3;
  color: #b42318;
}


/*--------------------------------------------------------------
# ACCOUNT PANEL
--------------------------------------------------------------*/

.account-panel {
  padding: 30px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 16px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.account-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 26px;
}

.account-panel-heading h2 {
  margin-bottom: 0;

  font-size: 28px;
  line-height: 1.2;
}


/*--------------------------------------------------------------
# ACCOUNT OVERVIEW
--------------------------------------------------------------*/

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;

  margin-bottom: 34px;
}

.account-overview-card {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 20px;

  background-color: var(--soft-background);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.account-overview-icon {
  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--primary-light);
  color: var(--primary-color);

  border-radius: 10px;

  font-size: 19px;
}

.account-overview-card > div:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.account-overview-card span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 12px;
}

.account-overview-card strong {
  color: var(--heading-color);

  font-size: 14px;
  font-weight: 650;

  overflow-wrap: anywhere;
}


/*--------------------------------------------------------------
# ACCOUNT SECTION HEADING
--------------------------------------------------------------*/

.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-top: 30px;
  margin-bottom: 16px;
}

.account-section-heading h3 {
  margin: 0;

  font-size: 20px;
}

.account-section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--primary-color);

  font-size: 13px;
  font-weight: 650;
}


/*--------------------------------------------------------------
# ORDER LIST
--------------------------------------------------------------*/

.account-orders-list {
  display: flex;
  flex-direction: column;

  border: 1px solid var(--border-color);
  border-radius: 12px;

  overflow: hidden;
}

.account-order-row {
  display: grid;
  grid-template-columns:
    minmax(130px, 1.4fr)
    minmax(110px, 1fr)
    minmax(110px, 1fr)
    minmax(110px, 1fr)
    auto;

  gap: 18px;

  align-items: center;

  padding: 16px 18px;

  background-color: var(--surface-color);
  color: var(--default-color);

  border-bottom: 1px solid var(--border-color);

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.account-order-row:last-child {
  border-bottom: 0;
}

.account-order-row:hover {
  background-color: var(--soft-background);
  color: var(--default-color);
}

.account-order-row > div {
  display: flex;
  flex-direction: column;
}

.account-order-row span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 11px;
}

.account-order-row strong {
  color: var(--heading-color);

  font-size: 13px;
  font-weight: 650;
}

.account-order-row > i {
  color: var(--muted-color);

  font-size: 14px;
}


/*--------------------------------------------------------------
# ACCOUNT EMPTY STATE
--------------------------------------------------------------*/

.account-empty {
  padding: 42px 26px;

  text-align: center;

  background-color: var(--soft-background);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.account-empty > i {
  display: block;

  margin-bottom: 14px;

  color: var(--primary-color);

  font-size: 34px;
}

.account-empty h3 {
  margin-bottom: 8px;

  font-size: 20px;
}

.account-empty p {
  margin-bottom: 20px;

  color: var(--muted-color);

  font-size: 14px;
}


/*--------------------------------------------------------------
# ORDER DETAIL META
--------------------------------------------------------------*/

.order-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;

  margin-bottom: 28px;
}

.order-detail-meta > div {
  padding: 18px;

  display: flex;
  flex-direction: column;

  background-color: var(--soft-background);

  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.order-detail-meta span {
  margin-bottom: 3px;

  color: var(--muted-color);

  font-size: 12px;
}

.order-detail-meta strong {
  color: var(--heading-color);

  font-size: 16px;
}


/*--------------------------------------------------------------
# ORDER PRODUCTS
--------------------------------------------------------------*/

.order-product-list {
  border: 1px solid var(--border-color);
  border-radius: 12px;

  overflow: hidden;
}

.order-product-row {
  display: grid;
  grid-template-columns: 1fr auto auto;

  gap: 20px;

  align-items: center;

  padding: 16px 18px;

  border-bottom: 1px solid var(--border-color);
}

.order-product-row:last-child {
  border-bottom: 0;
}

.order-product-row > div {
  display: flex;
  flex-direction: column;
}

.order-product-row > div span {
  margin-top: 2px;

  color: var(--muted-color);

  font-size: 11px;
}

.order-product-row > span {
  color: var(--muted-color);

  font-size: 13px;
}

.order-product-row > strong {
  color: var(--heading-color);

  font-size: 14px;
}


/*--------------------------------------------------------------
# ORDER ADDRESS
--------------------------------------------------------------*/

.order-address {
  display: flex;
  flex-direction: column;

  gap: 4px;

  padding: 20px;

  background-color: var(--soft-background);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.order-address strong {
  margin-bottom: 4px;

  color: var(--heading-color);

  font-size: 15px;
}

.order-address span {
  color: var(--muted-color);

  font-size: 14px;
  line-height: 1.5;
}


/*--------------------------------------------------------------
# ACCOUNT DETAILS FORM
--------------------------------------------------------------*/

.account-details-submit {
  margin-top: 24px;
}

.account-details-submit .site-btn {
  min-width: 150px;
}


/*--------------------------------------------------------------
# HEADER ACCOUNT LINK
--------------------------------------------------------------*/

.site-account-link {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--nav-color);

  transition: color 0.3s ease;
}

.site-account-link i {
  font-size: 30px !important;
  line-height: 1;
}

.site-account-link:hover,
.site-account-link.active {
  color: var(--primary-color);
}


/*--------------------------------------------------------------
# ACCOUNT RESPONSIVE
--------------------------------------------------------------*/

@media (max-width: 991px) {

  .account-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin-bottom: 10px;
  }

  .account-sidebar a,
  .account-sidebar-logout {
    border-right: 1px solid var(--border-color);
  }

  .account-panel {
    padding: 26px;
  }

  .account-order-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-order-row > i {
    display: none;
  }

}


@media (max-width: 767px) {

  .account-sidebar {
    grid-template-columns: 1fr;
  }

  .account-sidebar a,
  .account-sidebar-logout {
    border-right: 0;
  }

  .account-panel {
    padding: 22px 18px;
  }

  .account-panel-heading {
    flex-direction: column;

    margin-bottom: 22px;
  }

  .account-panel-heading h2 {
    font-size: 24px;
  }

  .account-overview-grid {
    grid-template-columns: 1fr;
  }

  .account-section-heading {
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;
  }

  .account-order-row {
    grid-template-columns: 1fr;

    gap: 10px;

    padding: 16px;
  }

  .account-order-row > div {
    padding-bottom: 8px;

    border-bottom: 1px solid var(--border-color);
  }

  .account-order-row > div:last-of-type {
    padding-bottom: 0;

    border-bottom: 0;
  }

  .order-detail-meta {
    grid-template-columns: 1fr;
  }

  .order-product-row {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .order-product-row > span,
  .order-product-row > strong {
    display: block;
  }

  .account-details-submit .site-btn {
    width: 100%;
  }

}


@media (max-width: 575px) {

  .account-overview-card {
    padding: 16px;
  }

  .account-panel {
    border-radius: 14px;
  }

}

/*--------------------------------------------------------------
# ACCESS DASHBOARD STATS
--------------------------------------------------------------*/

.access-stat-card {
  height: 100%;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 18px;

  background-color: var(--soft-background);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.access-stat-icon {
  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--primary-light);
  color: var(--primary-color);

  border-radius: 10px;

  font-size: 19px;
}

.access-stat-content {
  display: flex;
  flex-direction: column;
}

.access-stat-content span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 11px;
}

.access-stat-content strong {
  color: var(--heading-color);

  font-size: 24px;
  font-weight: 700;
}


/*--------------------------------------------------------------
# ACCESS SUMMARY
--------------------------------------------------------------*/

.access-summary-number {
  margin-bottom: 8px;

  color: var(--heading-color);

  font-size: 30px;
  font-weight: 700;
}

.access-summary-copy {
  margin-bottom: 0;

  color: var(--muted-color);

  font-size: 13px;
  line-height: 1.7;
}


/*--------------------------------------------------------------
# ACCESS FILTERS
--------------------------------------------------------------*/

.access-filter-form {
  margin-top: 10px;
  padding: 20px;

  background-color: var(--soft-background);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.access-filter-form .form-label {
  margin-bottom: 7px;

  color: var(--heading-color);

  font-size: 12px;
  font-weight: 650;
}

.access-filter-form .form-control,
.access-filter-form .form-select {
  min-height: 46px;

  border: 1px solid var(--border-color);
  border-radius: 8px;

  box-shadow: none;
}

.access-filter-form .form-control:focus,
.access-filter-form .form-select:focus {
  border-color: var(--primary-color);

  box-shadow: 0 0 0 3px color-mix(
    in srgb,
    var(--primary-color),
    transparent 88%
  );
}

.access-filter-clear {
  margin-top: 14px;
}

.access-filter-clear a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--primary-color);

  font-size: 12px;
  font-weight: 650;
}


/*--------------------------------------------------------------
# ACCESS PRODUCTS
--------------------------------------------------------------*/

.access-product-list {
  display: flex;
  flex-direction: column;

  border: 1px solid var(--border-color);
  border-radius: 12px;

  overflow: hidden;
}

.access-product-row {
  display: grid;

  grid-template-columns:
    64px
    minmax(180px, 1.6fr)
    minmax(120px, 1fr)
    minmax(110px, 0.8fr)
    minmax(90px, 0.7fr)
    auto;

  align-items: center;

  gap: 16px;

  padding: 14px 16px;

  background-color: var(--surface-color);
  color: var(--default-color);

  border-bottom: 1px solid var(--border-color);

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.access-product-row:last-child {
  border-bottom: 0;
}

.access-product-row:hover {
  background-color: var(--soft-background);
  color: var(--default-color);
}


/*--------------------------------------------------------------
# PRODUCT IMAGE
--------------------------------------------------------------*/

.access-product-image {
  width: 58px;
  height: 58px;

  border: 1px solid var(--border-color);
  border-radius: 8px;

  overflow: hidden;

  background-color: var(--soft-background);
}

.access-product-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.access-product-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--muted-color);

  font-size: 20px;
}


/*--------------------------------------------------------------
# PRODUCT ROW CONTENT
--------------------------------------------------------------*/

.access-product-main,
.access-product-column {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.access-product-main span,
.access-product-column span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 10px;
}

.access-product-main strong {
  color: var(--heading-color);

  font-size: 14px;
  font-weight: 650;
}

.access-product-column strong {
  color: var(--heading-color);

  font-size: 12px;
  font-weight: 650;
}

.access-product-row > i {
  color: var(--muted-color);

  font-size: 13px;
}


/*--------------------------------------------------------------
# ACCESS PRODUCTS RESPONSIVE
--------------------------------------------------------------*/

@media (max-width: 991px) {

  .access-product-row {
    grid-template-columns:
      58px
      1fr
      auto;
  }

  .access-product-column {
    display: none;
  }

}


@media (max-width: 575px) {

  .access-product-row {
    gap: 12px;

    padding: 12px;
  }

  .access-product-image {
    width: 52px;
    height: 52px;
  }

}

/*--------------------------------------------------------------
# ACCESS PRODUCT FORM
--------------------------------------------------------------*/

.access-product-form .form-label {
  margin-bottom: 7px;

  color: var(--heading-color);

  font-size: 12px;
  font-weight: 650;
}

.access-product-form .form-control,
.access-product-form .form-select {
  min-height: 46px;

  border: 1px solid var(--border-color);
  border-radius: 8px;

  box-shadow: none;
}

.access-product-form textarea.form-control {
  min-height: 150px;
}

.access-product-form .form-control:focus,
.access-product-form .form-select:focus {
  border-color: var(--primary-color);

  box-shadow: 0 0 0 3px color-mix(
    in srgb,
    var(--primary-color),
    transparent 88%
  );
}


/*--------------------------------------------------------------
# ACCESS FORM SECTION
--------------------------------------------------------------*/

.access-form-section {
  padding: 24px;

  background-color: var(--surface-color);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.access-form-section + .access-form-section {
  margin-top: 20px;
}


/*--------------------------------------------------------------
# FORM SIDE
--------------------------------------------------------------*/

.access-form-side {
  display: flex;
  flex-direction: column;

  gap: 16px;
}

.access-form-side-card {
  padding: 20px;

  background-color: var(--soft-background);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.access-form-side-card h3 {
  margin-bottom: 16px;

  font-size: 16px;
}

.access-form-side-card .form-check {
  margin-bottom: 10px;
}

.access-form-side-card .form-check:last-child {
  margin-bottom: 0;
}


/*--------------------------------------------------------------
# CURRENT IMAGE
--------------------------------------------------------------*/

.access-current-image {
  width: 180px;
  height: 180px;

  padding: 10px;

  background-color: var(--soft-background);

  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.access-current-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


/*--------------------------------------------------------------
# FORM ERRORS
--------------------------------------------------------------*/

.access-form-error {
  margin-top: 5px;

  color: #b42318;

  font-size: 11px;
}


/*--------------------------------------------------------------
# PRICE LIST
--------------------------------------------------------------*/

.access-price-list {
  display: flex;
  flex-direction: column;

  border: 1px solid var(--border-color);
  border-radius: 10px;

  overflow: hidden;
}

.access-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 20px;

  padding: 14px 16px;

  border-bottom: 1px solid var(--border-color);
}

.access-price-row:last-child {
  border-bottom: 0;
}

.access-price-row > div {
  display: flex;
  flex-direction: column;
}

.access-price-row span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 10px;
}

.access-price-row strong {
  color: var(--heading-color);

  font-size: 13px;
}


/*--------------------------------------------------------------
# MOBILE
--------------------------------------------------------------*/

@media (max-width: 767px) {

  .access-form-section {
    padding: 18px;
  }

  .access-current-image {
    width: 140px;
    height: 140px;
  }

  .access-price-row {
    grid-template-columns: 1fr;
  }

}

/*--------------------------------------------------------------
# ACCESS CATEGORIES
--------------------------------------------------------------*/

.access-category-list {
  display: flex;
  flex-direction: column;

  border: 1px solid var(--border-color);
  border-radius: 12px;

  overflow: hidden;
}

.access-category-row {
  display: grid;

  grid-template-columns:
    minmax(220px, 1.6fr)
    minmax(100px, 0.6fr)
    minmax(100px, 0.7fr)
    minmax(90px, 0.6fr);

  align-items: center;

  gap: 18px;

  padding: 16px 18px;

  background-color: var(--surface-color);

  border-bottom: 1px solid var(--border-color);
}

.access-category-row:last-child {
  border-bottom: 0;
}


/*--------------------------------------------------------------
# CATEGORY MAIN
--------------------------------------------------------------*/

.access-category-main {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
}

.access-category-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--primary-light);
  color: var(--primary-color);

  border-radius: 10px;

  font-size: 17px;
}

.access-category-main > div:last-child,
.access-category-column {
  display: flex;
  flex-direction: column;
}

.access-category-main span,
.access-category-column span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 10px;
}

.access-category-main strong {
  color: var(--heading-color);

  font-size: 14px;
  font-weight: 650;
}

.access-category-column strong {
  color: var(--heading-color);

  font-size: 12px;
  font-weight: 650;
}


/*--------------------------------------------------------------
# ACCESS CATEGORIES RESPONSIVE
--------------------------------------------------------------*/

@media (max-width: 767px) {

  .access-category-row {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .access-category-column {
    padding-top: 10px;

    border-top: 1px solid var(--border-color);
  }

}

/*--------------------------------------------------------------
# ACCESS CUSTOMERS
--------------------------------------------------------------*/

.access-customer-list {
  display: flex;
  flex-direction: column;

  border: 1px solid var(--border-color);
  border-radius: 12px;

  overflow: hidden;
}

.access-customer-row {
  display: grid;

  grid-template-columns:
    minmax(220px, 1.5fr)
    minmax(180px, 1.2fr)
    minmax(80px, 0.5fr)
    minmax(100px, 0.7fr)
    minmax(90px, 0.6fr);

  align-items: center;

  gap: 18px;

  padding: 16px 18px;

  background-color: var(--surface-color);

  border-bottom: 1px solid var(--border-color);
}

.access-customer-row:last-child {
  border-bottom: 0;
}


/*--------------------------------------------------------------
# CUSTOMER MAIN
--------------------------------------------------------------*/

.access-customer-main {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
}

.access-customer-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--primary-light);
  color: var(--primary-color);

  border-radius: 10px;

  font-size: 17px;
}

.access-customer-main > div:last-child,
.access-customer-column {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.access-customer-main span,
.access-customer-column span {
  margin-bottom: 2px;

  color: var(--muted-color);

  font-size: 10px;
}

.access-customer-main strong,
.access-customer-column strong {
  color: var(--heading-color);

  font-size: 12px;
  font-weight: 650;

  overflow-wrap: anywhere;
}

.access-customer-main strong {
  font-size: 14px;
}

.access-customer-main small {
  margin-top: 2px;

  color: var(--muted-color);

  font-size: 10px;
}


/*--------------------------------------------------------------
# ACCESS CUSTOMERS RESPONSIVE
--------------------------------------------------------------*/

@media (max-width: 991px) {

  .access-customer-row {
    grid-template-columns:
      minmax(200px, 1fr)
      minmax(160px, 1fr)
      minmax(70px, auto);
  }

  .access-customer-column:nth-of-type(3),
  .access-customer-column:nth-of-type(4) {
    display: none;
  }

}


@media (max-width: 767px) {

  .access-customer-row {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .access-customer-column {
    display: flex !important;

    padding-top: 10px;

    border-top: 1px solid var(--border-color);
  }

}

/*--------------------------------------------------------------
# ACCOUNT MESSAGES
--------------------------------------------------------------*/

.account-messages {
  margin-bottom: 20px;
}

.account-message {
  padding: 12px 14px;

  border: 1px solid var(--border-color);
  border-radius: 9px;

  font-size: 13px;
  line-height: 1.5;
}


/* Error */

.account-message-error {
  background-color: #fff2f0;
  color: #a61b1b;

  border-color: #f1c5c1;
}


/* Success */

.account-message-success {
  background-color: #edf8ef;
  color: #26733c;

  border-color: #c6e5ce;
}


/* Warning */

.account-message-warning {
  background-color: #fff8e6;
  color: #8a6116;

  border-color: #ead9a6;
}


/* Info */

.account-message-info {
  background-color: var(--primary-light);
  color: var(--primary-color);

  border-color: color-mix(
    in srgb,
    var(--primary-color),
    transparent 75%
  );
}