/* ==================================================================
   Color Palette & General Styles
================================================================== */
:root {
  --color-gold: #b7890f;
  --color-purple: #464578;
  --color-light-grey: #e9ecef;
  --color-white: #ffffff;
  --color-dark-text: #333333;
}

body {
  font-family: Roboto, sans-serif;
}

a {
  color: var(--color-purple);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: #2f2e56;
}

.btn-primary {
  background-color: var(--color-purple);
  border-color: var(--color-purple);
}
.btn-primary:hover {
  background-color: #2f2e56;
  border-color: #2f2e56;
}

/* ==================================================================
   Header - Replicated from Image
================================================================== */

/* --- Utility Nav (Gold Bar) --- */
.utility-nav {
  background-color: var(--color-gold);
  padding: 2px 0;
}
.utility-nav .nav-link {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
}
.utility-nav .nav-link:hover {
  color: var(--color-white);
  opacity: 0.8;
}
.utility-nav .nav-link i {
  font-size: 12px;
  margin-right: 4px;
}

/* --- Top Bar (White Bar) --- */
.top-bar {
  padding: 20px 0;
}

.logo-container .logo-img {
  max-width: 200px;
}
.logo-container .tagline {
  font-size: 12px;
  color: var(--color-purple);
  margin-top: 5px;
  margin-bottom: 0;
  padding-left: 2px;
}

.search-area .search-field {
  height: 44px;
  border-radius: 50px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding-left: 20px;
}
.search-area .search-field:focus {
  background-color: white;
  border-color: var(--color-purple);
  box-shadow: none;
}
.search-area .input-group {
  position: relative;
}
.search-area .search-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: transparent;
  border: none;
  color: var(--color-dark-text);
  font-size: 18px;
}

.location-dropdown {
  margin-right: 20px;
}
.location-dropdown a.dropdown-toggle {
  color: var(--color-dark-text);
  text-decoration: none;
  text-align: left;
  line-height: 1.2;
}
.location-dropdown span {
  font-size: 12px;
  color: #777;
}
.location-dropdown strong {
  font-size: 14px;
}

/* --- Shopping Cart Block --- */
.shopping-cart-dropdown .cart-block {
  background-color: var(--color-light-grey);
  padding: 8px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-dark-text);
  text-decoration: none;
  cursor: pointer;
}
.shopping-cart-dropdown .cart-block .price {
  font-weight: bold;
  font-size: 14px;
}
.shopping-cart-dropdown .cart-block .cart-icon {
  font-size: 22px;
}

/* Cart Dropdown Menu Panel */
.cart-dropdown-menu {
  width: 320px;
  border-radius: 0;
  padding: 0;
  border: 1px solid #ddd;
}
.cart-dropdown-menu .cart-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 15px;
  white-space: normal;
}
.cart-dropdown-menu .cart-item img {
  width: 100%;
}
.cart-dropdown-menu .cart-item .name a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark-text);
}
.cart-dropdown-menu .cart-item .item-price {
  font-size: 13px;
  color: #777;
}
.cart-dropdown-menu .cart-summary .total-price-value {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-purple);
}

/* --- Main Navigation (Purple Bar) --- */
.main-navbar {
  background: var(--color-purple);
  padding: 0;
}
/* Find this existing rule in assets/css/main.css */
.main-navbar .navbar-nav {
  width: 100%;
  justify-content: center; /* <-- REMOVE THIS LINE */
}
.main-navbar .nav-link {
  color: var(--color-white);
  padding: 12px 20px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus,
.main-navbar .dropdown-menu .dropdown-item:hover {
  background-color: #2f2e56;
  color: var(--color-white);
}
.main-navbar .dropdown-menu {
  border-radius: 0;
  border: none;
  margin-top: 0;
  background-color: var(--color-purple);
}
.main-navbar .dropdown-item {
  font-size: 14px;
  padding: 10px 20px;
  color: var(--color-white);
  text-transform: none;
  font-weight: 400;
}
.main-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  margin: 8px 0;
}
.main-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================================================================
   Homepage Content & Footer (Styles from previous answer)
================================================================== */

/* --- Hero Slider --- */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  box-sizing: border-box;
}
/* ==================================================================
   Full-Width Hero Slider Image Control
================================================================== */

