/* ------------------
   View Stocks Page
   ----------------- */

.tasmac-shop-stocks-page .tasmac-shop-stock-header {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tasmac-shop-stocks-page .tasmac-shop-stock-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.tasmac-shop-stocks-page .tasmac-shop-stock-label {
  font-size: 12px;
  font-weight: 500;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.tasmac-shop-stocks-page .tasmac-shop-stock-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: #111;
}

.tasmac-shop-stocks-page .tasmac-shop-type {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.tasmac-shop-stocks-page .tasmac-shop-stock-address {
  padding-bottom: 22px;
  border-bottom: 1px solid #eeeeee;
  line-height: 1.7;
  color: #333;
}

.tasmac-shop-stocks-page .tasmac-shop-stock-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 22px 0;
  border-bottom: 1px solid #eeeeee;
}

.tasmac-shop-stocks-page .tasmac-shop-stock-location strong,
.tasmac-shop-stocks-page .tasmac-shop-stock-dm strong {
  font-size: 15px;
  color: #222;
}

.tasmac-shop-stocks-page .tasmac-shop-stock-dm {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
}

.tasmac-shop-stocks-page .tasmac-shop-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  padding: 11px 20px;
  border: 1px solid #d9274f;
  border-radius: 6px;
  background: #fff;
  color: #d9274f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tasmac-shop-stocks-page .tasmac-shop-map-link:hover {
  background: #d9274f;
  color: #fff;
}

@media (max-width: 600px) {

  .tasmac-shop-stocks-page .tasmac-shop-stock-header {
    padding: 20px;
  }

  .tasmac-shop-stocks-page .tasmac-shop-stock-header h1 {
    font-size: 23px;
  }

  .tasmac-shop-stocks-page .tasmac-shop-stock-location {
    gap: 20px;
  }

  .tasmac-shop-stocks-page .tasmac-shop-stock-dm {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .tasmac-shop-stocks-page .tasmac-shop-map-link {
    width: 100%;
  }

}

/* =========================================================
   SHOP STOCKS PAGE
   ========================================================= */

.tasmac-shop-stocks-page {
  width: 100%;
  max-width: 100%;
}

.tasmac-stock-sync-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.tasmac-stock-sync-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.tasmac-stock-sync-item svg {
  color: #64748b;
  flex-shrink: 0;
}

/* =========================================================
   SHOP DETAILS CARD
   ========================================================= */

.tasmac-stock-shop-card {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 14px;
  padding: 30px 32px;
  margin-bottom: 28px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.tasmac-stock-shop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
}

.tasmac-stock-shop-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #777;
  margin-bottom: 5px;
}

.tasmac-stock-shop-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.tasmac-shop-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}


/* =========================================================
   ADDRESS
   ========================================================= */

.tasmac-stock-address {
  border-top: 1px solid #eeeeee;
  padding: 22px 0;
}

.tasmac-stock-detail-label {
  font-size: 12px;
  color: #777;
  font-weight: 600;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}

.tasmac-stock-address-text {
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}


/* =========================================================
   LOCATION
   ========================================================= */

.tasmac-stock-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1px solid #eeeeee;
  padding: 22px 0;
}

.tasmac-stock-location-grid strong,
.tasmac-stock-shop-footer strong {
  font-size: 15px;
  color: #222;
}


/* =========================================================
   SHOP FOOTER
   ========================================================= */

.tasmac-stock-shop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #eeeeee;
  padding-top: 22px;
}

.tasmac-stock-map-button {
  min-width: 200px;
  height: 48px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 1px solid #df1735;
  border-radius: 7px;

  color: #df1735;
  background: #fff;

  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  transition: all 0.2s ease;
}

.tasmac-stock-map-button:hover {
  background: #df1735;
  color: #fff;
  text-decoration: none;
}


/* =========================================================
   STOCK UPDATE INFO
   ========================================================= */

