/* THE WHITE BOX - Pinned to Top Right */
#logoBox {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 99999;
    transition: transform 0.5s ease; /* For the Hover Effect! */
    cursor: pointer;
}

/* THE HOVER SPIN */
#logoBox:hover {
    transform: rotate(360deg) scale(1.1);
}

/* THE STRIPED HEXAGON BODY */
#hexBody {
    position: relative;
    width: 60px;
    height: 34.6px;
    background: repeating-linear-gradient(45deg, #ff8c00, #ff8c00 8px, #0000ff 8px, #0000ff 16px);
    margin: 17.3px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* TOP POINT */
#hexBody::before {
    content: "";
    position: absolute;
    bottom: 100%;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 17.3px solid #ff8c00;
}

/* BOTTOM POINT */
#hexBody::after {
    content: "";
    position: absolute;
    top: 100%;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 17.3px solid #0000ff;
}

/* THE NEON S */
#glowText {
    position: absolute;
    color: #ffffff;
    font-family: "Arial Black", sans-serif;
    font-size: 40px;
    text-shadow: 0 0 10px #ff8c00, 0 0 20px #ff8c00;
    z-index: 100000;
}

  body {  
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

/* ============================
   HEADER
   ============================ */

header {
  background: #FF7A33;
  color: white;
  padding: 20px;
  text-align: center;
}

/* ============================
   NAVIGATION
   ============================ */

.top-nav {
  display: flex;
  justify-content: center;
  background: #333;
  padding: 10px;
}

.top-nav a {
  color: white;
  margin: 0 15px;
  cursor: pointer;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: 0.2s;
}

.top-nav a:hover {
  background: #FF7A33;
}

/* ============================
   SEARCH BAR
   ============================ */

.search-container {
  display: flex;
  justify-content: center;
  padding: 15px;
  background: #f5f5f5;
}

#searchInput {
  width: 80%;
  max-width: 600px;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #FF7A33;
  border-radius: 6px;
}

/* ============================
   SECTIONS
   ============================ */

section {
  display: none;
  padding: 20px;
}

#homeSection {
  display: block;
  text-align: center;
}

#startShopping {
  background: #FF7A33;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
}

#startShopping:hover {
  background: #e86a2b;
}

/* ============================
   BRANDS PAGE
   ============================ */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.brand-card {
  background: white;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.brand-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.brand-card:hover {
  border-color: #FF7A33;
  transform: translateY(-3px);
}

/* ============================
   PRODUCT GRID
   ============================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: white;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.product-card:hover {
  border-color: #FF7A33;
  transform: translateY(-3px);
}

/* ============================
   PRODUCT PAGE
   ============================ */

#productPage {
  max-width: 900px;
  margin: auto;
}

.product-page-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.product-page-content img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

.pp-info h2 {
  margin-bottom: 10px;
}

#ppAddToCart {
  background: #FF7A33;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
}

#ppAddToCart:hover {
  background: #e86a2b;
}

#backToProducts {
  background: #333;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#backToProducts:hover {
  background: #555;
}

/* ============================
   CART SIDEBAR
   ============================ */

#cartSidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: white;
  border-left: 3px solid #FF7A33;
  padding: 20px;
  transition: 0.3s;
  overflow-y: auto;
  z-index: 999;
}

#cartSidebar.open {
  right: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cart-item button {
  background: #FF7A33;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item button:hover {
  background: #e86a2b;
}

.cart-summary {
  margin-top: 20px;
  font-size: 18px;
}

.total {
  font-weight: bold;
  margin-top: 10px;
}

#closeCart {
  background: #333;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}

#closeCart:hover {
  background: #555;
}
/* Surprise Styles */
.product-card { position: relative; overflow: hidden; }
.badge { position: absolute; top: 10px; right: 10px; background: red; color: white; padding: 5px; border-radius: 5px; font-weight: bold; }
.rating { color: #f1c40f; margin: 5px 0; }
.del-btn { background: none; border: none; cursor: pointer; color: red; }

/* Coupon Box */
.coupon-box { margin-top: 20px; padding: 10px; background: #eee; border-radius: 5px; }

/* Toast Animation */
#toast { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 5px; padding: 16px; position: fixed; z-index: 1000; left: 50%; bottom: 30px; transform: translateX(-50%); }
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }
/* Amazon-Style Overrides */
.product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; background: #eaeded; padding: 20px; gap: 10px !important; }
.product-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-color: #e67e22 !important; }
#cartSidebar { background: #fff !important; width: 300px !important; box-shadow: -2px 0 5px rgba(0,0,0,0.2) !important; }