.slide img {
  width: 100%;
  /* Set a max-height to avoid giant images on wide screens */
  max-height: 550px;
  /* This ensures the image covers the area without distortion */
  object-fit: cover;
  object-position: center; /* You can change this to 'top', 'bottom', etc. */
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.controls span {
  cursor: pointer;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 20px;
}

/* ==================================================================
   Product Slider Sections (Replicated from Image)
================================================================== */

/* --- Section Header --- */
.product-tabs-slider {
  position: relative;
}
.product-tabs-slider .new-product-title {
  font-size: 24px;
  color: var(--color-purple);
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  margin-bottom: 25px;
}
/* This is for the Owl Carousel navigation arrows */
.product-tabs-slider .owl-nav {
  position: absolute;
  top: -55px; /* Adjust this value to align vertically with the title */
  right: 0;
}
.product-tabs-slider .owl-nav button.owl-prev,
.product-tabs-slider .owl-nav button.owl-next {
  width: 30px;
  height: 30px;
  background-color: #f5f5f5 !important;
  border-radius: 4px !important;
  color: #888 !important;
  font-size: 16px !important;
  line-height: 1;
  margin: 0 4px;
}
.product-tabs-slider .owl-nav button.owl-prev:hover,
.product-tabs-slider .owl-nav button.owl-next:hover {
  background-color: #e0e0e0 !important;
  color: var(--color-dark-text) !important;
}

/* --- Product Card Styling --- */
.product-tabs-slider .item {
  padding: 5px; /* Adds a little space for the shadow */
}

.product {
  background: linear-gradient(0deg, #d9d9da 0%, #ffffff 55%, #efeded 100%);
  border: none;
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%; /* Ensures all cards have same height in a row */
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product .category-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.product .category-brand img {
  max-height: 25px;
  max-width: 100px;
}
.product .wishlist-button {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10; /* Make sure it's on top of other elements */
  font-size: 1.2rem;
  color: #333; /* Or your preferred color */
}

.product .wishlist-button:hover {
  color: var(--primary-color); /* Use your theme's primary color */
}

/* Make sure the main link is styled correctly and doesn't interfere */
.product .product-main-link {
  text-decoration: none;
  color: inherit;
}

.product .product-image {
  height: 160px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.product .product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Make product info container grow to push buttons to the bottom */
.product .product-info {
  flex-grow: 1;
}
.product .name {
  font-size: 13px;
  height: 60px; /* Fixed height for 2-3 lines of text */
  line-height: 1.4;
  overflow: hidden;
  margin-bottom: 15px;
  text-align: center;
}
.product .name a {
  color: var(--color-dark-text);
  font-weight: 500;
}
.product .product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-dark-text);
  margin-bottom: 20px;
}

.product .action {
  display: flex;
  justify-content: center;
  gap: 10px;
}
/* Updated rule */
.product .action .btn {
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  background-color: var(--color-purple);
  border-color: var(--color-purple);
}
.product .action .btn.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

/* ==================================================================
   Advanced Footer (Replicated from Image)
================================================================== */
.site-footer {
  background-color: var(--color-purple);
  color: #c9c8e0; /* A lighter shade of the purple for text */
  font-size: 15px;
  position: relative;
}

.site-footer .footer-top {
  padding: 100px 0 0px 0;
}

.site-footer .footer-logo-wrap {
  background-color: #e9ecef;
  padding: 20px;
  position: absolute;
  top: 30px; /* Pulls the logo box up */
  left: 120px; /* Aligns with the container padding */
  border-radius: 15px;
  max-width: 250px;
}
.site-footer .footer-logo-wrap img {
  max-width: 100%;
}

/* Adjust contact column padding to account for the absolute-positioned logo */
.site-footer .footer-col-contact {
  padding-top: 40px;
}

.site-footer .contact-details {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}
.site-footer .contact-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.site-footer .contact-details i {
  font-size: 18px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevents icon from shrinking */
  margin-right: 15px;
}
.site-footer .contact-details .contact-text {
  line-height: 1.6;
}
.site-footer .contact-details .contact-text a {
  color: #c9c8e0;
  text-decoration: none;
}
.site-footer .contact-details .contact-text a:hover {
  color: #fff;
}

.site-footer .footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
}

.site-footer .footer-links {
  list-style: none;
  padding-left: 0;
}
.site-footer .footer-links li {
  margin-bottom: 15px;
}
.site-footer .footer-links a {
  color: #c9c8e0;
  text-decoration: none;
}
.site-footer .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .newsletter-form .form-control {
  background-color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  height: 25px;
  font-size: 12px;
}
.site-footer .newsletter-form .form-control:focus {
  box-shadow: none;
}
.site-footer .newsletter-form .btn-subscribe {
  background-color: #3a396a; /* Darker purple */
  color: #fff;
  border-radius: 50px;
  padding: 0 5px;
  font-weight: 500;
  margin-left: -40px; /* Overlaps the input field */
  z-index: 2;
  font-size: 12px;
}

.site-footer .social-and-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}
.site-footer .social-icons .social-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 18px;
  transition: all 0.3s ease;
}
.site-footer .social-icons .social-icon-circle:hover {
  background-color: #fff;
  color: var(--color-purple);
}

