/* Override Global Styles */

/* Override Header Styles*/

header {
    grid-column: 1 / 4;
    grid-row: 1 / 6;
    align-items: center;
    display: contents; /* allows h1 and p to be placed directly on body grid */
    height: clamp(100vh, 100vh, 100vh);
    width: clamp(38vw, 38vw, 38vw);
}

.header--logo, .header--logo img {
  grid-column: 1 / 4;
  grid-row: 1 / 4;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002;
  height: clamp(60vh, 60vh, 60vh);
    width: 100%;
}

header img {
  grid-column: 1 / 4;
  grid-row: 3 / 6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  height: 100%;
    width: 100%;
}

/* Set Products Styles*/
.products {
    grid-column: 3 / 9;
    grid-row: 1 / 6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* horizontal centering */
    align-content: center;    /* vertical centering of all rows */
    gap: 5vw;    /* responsive spacing */
    padding: 2rem;
    overflow-y: auto;         /* scroll if needed */
    background-color: transparent;
}

.product-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;             /* or whatever size you want for the card */
    height: 200px;
    padding: 0;               /* remove inner padding so image can fill */
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;         /* ensures image doesn’t spill outside border radius */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
          z-index: 1003;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;      /* fills card, crops edges */
    object-position: center; /* center crop area */
    background: var(--web-sand);
}

.product-card__image:hover {
    transform: scale(1.1);
}

/* Override Footer Styles */

/* Override Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 8 equal columns */
    grid-template-rows: repeat(4, 1fr);    /* 5 equal rows */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: none;
    z-index: 1000;
  }

.header--logo .header--logo img{
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    height: clamp(50vh, 50vh, 50vh);
    width: 100%;
    z-index: 1001;
}

header img{
    grid-column: 1 / 3;
    grid-row: 3 / 5;
    height: clamp(50vh, 50vh, 50vh);
    width: 100%;
    z-index: 1001;
}

.products, .product-card, .product-card__image{
    grid-column: 1 / 4;
    grid-row: 2 / 4;
    height: clamp(50vh, 50vh, 50vh);
    width: 100%;
}

img {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    object-fit: contain;
 }
