:root {
  --projename-header-grid-color: #a52929;
  --item-header-value-color: #d19e0dbf;
  --item-name-value-color: #d19e0dbf;
  --item-price-value-color: #22ac00;
  --footer-color: #a52929;
  --text-color: #555;
  --bg-color: #f9f9f9;
}

body {
  overflow-y: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-height: 100dvh;
  max-width: 100dvw;
  justify-content: space-between;
  font-size: 3dvh;
}

.projename-header-container {
  display: flex;
  min-height: 10dvh;
  max-height: 10dvh;
  max-width: 100dvw;
  margin: 0 1dvw;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.projename-header-wrapper {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.projename-header-grid {
  display: grid;
  background-color: var(--projename-header-grid-color);
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
  grid-template-columns: auto 1fr;
  color: white;
  border-radius: 8px;
  align-items: center;
  justify-items: stretch;
}

.projename-header-nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projename-header-nav-back-link {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.projename-header-nav-back-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.projename-header-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projename-header-title-value {
  color: white;
  font-weight: bold;
  text-align: center;
}

.projename-footer-container {
  display: flex;
  min-height: 10dvh;
  max-height: 10dvh;
  max-width: 100dvw;
  margin: 0 1dvw;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.projename-footer-wrapper {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.projename-footer-grid {
  display: grid;
  background-color: var(--footer-color);
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
  grid-template-columns: 1fr;
  color: white;
  border-radius: 8px;
  align-items: center;
  justify-items: stretch;
}

.projename-footer-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.item-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: row;
  background: white;
  box-shadow: 0 0.4dvh 0.8dvh rgba(0, 0, 0, 0.1);
  border-radius: 1dvh;
  overflow: hidden;
}

.item-media-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.item-media-value-wrapper {
  display: flex;
  flex-direction: row;
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.item-name-value-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.item-desc-value-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-price-value-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.item-header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.item-header-grid {
  display: grid;
  gap: 1dvh 1dvw;
  align-items: center;
  justify-items: stretch;
}

.item-header-value {
  font-size: 4dvh;
  font-weight: bold;
  color: #fff;
  text-align: center;
  background-color: var(--item-header-value-color);
  padding: 1dvh 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0.5dvh;
}

.item-list-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.item-list-grid {
  display: grid;
  gap: 3dvh 3dvw;
  justify-items: stretch;
  align-items: center;
  grid-template-columns: repeat(1, minmax(90dvw, 1fr));
  background-color: var(--bg-color);
  border: 1px solid #ddd;
  border-radius: 1dvh;
  padding: 1dvh;
  margin: 1dvh 0;
  box-shadow: 0 0.4dvh 0.8dvh rgba(0, 0, 0, 0.1);
  -ms-overflow-style: none;
  justify-content: center;
}

.item-details-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.item-media-grid {
  display: grid;
  gap: 1dvh 1dvw;
  justify-items: center;
  align-items: center;
}

.item-details-grid {
  display: grid;
  gap: 1dvh 1dvw;
  justify-items: stretch;
  flex: 1;
  align-content: space-between;
}

.item-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1dvh 1dvw;
}

.item-media-value {
  width: 70dvw;
  height: 35dvh;
  object-fit: cover;
}

.item-media-name-value {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 1dvh;
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item-price-value {
  font-size: 3dvh;
  font-weight: bold;
  color: white;
  background-color: var(--item-price-value-color);
  border: none;
  border-radius: 5px;
  padding: 1dvh;
  cursor: pointer;
}

.item-name-value {
  font-size: 4dvh;
  font-weight: bold;
  color: white;
  background-color: var(--item-name-value-color);
  border: none;
  border-radius: 5px;
  padding: 1dvh 2dvw;
  cursor: pointer;
}

.projename-container {
  margin: 1dvh 1dvw;
  max-height: 80dvh;
  max-width: 100dvw;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  align-items: center;
  justify-content: flex-start;
}

/*İndex*/
.categories-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.category-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: row;
  background: white;
  box-shadow: 0 0.4dvh 0.8dvh rgba(0, 0, 0, 0.1);
  border-radius: 1dvh;
  overflow: hidden;
}

.category-media-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.category-media-value-wrapper {
  display: flex;
  flex-direction: row;
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.categories-list-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.categories-list-grid {
  display: grid;
  gap: 3dvh 3dvw;
  justify-items: center;
  align-items: center;
  grid-template-columns: repeat(2, minmax(48%, 48%));
  background-color: var(--bg-color);
  border: 1px solid #ddd;
  border-radius: 1dvh;
  padding: 1dvh;
  margin: 1dvh 0;
  box-shadow: 0 0.4dvh 0.8dvh rgba(0, 0, 0, 0.1);
  -ms-overflow-style: none;
  justify-content: center;
  align-content: center;
}

.category-media-grid {
  display: grid;
  gap: 1dvh 1dvw;
  justify-items: center;
  align-items: center;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1dvh 1dvw;
}

.category-media-value {
  width: 70dvw;
  height: 30dvh;
  object-fit: cover;
}

.category-media-name-value {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 1dvh;
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}