.site-footer .btn-catalogs {
  background-color: #3a396a; /* Darker purple */
  color: #fff;
  border-radius: 50px;
  padding: 10px 15px;
  font-weight: 500;
}
.site-footer .btn-catalogs:hover {
  background-color: #2f2e56;
}

.footer-bottom {
  background-color: var(--color-white);
  color: #555;
  padding: 15px 0;
  font-size: 14px;
}
.footer-bottom p {
  margin-bottom: 0;
}
.payment-icons img {
  height: 24px;
  margin: 0 5px;
  opacity: 0.8;
}

/* Responsive adjustments for footer */
@media (max-width: 991.98px) {
  .site-footer .footer-logo-wrap {
    position: static; /* Revert to normal flow on smaller screens */
    margin-bottom: 30px;
    top: 0;
  }
  .site-footer .footer-top {
    padding: 40px 0;
  }
  .site-footer .footer-col-contact {
    padding-top: 0;
  }
  .site-footer .footer-title {
    margin-top: 20px;
  }
}
/* ==================================================================
   Homepage Promo & Floating Icons
================================================================== */

/* Promo Section with background image */
.promo-section {
  position: relative;
  padding: 60px 0;
  color: #333;
  text-align: center;
}
.promo-section .promo-background {
  background-image: url("../images/d1.jpg");
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: -1;
}
.promo-section .promo-content {
  position: relative;
  z-index: 1;
}
.promo-section h4 {
  font-weight: 600;
}
.promo-section .promo-box {
  background-color: var(--color-purple);
  padding: 30px;
  border-radius: 20px;
}
.promo-section .promo-box h3 {
  font-weight: 600;
}

/* WhatsApp Floating Icon */
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  transition: transform 0.3s ease;
}
.whatsapp-icon img {
  width: 100%;
}
.whatsapp-icon:hover {
  transform: scale(1.1);
}

/* ==================================================================
   Full-Width Banners
================================================================== */

.full-width-banner img {
  width: 100%;
  height: auto; /* Let the height be determined by the image's aspect ratio */
  display: block; /* Removes any extra space below the image */
}

/* Ensure the promo section with a background image is full-width */
.promo-section {
  width: 100%;
  position: relative;
  padding: 60px 0;
  color: #333;
  text-align: center;
}

/* We still use the container inside the promo-section to keep the text centered */
.promo-section .promo-content.container {
  position: relative;
  z-index: 1;
}
/* ==================================================================
   Category Page Styles
================================================================== */

/* --- Category Header Banner --- */
.category-header {
  background-color: #f8f9fa;
  padding: 30px 0;
  border-bottom: 1px solid #e9ecef;
}
.category-header .breadcrumb {
  margin-bottom: 10px;
  font-size: 14px;
}
.category-header .breadcrumb-item a {
  color: var(--color-purple);
  text-decoration: none;
}
.category-header .breadcrumb-item.active {
  color: #6c757d;
}
.category-header .category-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark-text);
  margin: 0;
}

