/* Store Products Grid Styles - Mobile First */

* {
  box-sizing: border-box;
}

.main-wrapper {
  padding-top: 80px;
  width: 100%;
  overflow-x: hidden;
}

@media screen and (min-width: 768px) {
  .main-wrapper {
    padding-top: 100px;
  }
}

.store-section {
  width: 100%;
  background-color: #000;
  min-height: 100vh;
}

.page-padding {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.store-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 0.75rem;
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Tablet */
@media screen and (min-width: 768px) {
  .store-products-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem 1.5rem;
    padding: 2rem;
    max-width: 1200px;
  }
}

/* Desktop */
@media screen and (min-width: 1024px) {
  .store-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
  }
}




.product-card {
  text-align: center;
  text-decoration: none;
  display: block;
  color: inherit;
}

.product-card:hover {
  text-decoration: none;
}

.product-image-wrapper {
  position: relative;
  margin-bottom: 1rem;
  background-color: #000;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.product-image-main {
  opacity: 1;
  z-index: 2;
}

.product-image-hover {
  opacity: 0;
  z-index: 1;
}

.product-card:hover .product-image-main {
  opacity: 0;
}

.product-card:hover .product-image-hover {
  opacity: 1;
}

.product-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: #000;
  padding: 4px 12px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #000;
  white-space: nowrap;
}

@media screen and (min-width: 768px) {
  .product-badge {
    font-size: 10px;
    padding: 5px 14px;
    bottom: 12px;
    letter-spacing: 0.08em;
    border: 2px solid #000;
  }
}

@media screen and (min-width: 1024px) {
  .product-badge {
    font-size: 11px;
    padding: 6px 16px;
    bottom: 15px;
    letter-spacing: 0.1em;
  }
}

.product-badge.sold-out {
  background-color: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

.product-badge.signed {
  background-color: #000;
  color: #fff;
  border-color: #fff;
}

.product-title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0.5rem 0 0.25rem 0;
  line-height: 1.2;
  padding: 0;
}

.product-price {
  font-family: 'Noto Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  padding: 0;
}

@media screen and (min-width: 768px) {
  .product-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin: 0.75rem 0 0.5rem 0;
  }
  
  .product-price {
    font-size: 13px;
  }
}

@media screen and (min-width: 1024px) {
  .product-title {
    font-size: 12px;
    letter-spacing: 0.1em;
    margin: 1rem 0 0.5rem 0;
  }
  
  .product-price {
    font-size: 15px;
  }
}

/* Product Detail Page */
.product-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 4rem;
  background-color: #000000;
}

.back-to-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0  auto 1rem 0;
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.75rem 1rem;
  background: transparent;
}

.back-to-store:hover {
  border-color: #fff;
}

.back-to-store:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media screen and (max-width: 767px) {
  .back-to-store {
    width: fit-content;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-main-image {
  width: 85%;
  max-width: 500px;
  aspect-ratio: 1;
  background-color: #000000;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000000;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.product-thumbnail {
  aspect-ratio: 1;
  background-color: #000000;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.product-thumbnail:hover {
  opacity: 1;
  border-color: #ffffff;
}

.product-thumbnail.active {
  opacity: 1;
  border-color: #ffffff;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  color: #fff;
}

.product-detail-title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

.product-detail-price {
  font-family: 'Noto Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 2rem 0;
}

.product-add-to-cart {
  width: 100%;
  padding: 20px 40px;
  background-color: #000;
  border: 2px solid #fff;
  color: #fff;
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 2rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.product-add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transition: left 0.3s ease;
  z-index: -1;
}

.product-add-to-cart:hover {
  color: #000;
}

.product-add-to-cart:hover::before {
  left: 0;
}

.product-add-to-cart:active {
  transform: scale(0.98);
}

.product-description {
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: #fff;
  margin: 0;
}

.product-description p {
  margin: 0 0 1rem 0;
}

/* Also Available Section */
.also-available-section {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.also-available-title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin: 0 0 3rem 0;
}

.also-available-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Responsive Styles for Product Detail Page */
@media only screen and (max-width: 1200px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .product-main-image {
    width: 100%;
    max-width: 600px;
  }
  
  .also-available-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 900px) {
  .product-detail-title {
    font-size: 22px;
  }
  
  .product-detail-price {
    font-size: 20px;
  }
  
  .product-add-to-cart {
    padding: 16px 32px;
    font-size: 14px;
  }
  
  .also-available-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media only screen and (max-width: 600px) {
  .product-detail-container {
    padding: 1.5rem 1rem;
  }
  
  .product-main-image {
    width: 100%;
  }
  
  .product-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  
  .product-detail-title {
    font-size: 18px;
  }
  
  .product-detail-price {
    font-size: 18px;
    margin-bottom: 1.5rem;
  }
  
  .product-add-to-cart {
    padding: 14px 24px;
    font-size: 13px;
  }
  
  .product-description {
    font-size: 12px;
  }
  
  .also-available-section {
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .also-available-title {
    font-size: 16px;
    margin-bottom: 2rem;
  }
  
  .also-available-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-title {
    font-size: 10px;
  }
  
  .product-price {
    font-size: 12px;
  }
}

/* Responsive Cart Sidebar */
@media only screen and (max-width: 600px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .cart-title {
    font-size: 24px;
  }
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background-color: #000;
  color: #fff;
  padding: 0;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 10001;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cart-close:hover {
  transform: rotate(90deg);
}

.cart-title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  padding: 30px;
  border-bottom: 1px solid #1a1a1a;
}

.cart-items {
  flex: 1;
  padding: 0 30px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid #1a1a1a;
  align-items: flex-start;
}

.cart-item:first-child {
  padding-top: 2rem;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background-color: #000;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

.cart-item-remove {
  font-family: 'Noto Sans', sans-serif;
  font-size: 11px;
  text-decoration: underline;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: #fff;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-item-qty {
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-price {
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

.cart-footer {
  padding: 30px;
  border-top: 1px solid #1a1a1a;
  background: #000;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 0 0 1.5rem 0;
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cart-checkout-button {
  width: 100%;
  padding: 18px 30px;
  background-color: #fff;
  border: none;
  color: #000;
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  border-radius: 0;
}

.cart-checkout-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.cart-continue-button {
  width: 100%;
  padding: 18px 30px;
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.cart-continue-button:hover {
  background-color: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .store-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem 1rem;
  }

  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .also-available-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
