/* Copied designer CSS (main.css) */
/* Source: 12/assets/css/main.css */

/* Farhang Font - Global */
@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-Thin.woff2') format('woff2'), url('/fonts/Farhang2-Thin.woff') format('woff');
  font-weight: 100;
}

@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-ExtraLight.woff2') format('woff2'), url('/fonts/Farhang2-ExtraLight.woff') format('woff');
  font-weight: 200;
}

@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-Light.woff2') format('woff2'), url('/fonts/Farhang2-Light.woff') format('woff');
  font-weight: 300;
}

@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-Regular.woff2') format('woff2'), url('/fonts/Farhang2-Regular.woff') format('woff');
  font-weight: 400;
}

@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-Medium.woff2') format('woff2'), url('/fonts/Farhang2-Medium.woff') format('woff');
  font-weight: 500;
}

@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-DemiBold.woff2') format('woff2'), url('/fonts/Farhang2-DemiBold.woff') format('woff');
  font-weight: 600;
}

@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-Bold.woff2') format('woff2'), url('/fonts/Farhang2-Bold.woff') format('woff');
  font-weight: 700;
}

@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-ExtraBold.woff2') format('woff2'), url('/fonts/Farhang2-ExtraBold.woff') format('woff');
  font-weight: 800;
}

@font-face {
  font-family: 'Farhang';
  src: url('/fonts/Farhang2-Black.woff2') format('woff2'), url('/fonts/Farhang2-Black.woff') format('woff');
  font-weight: 900;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: 'Farhang', Tahoma, sans-serif;
  background: #eeeeee;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #dedede;
  min-height: 74px;
}

.site-header-inner {
  width: min(1320px, 95%);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 150px;
  max-height: 54px;
  height: auto;
  object-fit: contain;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 46px);
  height: 74px;
  min-width: 0;
}

.top-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  color: #555;
  font-size: 15px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding: 0;
}

.top-nav a:hover,
.top-nav a.active {
  color: #222;
  border-bottom-color: #c7ac63;
}

.header-left {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.back-btn {
  min-height: 38px;
  padding: 9px 22px;
  border: 1px solid #ccb26d;
  border-radius: 999px;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
}

.page {
  padding: 26px 0 40px;
}

.panel {
  background: #fff;
  border: 1px solid #dcdcdc;
  min-height: 660px;
  padding: 34px;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e7e7e7;
}

.page-intro .page-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.4;
  color: #b89c54;
  font-weight: 700;
}

.page-intro .page-desc {
  margin: 0;
  color: #8b8b8b;
  font-size: 14px;
}

.content-card {
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 24px;
}

.content-card + .content-card {
  margin-top: 22px;
}

.section + .section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e5e5e5;
}

.section-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  color: #b89c54;
  font-weight: 700;
}

.section-desc {
  margin: 6px 0 24px;
  color: #8b8b8b;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #666;
  font-size: 14px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid #d9d9d9;
  background: #fff;
  height: 44px;
  padding: 0 14px;
  color: #333;
  outline: none;
  font-family: inherit;
}

.form-grid .btn {
  min-width: 150px;
  height: 50px;
  border: 0;
  cursor: pointer;
}

.form-field textarea {
  min-height: 110px;
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #bcbcbc;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #c7ac63;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 2px;
}

.btn {
  min-width: 150px;
  height: 50px;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: #c6a451;
  color: #fff;
}

.btn-primary:hover {
  background: #b59444;
}

.btn-secondary {
  background: #efefef;
  color: #666;
}

.simple-boxes {
  display: grid;
  gap: 18px;
}

.simple-box {
  border: 1px solid #dedede;
  background: #fff;
  padding: 20px;
}

.simple-box-title {
  font-size: 18px;
  color: #444;
  margin: 0 0 10px;
}

.simple-box-meta {
  color: #777;
  font-size: 14px;
  margin: 0 0 6px;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  border: 1px dashed #d6d6d6;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.table th,
.table td {
  border: 1px solid #e1e1e1;
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
}

.table th {
  background: #fafafa;
  color: #666;
  font-weight: 700;
}

.table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.table tbody tr:hover {
  background: #f7f2e6;
}

.table td {
  vertical-align: middle;
}

.status {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
}

.status.pending {
  background: #fff3cd;
  color: #8a6d3b;
}

.status.paid {
  background: #dff0d8;
  color: #3c763d;
}

.status.cancel {
  background: #f2dede;
  color: #a94442;
}

.cart-list {
  display: grid;
  gap: 16px;
}

.cart-item {
  border: 1px solid #dfdfdf;
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 700;
}

.cart-item-meta {
  color: #777;
  font-size: 14px;
  margin-top: 6px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #d5d5d5;
  background: #fff;
  cursor: pointer;
}

.qty-value {
  min-width: 28px;
  text-align: center;
}

.price {
  min-width: 120px;
  text-align: center;
  font-weight: 700;
}

.remove-btn {
  border: 0;
  background: #efefef;
  color: #666;
  height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.cart-summary {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.cart-summary-box {
  width: 340px;
  border: 1px solid #dddddd;
  background: #fff;
  padding: 20px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #555;
}

.summary-row.total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
  color: #222;
  font-weight: 700;
}

.site-footer {
  background: #bdbdbd;
  margin-top: 0;
}

.site-footer-inner {
  min-height: 74px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.footer-logo {
  width: 26px;
}

@media (max-width: 900px) {
  .site-header-inner {
    width: 92%;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 14px;
  }

  .brand img {
    width: 120px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    height: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .top-nav a {
    height: 34px;
  }

  .back-btn {
    padding-inline: 14px;
    font-size: 13px;
  }
}
