/* ---------------- Reset & Base ---------------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

a {
    color: #f0f0f0;
}

select {
  height: 2rem;
  font-size: 1rem;
}

/* ---------------- Navigation Bar ---------------- */
.navigationBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    min-height: 60px;
    z-index: 1000;
}

.navigationBar a {
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1.2rem;
    padding: 1rem;
    transition: all 0.3s;
}

.navigationBar a:hover {
    color: #ff6b00;
}

#navigationBarSelected {
    background-color: #333;
    color: #f0f0f0;
}

.orderConfirmation a {
  color: #f0f0f0; 
}

.cartIcon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%); /* Vertically center the icon */
    font-size: 1.5rem;
    color: #f0f0f0;
    cursor: pointer;
}

.cartIcon:hover {
    color: #ff6b00;
}

/* ---------------- Main Content ---------------- */
main {
    flex: 1;
    padding: 6rem 2rem 2rem;
}

/* ---------------- Section Styling ---------------- */
section {
    margin-bottom: 2rem;
}

/* ---------------- Product Grid ---------------- */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align products to the left */
    gap: 10px; /* Space between grid items */
    padding: 10px;
}

.product-item {
    width: 100%;
    max-width: 250px; /* Limit the max-width */
    flex: 1 1 200px; /* Allow flex items to shrink/grow based on the available space */
    text-align: center;
    margin-bottom: 20px;
    box-sizing: border-box; /* Prevent padding from affecting the width */
}

.product-item img {
    width: 100%; /* Ensure the image fills the container */
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.product-info h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #f0f0f0;
}

.product-info p {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: bold;
}

/* ---------------- Product Page ---------------- */
.productPage {
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.productPage img {
    flex: 0 0 400px;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    object-fit: cover;
}

.productDetails {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.productDetails h2 {
    font-size: 2rem;
    margin: 0;
    color: #f0f0f0;
}

.productDetails .description {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

.productDetails p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0f0f0;
}

/* ---------------- Modern Add to Cart Button ---------------- */
.productDetails button {
    background-color: #ff6b00;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.productDetails button:hover {
    background-color: #ff8c33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ---------------- Homepage Logo & Text ---------------- */
.homepageLogoAndText {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
}

.logo {
    height: clamp(12rem, 40vw, 20rem);
    width: clamp(12rem, 40vw, 20rem);
    border-radius: 1rem;
}

.welcomeHeading {
    font-size: clamp(3rem, 10vw, 5rem);
    margin: 0;
}

.welcomeSlogan {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 0.5rem 0 0 0;
    font-weight: 400;
    color: #ccc;
}

/* ---------------- Collections & Hot Products ---------------- */
.hotProductsImage,
.collectionImage {
    border-radius: 1rem;
    margin: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

/* Collections & Hot Products */
.hotProductsImage,
.collectionImage {
    border-radius: 1rem;
    margin: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    max-width: 250px;      /* Limit the size */
    width: 100%;           /* Responsive scaling */
    height: auto;          /* Maintain aspect ratio */
}

.hotProductsImage:hover,
.collectionImage:hover {
    transform: scale(1.05);
}

/* ---------------- Footer ---------------- */
footer {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    background-color: #222;
    color: #ccc;
    flex-shrink: 0;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: #ff6b00;
}

/* ---------------- Policies ---------------- */
.policiesList {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.policiesList li {
    background-color: #222222;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.policiesList li:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.policiesList a {
    text-decoration: none;
    color: #ff6b00;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.policiesList a:hover {
    color: #ff8c33;
}

/* ---------------- Fix for Product Page Navbar ---------------- */
body.product-page .navigationBar {
    padding: 1rem 1.5rem;  /* Add padding to make the navbar larger on product pages */
    font-size: 1.3rem;     /* Increase font size */
}

body.product-page .navigationBar a {
    font-size: 1.3rem;  /* Ensure the navbar links are larger */
}

/* ---------------- Responsive Layout ---------------- */
@media (max-width: 992px) {
    .homepageLogoAndText {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hotProductsImage,
    .collectionImage {
        width: 80%;
        margin: 1rem auto;
    }
}

@media (max-width: 768px) {
    .navigationBar a {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .productPage {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 20px;
    }

    .productPage img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }

    .productDetails {
        width: 100%;
        text-align: center;
    }

    .welcomeHeading {
        font-size: 2rem;
    }

    .welcomeSlogan {
        font-size: 1rem;
    }

    .logo {
        height: 10rem;
        width: 10rem;
    }

    /* Adjust Product Grid */
    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-item {
        max-width: 80%;
    }
}

/* ---------------- Cart Page Layout ---------------- */
.cart-container {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  gap: 2rem;
}

.cart-table-section {
  flex: 2;
  background-color: #222;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cart-table-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #f0f0f0;
}

.cart-table-section table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table-section th,
.cart-table-section td {
  padding: 1rem;
  text-align: left;
}

.cart-table-section th {
  background-color: #333;
  color: #f0f0f0;
  font-size: 1.2rem;
}

.cart-table-section td {
  background-color: #444;
  color: #f0f0f0;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
}

.cart-table-section td input[type="number"] {
  width: 60px;
  padding: 5px;
  text-align: center;
  background-color: #333;
  color: #f0f0f0;
  border: 1px solid #555;
  border-radius: 5px;
}

.cart-table-section td .remove-btn {
  background-color: #ff6b00;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cart-table-section td .remove-btn:hover {
  background-color: #ff8c33;
}

.cart-table-section .empty-cart {
  text-align: center;
  padding: 2rem;
  display: none;
}

.cart-table-section .empty-cart img {
  max-width: 150px;
  margin-bottom: 1rem;
}

.cart-table-section .empty-cart h2 {
  font-size: 2rem;
  color: #f0f0f0;
}

.cart-table-section .empty-cart p {
  color: #ccc;
  margin-bottom: 1rem;
}

/* ---------------- Cart Summary ---------------- */
.summary {
  flex: 1;
  background-color: #222;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.summary h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f0f0f0;
}

.summary p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.summary .free-shipping {
  background-color: #333;
  padding: 10px;
  border-radius: 5px;
  color: #ff6b00;
  margin-bottom: 1.5rem;
}

.summary .checkout-btn {
  background-color: #ff6b00;
  color: #fff;
  padding: 12px 24px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.summary .checkout-btn:hover {
  background-color: #ff8c33;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.continue-shopping-btn {
  text-align: center;
  margin-bottom: 1.5rem;
}

.continue-shopping-btn .continue-btn {
  background-color: #444;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.continue-shopping-btn .continue-btn:hover {
  background-color: #ff6b00;
}

/* ---------------- Cart Table Product Info ---------------- */
.cart-table-section td .product-info {
  display: flex;
  align-items: center; /* Vertically centers the text and image */
  gap: 1rem; /* Adds space between the image and the text */
}

.cart-table-section td .product-info img {
  width: 15vw;  /* Adjust to your desired image size */
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.cart-table-section td .product-info span {
  font-size: 1.1rem; /* Adjust font size for the product name */
  color: #f0f0f0;
}