/* --- Subcategory Filter Bar --- */
.subcategory-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}
.subcategory-bar .filter-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 15px 0 0;
  color: var(--color-dark-text);
}
.subcategory-bar .subcategory-link {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f8f9fa;
  color: #555;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
.subcategory-bar .subcategory-link:hover {
  background-color: var(--color-purple);
  color: #fff;
}

/* --- Product Grid & Cards (Re-using Homepage Styles) --- */
.product-grid-container .product {
  background-color: #f5f5f5;
  border: none;
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-grid-container .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.product-grid-container .product .action .btn {
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  background-color: var(--color-purple);
  border-color: var(--color-purple);
}

/* --- "No Products Found" Message --- */
.no-product-found {
  padding: 50px;
  background-color: #f8f9fa;
  border: 1px dashed #ddd;
  border-radius: 8px;
}
.no-product-found h3 {
  font-size: 24px;
  color: var(--color-dark-text);
}
.no-product-found p {
  color: #6c757d;
}
/* ==================================================================
   Professional Product Details Page
================================================================== */
.breadcrumb-item a {
  color: var(--color-purple);
  text-decoration: none;
}
.breadcrumb-item.active {
  color: #6c757d;
}

/* --- Professional Gallery --- */
.professional-gallery {
  display: flex;
  gap: 1rem;
}
.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gallery-thumbnails .thumbnail-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.gallery-thumbnails .thumbnail-img:hover,
.gallery-thumbnails .thumbnail-img.active {
  border-color: var(--color-purple);
}
.gallery-main-image {
  flex: 1;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden; /* For zoom effect */
}
.gallery-main-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.gallery-main-image img:hover {
  transform: scale(1.1);
}

/* --- Professional Product Info --- */
.professional-product-info .product-category-link a {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
}
.professional-product-info .product-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark-text);
  margin-top: 0.5rem;
}
.professional-product-info .product-brand a {
  color: var(--color-purple);
}
.professional-product-info .product-price-container .price {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-purple);
}
.action-box {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.product-meta-info {
  font-size: 14px;
  color: #6c757d;
}
.product-meta-info .add-to-wishlist {
  color: var(--color-purple);
  text-decoration: none;
  font-weight: 500;
}
.product-meta-info .add-to-wishlist:hover {
  text-decoration: underline;
}

/* --- Professional Tabs & Reviews --- */
.professional-tabs-section .nav-tabs {
  border-bottom: 2px solid #dee2e6;
}
.professional-tabs-section .nav-tabs .nav-link {
  color: #6c757d;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 0;
  margin-right: 2rem;
}
.professional-tabs-section .nav-tabs .nav-link.active {
  color: var(--color-purple);
  border-color: var(--color-purple);
  background-color: transparent;
}
.professional-tabs-section .tab-content {
  padding-top: 1.5rem;
}

.review-list-wrapper {
  border-right: 1px solid #e9ecef;
}
.review-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e9ecef;
}
.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.author-name {
  font-weight: 600;
  color: var(--color-dark-text);
}
.review-date {
  font-size: 13px;
  color: #6c757d;
}
.star-ratings {
  color: #ffc107;
}
.review-text {
  color: #555;
  margin-top: 0.5rem;
}
.review-form-wrapper {
  padding-left: 1.5rem;
}
/* Responsive adjustment for review section */
@media (max-width: 991.98px) {
  .review-list-wrapper {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  .review-form-wrapper {
    padding-left: 0;
  }
}

/* ==================================================================
   Professional My Cart Page Styles
================================================================== */
.my-cart-page {
  background-color: #f8f9fa; /* Light background for the whole section */
}

/* --- Cart Item Card --- */
.cart-item.card {
  border: 1px solid #e9ecef;
  transition: box-shadow 0.2s ease;
}
.cart-item.card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}
.cart-item-img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
  padding: 10px;
}
.cart-item .card-title a {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark-text);
  text-decoration: none;
}
.cart-item .card-title a:hover {
  color: var(--color-purple);
}
.btn-remove {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 16px;
  padding: 5px;
}
.btn-remove:hover {
  color: #dc3545;
}

/* --- Quantity Input --- */
.quantity-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 25px;
  overflow: hidden;
}
.btn-qty {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 18px;
  width: 40px;
  height: 40px;
  line-height: 1;
  color: #555;
}
.qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  background: none;
  font-weight: 600;
  padding: 0;
  -moz-appearance: textfield; /* For Firefox */
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.subtotal-price {
  font-size: 18px;
  font-weight: 600;
}

/* --- Order Summary Box --- */
.order-summary-box.card {
  border: 1px solid #e9ecef;
  position: sticky; /* Keeps it in view on scroll */
  top: 20px;
}
.order-summary-box .card-title {
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

/* Responsive adjustments for cart page */
@media (max-width: 991.98px) {
  .order-summary-box.card {
    position: static; /* Disable sticky on smaller screens */
    margin-top: 2rem;
  }
}
@media (max-width: 767.98px) {
  .cart-item .card-body {
    padding: 1rem;
  }
  .cart-item-img {
    max-width: 80px;
  }
  .cart-item .card-title a {
    font-size: 16px;
  }
}
/* ==================================================================
   Professional Checkout Page Styles
================================================================== */
.checkout-form {
  background-color: #f8f9fa; /* Light grey background for the page */
}

.checkout-steps .checkout-step.card {
  margin-bottom: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}
.checkout-steps .card-header {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
}
.checkout-steps .card-header h4 {
  font-size: 20px;
  font-weight: 600;
}
.step-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background-color: var(--color-purple);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 16px;
}

/* --- Shipping Method --- */
.shipping-method-option {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
}
.shipping-method-option:has(input:checked) {
  background-color: #f0f0ff;
  border-color: var(--color-purple);
}
.shipping-method-option .form-check-input {
  margin-top: 0.3rem;
  margin-right: 1rem;
}

