@import url(https://db.onlinewebfonts.com/c/465b1cbe35b5ca0de556720c955abece?family=Abolition+W00+Regular);
@font-face {
  font-family: "Abolition";
  src: url("https://db.onlinewebfonts.com/t/465b1cbe35b5ca0de556720c955abece.eot");
  src: url("https://db.onlinewebfonts.com/t/465b1cbe35b5ca0de556720c955abece.eot?#iefix")
      format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/465b1cbe35b5ca0de556720c955abece.woff2")
      format("woff2"),
    url("https://db.onlinewebfonts.com/t/465b1cbe35b5ca0de556720c955abece.woff")
      format("woff"),
    url("https://db.onlinewebfonts.com/t/465b1cbe35b5ca0de556720c955abece.ttf")
      format("truetype"),
    url("https://db.onlinewebfonts.com/t/465b1cbe35b5ca0de556720c955abece.svg#Abolition W00 Regular")
      format("svg");
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5); /* Brighter subtle glow */
  }
  50% {
    box-shadow: 0 0 40px rgba(178, 34, 34, 1);   /* Much brighter and wider peak glow */
  }
  100% {
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5); /* Back to brighter subtle glow */
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background-color: #0a0b14;
  font-family: "Abolition", sans-serif;
  color: #fff; /* Added for better text readability on dark bg */
}

/* Solid modal content */

.login-modal-content {
  background-color: #0a0b14;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  z-index: 1055;
}

/* Glassy blurred backdrop */

.modal-backdrop.show {
  background-color: rgba(10, 11, 20, 1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.login-modal-content,
#signupModal .modal-content {
  font-family: sans-serif;
  color: #fff;
  animation: modalZoom 0.3s ease-out;
}

.login-modal-content .logo,
#signupModal .logo {
  font-family: "Abolition", sans-serif !important;
}

.login-modal-content input.form-control,
#signupModal input.form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.login-modal-content input.form-control::placeholder,
#signupModal input.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-modal-content .login-btn,
#signupModal .login-btn {
  background-color: #b22222;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
}

.login-modal-content .login-btn:hover,
#signupModal .login-btn:hover {
  background-color: #a01e1e;
}

.login-modal-content a,
#signupModal a {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.login-modal-content a:hover,
#signupModal a:hover {
  color: #ff6666;
  text-decoration: underline;
}

@keyframes modalZoom {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Product Page Layout */
.product-detail-container {
  max-width: 100%;
  margin-top: 10%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease-in-out;
  animation: glow 4s ease-in-out infinite;
  color: #000; /* Set text color for content inside */
}

@media (min-width: 768px) {
  .product-detail-container {
    flex-direction: row;
  }
}

.carousel-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -4.7%;
}

.carousel-main-img {
  position: relative;
  width: 900px !important;
  height: 700px;
  z-index: 0;
  overflow: hidden;
  border-radius: 20px
}

.carousel-main-img img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.thumbnail-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -14.7% !important;
  width: 100%;
  max-width: 800px;
  z-index: 1;
}

.thumbnail-img-row {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
  opacity: 0.5;
}

.thumbnail-img-row:hover,
.thumbnail-img-row.active {
  border-color: #b22222;
  opacity: 1;
}

.thumbnail-img {
  max-width: 80px;
  max-height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumbnail-img:hover {
  transform: scale(1.05);
}

.carousel-item {
  max-height: none;
}

/* Left Side (Image) */

.product-detail-image {
  flex: 1 1 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 700px;
}

.product-detail-image img {
    object-fit: cover;
}

/* Right Side (Info) */
.product-detail-info {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  height: 700px;
}

.product-detail-info h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.product-detail-info h3 {
  font-size: 4rem;
  color: #b22222;
  margin-bottom: 1rem;
}

.product-detail-info p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: sans-serif;
}


/* Buttons */

.product-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 4%;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}
.action-btn {
    border-radius: 8px;
    background-color: #000;
    color: #fff;
    border: none;
    outline: none;
    padding: 15px 25px;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
  background-color: #b22222;
}

/* Responsive */

@media (max-width: 768px) {
  .product-detail-container {
    flex-direction: column;
    text-align: center;
  }
  .product-detail-info h1 {
    font-size: 2rem;
  }
  .product-detail-info h3 {
    font-size: 1.5rem;
  }
  .product-actions {
    justify-content: center;
  }
  .carousel-main-img {
    width: 700px !important;
    height: 500px;
  }
}

/* --- Custom HUD Toast Notification Styling --- */
.toast-container {
    position: fixed;
    top: 100px !important;
    right: 20px;
    z-index: 1050;
}
.custom-toast {
    min-width: 350px;
    color: #fff;
    padding: 1px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    opacity: 0;
    animation: toast-in 0.5s ease forwards;
    margin-bottom: 1rem;
}

.toast-inner {
    background-color: #1e1e1e; /* Dark inner background */
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.toast-success .toast-inner {
    border-left: 4px solid #66bb6a;
}

.toast-error .toast-inner {
    border-left: 4px solid #ef5350;
}

.custom-toast .icon {
    font-size: 1.5rem;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quantity-selector {
    max-width: 200px;
    margin-top: 1rem;
}

/* --- Review Section --- */
.reviews-container {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #1a1a2e; /* Dark blue background */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-container h2, .reviews-container h4 {
    letter-spacing: 1px;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: sans-serif;
    color: #000;
}

.review-summary span {
    font-size: 1.1rem;
}

.card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
}

.review-form .form-control {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.review-form .form-control:focus {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-color: #b22222;
    box-shadow: 0 0 0 0.25rem rgba(178, 34, 34, 0.5);
}

/* Star Rating System */
.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1.5rem;
    font-family: Times;
    line-height: 1;
}
.stars::before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ffc107 var(--percent), #c2c2c2 var(--percent));
    -webkit-text-fill-color: transparent;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end; /* Align stars to the left */
}
.star-rating input { display: none; }
.star-rating label {
    font-size: 2rem;
    color: #444;
    cursor: pointer;
    transition: color 0.2s ease;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

/* Review List */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.review-header strong {
    font-family: sans-serif;
    font-size: 1.2rem;
}

.review-comment {
    font-family: sans-serif;
    color: #ddd;
    margin-top: 0.5rem;
}

/* Responsive Layout for No-Image State */
@media (min-width: 768px) {
  /* This targets the container only on desktop when the 'no-image-layout' class is present */
  .product-detail-container.no-image-layout {
    max-width: 800px; /* Make the container narrower so it doesn't look so wide */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Center all the text inside */
  }

  .product-detail-container.no-image-layout .product-detail-info {
    align-items: center; /* Center the content vertically */
    padding: 2rem; /* Add a bit more space */
  }

  .product-detail-container.no-image-layout .product-actions,
  .product-detail-container.no-image-layout .review-summary {
    justify-content: center; /* Center the buttons and review stars */
  }
}