/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

[data-auth-target="emailForm"],
[data-auth-target="otpForm"] {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border: 1px solid black;
  z-index: 1000;
  display: none;
}

[data-auth-target="emailForm"][style*="display: block"],
[data-auth-target="otpForm"][style*="display: block"] {
  display: block;
}

/* Fonts */
@font-face {
  font-family: 'Inter-Variable';
  src: url("/assets/Inter-Variable-c6876acd.ttf") format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Delius-Regular';
  src: url("/assets/Delius-Regular-8d9c8bad.ttf") format('truetype');
  font-display: swap;
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 17px;
  line-height: 17px;
}

/* Body */
body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  font-family: 'Inter-Variable';
  background: #f8f9fb;
  color: #1b1b1b;
  transition: all 0.5s ease;
  padding-bottom: 6rem; /* space for floating footer */
}

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Delius-Regular';
  color: #0F2240;
}
h1 {
  font-size: 2.4rem;
  margin: 1.5rem;
}

/* Utility Rows & Columns */
.start-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}
.round-row {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}
.end-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.sparce-row{
  display:flex;
  flex-direction: row;
  justify-content: space-between;
}
.margin-bottom-3{
  margin-bottom: 4rem;
}
.product-name{
  font-family: 'Delius-Regular';
  color: #bf9b30;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  margin-top: 0.8rem;
}
.product-category{
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.product-description{
  width: 30ch;
}
.product-price span strong{
  font-size: 2rem;
}
.max-width{
  width: 100%;
}
.intro-content {
  margin: 3rem auto;
  padding: 1rem 0.5rem;
  max-width: 60ch;
  text-align: center;
  font-family: 'Delius-Regular';
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: #0F2240;
  animation: fadeUpGlass 1.4s ease forwards;

  /* transition for hover effects */
  transition: all 1s ease;
  border-radius: 2rem;
}

/* hover: gentle scale + light shift */
.intro-content:hover {

  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  background: linear-gradient(
    135deg,
    rgba(15, 15, 30, 0.0) 0%,
    rgba(40, 40, 60, 0.3) 100%
  );
  color: #0F2240;
}

@keyframes fadeUpGlass {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glassmorphic {
  background: rgba(242, 242, 242, 0.15); /* translucent white */
  backdrop-filter: blur(15px); /* actual blur effect */
  -webkit-backdrop-filter: blur(15px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.3); /* frosted border */
  border-radius: 1rem; /* rounded edges for softer glass */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* subtle depth */
  padding: 1rem;
}

/* Base Link */
.base-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  margin: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(120deg, rgba(0, 0, 0, 1) 10%, rgba(15, 34, 64, 0.92) 43%);
  border-radius: 0.4rem;
  width: auto;
  color: #3fd99e;
  font-weight: bold;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8);
}
.base-link:hover {
  background: linear-gradient(120deg, rgba(15, 34, 64, 1) 10%, rgba(0, 0, 0, 0.92) 43%);
  color: #4be6a8;
  box-shadow: none;
}
.base-link:active {
  transform: scale(0.97);
}
.base-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.4rem;
}
.base-image {
  width: 14rem;
  height: 10rem;
  margin: 0.4rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.base-icon:hover {
  opacity: 0.7;
}

/* Order Total */
.order-total {
  font-size: 20px;
  font-weight: bold;
  margin-top: 4px;
}

/* Page Container */
.page-container {
  width: 95%;
  max-width: 900px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Card Styling */
.card {
  background: #ffffff;
  border-radius: 0.6rem;
  padding: 1rem 1.4rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.16);
}
.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: #0F2240;
}
.card p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  line-height: 1.4rem;
}

/* Grouped Row */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sub Card (glassmorphic) */
.sub-card {
  flex: 1 1 calc(50% - 1rem);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);

  /* Darker glassmorphic background */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(15, 34, 64, 0.95) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #f8f8f8;
}
.sub-card p {
  margin: 0.35rem 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}
.sub-card strong {
  font-size: 0.8rem;
  color: #3fd99e;
  font-weight: 400;
}

/* Action Row */
.action-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ✅ Keep your button set exactly as-is */
.action-row a,
.action-row form input[type="submit"],
.action-row button {
  all: unset;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(120deg, rgba(0,0,0,1) 10%, rgba(15,34,64,0.92) 43%);
  border-radius: 0.4rem;
  color: #3fd99e;
  font-weight: bold;
  box-shadow: 0 6px 12px rgba(0,0,0,0.8);
  transition: all 0.2s ease;
}
.action-row a:hover,
.action-row form input[type="submit"]:hover,
.action-row button:hover {
  background: linear-gradient(120deg, rgba(15,34,64,1) 10%, rgba(0,0,0,0.92) 43%);
  color: #4be6a8;
  box-shadow: none;
}

/* Footer */
.footer {
  position: fixed;
  width: 100vw;
  bottom: 1vh;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

/* Flat Card (Dark glass) */
.card.flat-bg {
  border-radius: 1rem;
  padding: 0.5rem;
  margin: 1rem 0;

  background: linear-gradient(
    135deg,
    rgba(15, 15, 30, 0.35) 0%,
    rgba(40, 40, 60, 0.95) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);

  color: #f5f5f5;
}
.card.flat-bg h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}
.card.flat-bg p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: #e0e0e0;
}
.card.flat-bg strong {
  font-weight: 600;
  color: #3fd99e;
}
.card.flat-bg .action-row {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
}