/* --- Payment Tabs --- */
.payment-tabs .nav-pills .nav-link {
  background-color: #e9ecef;
  color: #555;
  font-weight: 500;
  margin-right: 0.5rem;
  border-radius: 8px;
}
.payment-tabs .nav-pills .nav-link.active {
  background-color: var(--color-purple);
  color: #fff;
}
.payment-tabs .tab-content {
  padding-top: 1.5rem;
}

/* --- Order Summary Box (Sidebar) --- */
.order-summary-box-checkout.card {
  border: 1px solid #e9ecef;
  position: sticky;
  top: 20px;
}
.order-summary-box-checkout .card-title {
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}
.order-items-list {
  max-height: 300px;
  overflow-y: auto;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f5f5f5;
}
.order-item:last-child {
  border-bottom: none;
}
.order-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}
.order-item-info {
  flex-grow: 1;
}
.order-item-info .item-name {
  font-weight: 500;
}
.order-item-info .item-qty {
  font-size: 14px;
}
.item-price {
  font-weight: 500;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .order-summary-box-checkout.card {
    position: static;
    margin-top: 2rem;
  }
}

/* ==================================================================
   Checkout Page - Shipping Method Update
================================================================== */

.shipping-method-option.active {
  background-color: #f0f0ff;
  border-color: var(--color-purple);
}

.shipping-method-option label {
  cursor: default; /* Change cursor since it's not clickable anymore */
}

/* ==================================================================
   Professional Login Page Styles
================================================================== */
.professional-login-page {
  background-color: #fff;
}
.login-branding-panel {
  background: url("assets/images/login-bg.jpg") no-repeat center center; /* Replace with a high-quality image */
  background-size: cover;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}
.branding-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}
.branding-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.branding-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
}
.branding-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}
.login-form-wrapper {
  width: 100%;
  max-width: 450px;
}
.login-logo {
  max-width: 200px;
  margin-bottom: 1rem;
}
.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark-text);
}
.login-subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
}

.login-form .form-label {
  font-weight: 500;
}
.login-form .form-control {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ced4da;
}
.login-form .form-control:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 0.25rem rgba(70, 69, 120, 0.25);
}
.form-check-label,
.forgot-password-link {
  font-size: 0.9rem;
}
.forgot-password-link,
.signup-link {
  color: var(--color-purple);
  text-decoration: none;
  font-weight: 500;
}
.forgot-password-link:hover,
.signup-link:hover {
  text-decoration: underline;
}

.or-divider {
  text-align: center;
  margin: 1.5rem 0;
  overflow: hidden;
}
.or-divider span {
  position: relative;
  color: #6c757d;
  padding: 0 1rem;
}
.or-divider span::before,
.or-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100vw;
  height: 1px;
  background: #e9ecef;
}
.or-divider span::before {
  right: 100%;
}
.or-divider span::after {
  left: 100%;
}

.btn-social-login {
  background-color: #fff;
  border: 1px solid #ced4da;
  color: var(--color-dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  font-weight: 500;
}
.btn-social-login img {
  width: 20px;
  height: 20px;
}
.btn-social-login:hover {
  background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .login-form-panel {
    min-height: auto;
    padding: 3rem 1rem;
  }
}

/* ==================================================================
   Checkout Page - Payment Gateway Styles
================================================================== */

/* --- Stripe Card Element --- */
#card-element {
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background-color: white;
}
#card-element.StripeElement--focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 0.25rem rgba(70, 69, 120, 0.25);
}

/* --- Payment Tabs --- */
.payment-tabs .nav-pills .nav-link {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #555;
  font-weight: 500;
  margin-right: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.payment-tabs .nav-pills .nav-link.active {
  background-color: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}
.payment-tabs .tab-content {
  padding-top: 1.5rem;
}

/* --- PayPal Button Container --- */
#paypal-button-container {
  min-height: 50px; /* Prevents layout shift while buttons load */
}
/* ==================================================================
   Checkout Page - Individual Stripe Payment Fields
================================================================== */

/* This targets the div that Stripe turns into an input */
.StripeElement {
  box-sizing: border-box;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px 0 #e6ebf1;
  -webkit-transition: box-shadow 150ms ease;
  transition: box-shadow 150ms ease;
}

.StripeElement--focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 0.2rem rgba(70, 69, 120, 0.25);
}

.StripeElement--invalid {
  border-color: #fa755a;
}

.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}

/* Style for the error message divs */
.card-errors {
  color: #fa755a;
  font-size: 0.875em;
  margin-top: 4px;
}
