/* ----- RESET ----- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.search input::-webkit-search-cancel-button { display: none }
.search input::-webkit-search-decoration { display: none }
.search input::-ms-clear { display: none }

.search input::-webkit-search-results-button,
.search input::-webkit-search-results-decoration {
  display: none;
}

/* ----- HEADER AVATAR ----- */

.avatar {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  color: var(--black);
  text-decoration: none;
  line-height: 1;
  font-style: italic;
}

/* ----- HEADER ----- */

header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-bottom: 0.12rem solid var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: inset 0 -0.25rem 0 rgba(0, 0, 0, 0.05);
}

header .ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  list-style-type: none;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

/* ----- SEARCH INPUT ----- */

.search {
  display: flex;
  align-items: center;
  border: 0.12rem solid var(--black);
  border-radius: 1.5rem;
  padding: 0.6rem 0.8rem;
  width: 100%;
  box-shadow: inset 0 -0.25rem 0 rgba(0, 0, 0, 0.05);
}

.search input {
  border: none;
  background: transparent;
  font-family: monospace;
  font-size: inherit;
  width: 100%;
  outline: none;
  color: var(--black);
  font-weight: 500;
  font-size: 1.15rem;
  margin-left: 0.4rem;
  outline: none;
}

/* ----- CART BUTTON ----- */

#openCart {
  background: var(--white);
  color: var(--black);
  box-shadow: inset 0 -0.25rem 0 rgba(0, 0, 0, 0.05);
  border: 0.12rem solid var(--black);
  font-family: var(--font-manrope);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.2px;
  border-radius: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1;
  position: relative;
}

#count {
  font-weight: 700;
  margin-top: 0.135rem;
}

/* ----- BODY ----- */

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-manrope);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- MAIN ----- */

main {
  padding: 0.5rem;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  margin-top: 1rem;
}

/* ----- ROOT ----- */

:root {
  --font-manrope: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --black: #000;
  --white: #FAFAFA;
}

/* ----- PRODUCTS ----- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
  padding: 0 0.6rem;
}

.product-card {
  background: var(--white);
  border: 0.12rem solid black;
  border-radius: 1rem;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 1.2rem;
box-shadow: inset 0 -0.25rem 0 rgba(0, 0, 0, 0.05);
}

.product-image {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 0.12rem solid var(--black);
  font-style: italic;
}

.product-info {
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
}

.product-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--black);
  letter-spacing: -0.2px;
  font-style: italic;
}

.product-price {
  font-family: var(--font-manrope);
  font-weight: 600;
  line-height: 1.4;
  padding-left: 0.3rem;
  font-size: 1rem;
}

/* ----- PRODUCTS ----- */






.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border: 0.12rem solid black;
  border-radius: 1rem;
  width: 100%;
  max-width: 510px;
  max-height: 87vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  border: 0.12rem solid black;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  color: black;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-manrope);
  padding: 0;
  font-weight: 300;
}

.product-detail {
  display: flex;
  flex-direction: column;
}

.detail-image {
  height: 220px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: 3px;
  border: 0.12rem solid black;
  font-style: italic;
}

.detail-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.3px;
  color: var(--black);
  font-style: italic;
margin-top: 0.5rem;
  line-height: 1.2;
}

.detail-price {
  font-family: var(--font-manrope);
  font-size: 18px;
  font-weight: 600;
  padding-left: 0.2rem;

  margin-bottom: 0.5rem;
}


select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0.09rem solid #808080;
  padding: 10px 40px 10px 14px;
  background: var(--white);
  font-family: var(--font-manrope);
  font-size: 14px;
  width: 100%;
  border-radius: 0.4rem;
  color: var(--black);
  outline: none;
  font-weight: 400;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23495057' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  margin-bottom: 1rem;
}

select:focus {
  border-color: var(--black);
  outline: 2px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}


.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 0.06rem solid black;
  border-radius: 0.4rem;
  width: fit-content;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.quantity-btn {
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 16px;
  font-family: var(--font-manrope);
  line-height: 1;
  border-right: 0.06rem solid black;
}

.quantity-btn:last-child {
  border-right: none;
  border-left: 0.06rem solid black;
}

#qtyDisplay {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  padding: 0 8px;
  line-height: 36px;
}


.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-family: var(--font-manrope);
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  border-radius: 0.4rem;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1;
  text-transform: uppercase;
}



input[type="text"],
input[type="email"] {
  border: 0.06rem solid #808080;
  padding: 10px 14px;
  background: var(--white);
  font-family: var(--font-manrope);
  font-size: 14px;
  width: 100%;
  border-radius: 1.2rem;
  color: var(--black);
  outline: none;
  font-weight: 400;
}




input:focus {
  border-color: var(--black);
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-group label {
  font-family: var(--font-manrope);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}






.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 0.5rem;
  margin: 0.5rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border: 0.09rem solid black;
  border-radius: 0.2rem;
  gap: 0.2rem;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.cart-item-details strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
  font-style: italic;
}

.cart-item-details span {
  font-family: var(--font-manrope);
  font-size: 12px;
  font-weight: 400;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-actions .quantity-btn {
  width: 30px;
  height: 30px;
  font-size: 14px;
  border: 0.09rem solid black;
  border-radius: 50%;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-manrope);
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: black
}

.total-section {
  border-top: 0.09rem dashed black;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-manrope);
  color: var(--black);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.total-row.grand-total {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  border-top: 0.09rem dashed black;
  padding-top: 0.5rem;
  margin-top: 4px;
  margin-bottom: 0.5rem;
}




.delivery-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.8rem 0;
}

.form-row {
  display: flex;
  gap: 0.8rem;
}

.form-row .option-group {
  flex: 1;
}

.modal-subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--mantine-gray-7);
  font-size: 14px;
  margin-top: -4px;
  font-style: italic;
}

.empty-state {
  text-align: center;
  color: var(--mantine-gray-6);
  padding: var(--spacing-xl);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 15px;
  font-style: italic;
}

.text-muted {
  font-family: var(--font-manrope);
  font-size: 11px;
  margin-top: var(--spacing-sm);
  color: var(--mantine-gray-6);
  text-align: center;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
}