.tasmac-stock-update-info {
  display: flex;
  align-items: center;
  gap: 9px;

  margin: 0 0 18px;
  padding: 13px 16px;

  border: 1px solid #e6e6e6;
  border-radius: 8px;

  background: #fafafa;

  color: #666;
  font-size: 13px;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.tasmac-stock-category {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* =========================================================
   CATEGORY HEADER
   ========================================================= */

.tasmac-stock-category-header {
  min-height: 62px;

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

  padding: 0 20px;

  border-bottom: 1px solid #e7e7e7;
  background: #fafafa;
}

.tasmac-stock-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tasmac-stock-category-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.tasmac-stock-category-icon {
  width: 38px;
  height: 38px;

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

  border-radius: 9px;

  background: #f7f7f7;
  border: 1px solid #e2e2e2;

  flex-shrink: 0;
}

.tasmac-stock-category-icon svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tasmac-stock-product-count {
  font-size: 12px;
  color: #777;
  font-weight: 600;
}


/* =========================================================
   STOCK TABLE
   ========================================================= */

.tasmac-stock-table-wrapper {
  overflow-x: auto;
}

.tasmac-stock-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.tasmac-stock-table thead {
  background: #fff;
}

.tasmac-stock-table th {
  padding: 14px 20px;

  text-align: left;

  border-bottom: 1px solid #e5e5e5;

  color: #777;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.tasmac-stock-table td {
  padding: 16px 20px;

  border-bottom: 1px solid #eeeeee;

  font-size: 14px;
  color: #333;

  vertical-align: middle;
}

.tasmac-stock-table tbody tr:last-child td {
  border-bottom: 0;
}

.tasmac-stock-table tbody tr:hover {
  background: #fafafa;
}


/* =========================================================
   PRODUCT
   ========================================================= */

.tasmac-stock-product-name {
  font-weight: 600;
  color: #222;
  line-height: 1.45;
}

.tasmac-stock-size {
  display: inline-flex;
  padding: 5px 9px;

  border-radius: 5px;
  background: #f5f5f5;

  font-size: 12px;
  font-weight: 600;
  color: #555;
}


/* =========================================================
   STOCK STATUS
   ========================================================= */

.tasmac-stock-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #248a45;
  font-size: 13px;
  font-weight: 600;
}

.tasmac-stock-dot {
  width: 7px;
  height: 7px;

  display: inline-block;

  border-radius: 50%;
  background: #2da44e;
}

.tasmac-stock-available small {
  color: #777;
  font-size: 11px;
  font-weight: 400;
}

.tasmac-stock-unavailable {
  color: #c62828;
  font-size: 13px;
  font-weight: 600;
}

.tasmac-stock-price {
  font-size: 15px;
  color: #222;
  white-space: nowrap;
}


/* =========================================================
   MOBILE CARDS
   ========================================================= */

.tasmac-stock-mobile-list {
  display: none;
}


/* =========================================================
   NO STOCK
   ========================================================= */

.tasmac-no-stock {
  padding: 50px 20px;
  margin-bottom: 50px;

  text-align: center;

  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
}

.tasmac-no-stock-icon {
  font-size: 35px;
  margin-bottom: 10px;
}

.tasmac-no-stock h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tasmac-no-stock p {
  margin: 0;
  color: #777;
}

/* =========================================================
   DYNAMIC COLOR SCHEMES FOR SHOP DETAILS CARD
   ========================================================= */

/* Normal Shop Styles (#c8102e) */
.tasmac-stock-shop-card--normal {
    border-color: rgba(200, 16, 46, 0.4);
}

.tasmac-shop-type-badge--normal {
    color: #c8102e;
    background-color: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.3);
}

.tasmac-stock-shop-card--normal .tasmac-stock-map-button {
    border-color: #c8102e;
    color: #c8102e;
}

.tasmac-stock-shop-card--normal .tasmac-stock-map-button:hover {
    background-color: #c8102e;
    color: #ffffff;
}


/* Elite Shop Styles (#2563eb) */
.tasmac-stock-shop-card--elite {
    border-color: rgba(37, 99, 235, 0.4);
}

.tasmac-shop-type-badge--elite {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.tasmac-stock-shop-card--elite .tasmac-stock-map-button {
    border-color: #2563eb;
    color: #2563eb;
}

.tasmac-stock-shop-card--elite .tasmac-stock-map-button:hover {
    background-color: #2563eb;
    color: #ffffff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .tasmac-stock-shop-card {
    padding: 22px 20px;
    border-radius: 10px;
  }

  .tasmac-stock-shop-header h1 {
    font-size: 24px;
  }

  .tasmac-stock-location-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tasmac-stock-shop-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tasmac-stock-map-button {
    width: 100%;
  }

  .tasmac-stock-category-header {
    padding: 0 15px;
  }

  .tasmac-stock-table-wrapper {
    display: none;
  }

  .tasmac-stock-mobile-list {
    display: block;
  }

  .tasmac-stock-mobile-card {
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
  }

  .tasmac-stock-mobile-card:last-child {
    border-bottom: 0;
  }

  .tasmac-stock-mobile-product {
    margin-bottom: 10px;

    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: #222;
  }

  .tasmac-stock-mobile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    font-size: 12px;
  }

  .tasmac-stock-category-title h2 {
    font-size: 18px;
  }

}



