body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #111; /* readable default text color */
  background: #ffffff;
  overflow-x: hidden;
  padding-top: 80px;
}
/* cleaned malformed CSS previously inserted here */

.logo {
  width: 160px;
  height: auto;
}

.logo-lg {
  width: 180px;
  height: auto;
}

nav {
  height: 72px;
}

/* Desktop navbar layout with centered navigation */
@media (min-width: 992px) {
  .navbar .center-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar .right-nav {
    margin-left: auto;
  }
}

/* Mobile navbar layout */
@media (max-width: 991.98px) {
  /* Force navbar to be a solid block */
  .navbar.fixed-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Make collapse area have solid background */
  .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #ffffff !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 1029 !important;
  }

  /* When expanded, ensure it shows properly */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    display: block !important;
    position: absolute !important;
    background-color: #ffffff !important;
  }

  /* Center and Right nav sections */
  .navbar .center-nav {
    position: static;
    transform: none;
    margin: 0;
    width: 100%;
    padding: 0;
  }

  .navbar .right-nav {
    margin: 0;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    width: 100%;
  }

  /* Style all nav items */
  .navbar-nav {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .navbar-nav .nav-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff !important;
  }

  .navbar-nav .nav-link {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    display: block !important;
    color: #1d1d1f !important;
    background-color: #ffffff !important;
    border: none !important;
    text-align: left !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background-color: #f8f9fa !important;
    color: #000000 !important;
  }

  /* Cart and user icons in right nav */
  .navbar-nav.right-nav .nav-item {
    background-color: #f8f9fa !important;
  }

  .navbar-nav.right-nav .nav-link {
    padding: 1rem 1.5rem !important;
    background-color: transparent !important;
  }

  /* Dropdown menus on mobile */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background-color: #f8f9fa !important;
  }

  .dropdown-item {
    padding: 0.75rem 1.5rem !important;
    background-color: #f8f9fa !important;
  }

  .dropdown-item:hover {
    background-color: #e9ecef !important;
  }

  /* Ensure toggler button works */
  .navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 0.75rem !important;
    cursor: pointer;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 113, 227, 0.25) !important;
  }
}

nav .navbar-brand {
  height: 100%;
  font-weight: 500;
}

/* Apple-like navbar styling */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar.fixed-top {
  background-color: #ffffff !important;
}

.navbar .nav-link {
  color: #1d1d1f !important;
  font-weight: 300;
  letter-spacing: 0.2px;
  padding: 0.25rem 0.6rem;
}

.navbar .nav-link:hover {
  color: #000000 !important;
}

/* Active state similar to Apple.com */
.navbar .nav-link.active,
.navbar .nav-link:focus {
  color: #000 !important;
  text-decoration: none;
}

.aboutus-heading {
  padding-top: 80px;
}

.icon {
  width: 60px;
  height: 60px;
}

footer {
  height: 50px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

.carousel-control-prev {
  left: -3%;
}

.carousel-control-next {
  right: -3%;
}

/* Apple-like typography scale and palette */
h1,
.h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
}
/* Category page title: lighter weight with wider tracking like Apple */
.category-title {
  font-weight: 500;
  letter-spacing: 0.06em;
}
h2,
.h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.625rem, 2vw + 0.75rem, 2.25rem);
}
h3,
.h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 1.2vw + 0.75rem, 1.75rem);
}
h4,
.h4 {
  font-weight: 500;
  font-size: 1.25rem;
}
h5,
.h5 {
  font-weight: 500;
}
h6,
.h6 {
  font-weight: 500;
}

.text-muted {
  color: #6e6e73 !important;
}
.text-secondary {
  color: #424245 !important;
}

/* Body copy and labels: lighter, standard size */
p,
.form-text {
  font-weight: 400;
}
label,
.form-label {
  font-weight: 400;
  color: #424245;
}
.lead {
  font-size: 1.125rem;
  color: #424245;
}

/* Buttons */
.btn {
  border-radius: 16px;
  /* Revert: remove full-stars-example-two custom styles */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-link-minimal {
  color: #06c;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}
.btn-link-minimal:hover {
  text-decoration: underline;
  background-color: rgba(0, 0, 0, 0.04);
}

/* Links */
a {
  color: #06c;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ============================================
   STAR RATING SYSTEM STYLES
   ============================================ */

/* Rating Input Styles (Form içinde kullanılan) */
.rating-stars {
  display: inline-flex;
  gap: 6px;
  direction: ltr;
}

.rating-stars .star {
  background: none;
  border: none;
  font-size: 32px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.rating-stars .star:hover,
.rating-stars .star.filled {
  color: #ffd700;
  transform: scale(1.1);
}

.rating-stars .star:active {
  transform: scale(0.95);
}

.rating-stars .star:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
  border-radius: 6px;
}

/* Display Rating Styles (Yorumlarda gösterilen) */
.rating-display {
  display: inline-flex;
  gap: 3px;
  font-size: 18px;
  align-items: center;
}

.rating-display .star {
  color: #ffd700;
  line-height: 1;
}

.rating-display .star.empty {
  color: #ddd;
}

/* Comment Styles */
.comment-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 15px;
  background: #fafafa;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: 600;
  font-size: 16px;
  color: #1d1d1f;
}

.comment-date {
  font-size: 13px;
  color: #6e6e73;
  margin-top: 5px;
}

.comment-text {
  margin-top: 10px;
  color: #424245;
  line-height: 1.6;
}

.helper-text {
  font-size: 13px;
  color: #6e6e73;
  margin-top: 8px;
}

/* Cards / product tiles */
.card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  box-shadow: none;
}
.card-img-top {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background-color: #fff;
  border: none;
}
.card-title {
  font-weight: 600;
}
.card-text {
  color: #424245;
}

/* Product listing card specifics */
.card-slogan {
  color: #6e6e73;
  font-weight: 400;
}
.card-price {
  color: #1d1d1f;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Product page hierarchy */
.product-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 2.2vw + 0.5rem, 2.5rem);
}
.product-subtitle {
  color: #6e6e73;
  font-weight: 500;
}
.product-price {
  font-weight: 700;
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  color: #1d1d1f;
}
.product-actions {
  display: flex;
  gap: 12px;
}
.product-actions .btn {
  padding: 0.75rem 1.25rem;
}
.product-actions .btn-primary,
.product-actions .btn-brand-primary {
  background-color: #0071e3;
}
.product-actions .btn-outline-dark {
  border-color: rgba(0, 0, 0, 0.2);
}

/* Tables: remove heavy borders; use thin light gray */
.table {
  border-color: rgba(0, 0, 0, 0.08);
}
.table th,
.table td {
  border-color: rgba(0, 0, 0, 0.08);
  border-width: 1px;
}
.table thead th {
  font-weight: 600;
}

/* Cart and checkout specifics */
.cart-total {
  text-align: right;
  font-weight: 700;
}
.cart-total .amount {
  font-weight: 700;
}

.btn-checkout {
  background-color: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
}
.btn-checkout:hover {
  background-color: #29c36a;
  border-color: #29c36a;
  box-shadow: 0 6px 16px rgba(41, 195, 106, 0.24);
}

.link-remove {
  color: #d92d20;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.link-remove:hover {
  text-decoration: underline;
}

/* Product image without frame */
img.product-image {
  background: #fff;
  border: none !important;
}

/* Cart quantity control: ensure 2-digit values fit comfortably */
.cart-table .quantity,
.cart-quantity,
td.quantity,
.quantity .input-group {
  min-width: 132px;
  display: inline-flex;
  align-items: center;
}
.quantity .input-group .form-control,
.quantity input[type="number"] {
  width: 6ch; /* fits up to 2-3 digits comfortably */
  min-width: 72px;
  max-width: 88px;
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.quantity .input-group .btn {
  min-width: 40px;
  width: 40px;
}

/* Prevent table column from expanding excessively due to quantity control */
td.quantity,
th.quantity {
  width: 160px;
}
/* remove stray bracket */

.table .input-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.table .input-group .btn-qty-minus,
.table .input-group .btn-qty-plus {
  min-width: 40px;
  width: 40px;
}
.table .input-group .btn-qty-minus,
.table .input-group .btn-qty-plus,
.table .input-group .cart-qty-input {
  flex: 0 0 auto;
}
.table .input-group .cart-qty-input {
  width: 6ch;
  min-width: 72px;
  max-width: 88px;
  text-align: center;
}
/* Product grid spacing */
.product-grid .row {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}
.product-grid .col,
.product-grid [class*="col-"] {
  margin-bottom: 32px;
}

/* Section spacing */
.section {
  padding: 64px 0;
}

/* Content wrappers for more breathing room */
.content-wrap {
  padding: 1rem;
}
@media (min-width: 768px) {
  .content-wrap {
    padding: 1.5rem;
  }
}
@media (min-width: 992px) {
  .content-wrap {
    padding: 2rem;
  }
}

/* Card inner spacing */
.card-body {
  padding: 1.5rem;
}

/* Spacing utilities */
.space-y-lg > * + * {
  margin-top: 32px;
}
.space-y-xl > * + * {
  margin-top: 48px;
}

/* Footer */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Visual + text split blocks (like About Us) */
.split-block {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .split-block {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
.split-block .split-image {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.split-block .split-image img {
  width: 100%;
  height: auto;
  display: block;
}
.split-block .split-text {
  color: #1d1d1f;
}
.split-block .split-text .lead {
  font-size: 1.125rem;
  color: #424245;
}
.split-block .split-text p {
  margin-bottom: 0.75rem;
}

/* Form fields: minimal borders, clean focus */
.form-control {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  background-color: #fff;
}
.form-control:focus {
  border-color: rgba(0, 0, 0, 0.24);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.form-label {
  display: none;
}
.form-control::placeholder {
  color: #6e6e73;
}

/* Submit button responsive sizing */
.btn-submit {
  width: 100%;
}
@media (min-width: 576px) {
  .btn-submit {
    width: auto;
    min-width: 220px;
  }
}
@media (min-width: 992px) {
  .btn-submit {
    min-width: 260px;
  }
}

/* ============================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Mobile-first improvements */
@media (max-width: 767.98px) {
  /* Adjust body padding for shorter mobile header */
  body {
    padding-top: 70px;
  }

  /* Navbar adjustments */
  .navbar {
    padding: 0.8rem 0;
  }

  nav {
    height: auto;
    min-height: 60px;
  }

  /* Logo sizing for mobile */
  .logo {
    width: 120px;
  }

  .logo-lg {
    width: 140px;
  }

  /* Carousel adjustments */
  .carousel-inner {
    max-height: 300px !important;
  }

  .carousel-inner img,
  .carousel-item img {
    height: 300px !important;
    object-fit: cover;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 12%;
  }

  /* Typography adjustments */
  h1,
  .h1 {
    font-size: 1.75rem;
  }

  h2,
  .h2 {
    font-size: 1.5rem;
  }

  h3,
  .h3 {
    font-size: 1.25rem;
  }

  /* Card spacing */
  .card-body {
    padding: 1rem;
  }

  /* Product page layout */
  .product-actions {
    flex-direction: column;
    gap: 8px;
  }

  .product-actions .btn {
    width: 100%;
    padding: 0.65rem 1rem;
  }

  /* Tables - make scrollable horizontally */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Cart table adjustments */
  .table th,
  .table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  /* Hide product images in cart on very small screens */
  .table img {
    width: 48px !important;
    height: 48px !important;
  }

  /* Form controls */
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Input groups in cart */
  .table .input-group {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table .input-group .form-control {
    min-width: 50px;
    font-size: 0.875rem;
  }

  .quantity .input-group {
    min-width: auto;
  }

  .quantity input[type="number"],
  .input-group .form-control {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
  }

  .input-group .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    min-width: 35px;
  }

  /* Spacing adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .mt-5,
  .my-5 {
    margin-top: 2rem !important;
  }

  .mb-5,
  .my-5 {
    margin-bottom: 2rem !important;
  }

  .pt-5,
  .py-5 {
    padding-top: 2rem !important;
  }

  .pb-5,
  .py-5 {
    padding-bottom: 2rem !important;
  }

  /* Footer adjustments */
  footer {
    height: auto;
    min-height: 50px;
    padding: 1rem 0;
  }

  /* Button sizing */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  /* About us page */
  .aboutus-heading {
    padding-top: 60px;
  }

  /* Icon sizing */
  .icon {
    width: 48px;
    height: 48px;
  }

  /* Comment items */
  .comment-item {
    padding: 15px;
  }

  /* Rating stars in mobile */
  .rating-stars .star {
    font-size: 28px;
  }

  /* Navbar nav items spacing */
  .navbar-nav .nav-item {
    padding: 0.25rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .carousel-inner {
    max-height: 400px !important;
  }

  .carousel-inner img,
  .carousel-item img {
    height: 400px !important;
  }

  .logo {
    width: 140px;
  }
}

/* Very small mobile devices */
@media (max-width: 575.98px) {
  /* Even smaller carousel */
  .carousel-inner {
    max-height: 250px !important;
  }

  .carousel-inner img,
  .carousel-item img {
    height: 250px !important;
  }

  /* Compact nav items */
  .navbar-brand {
    font-size: 1.1rem;
  }

  /* Ensure navbar works properly on iPhone */
  .navbar {
    padding: 0.5rem 0 !important;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.95rem;
  }

  /* iPhone: make sure collapse works */
  .navbar-collapse {
    position: static;
    width: 100%;
    overflow-x: hidden;
  }

  /* Ensure dropdown works on iPhone */
  .dropdown-menu {
    width: 100%;
    right: 0;
    left: 0;
  }

  /* Reduce quantity control sizes for tiny screens */
  .quantity .input-group {
    min-width: auto;
  }

  .quantity .input-group .form-control,
  .quantity input[type="number"] {
    width: 4ch;
    min-width: 50px;
    max-width: 60px;
    font-size: 0.875rem;
    padding: 0.25rem 0.25rem;
  }

  .quantity .input-group .btn {
    min-width: 32px;
    width: 32px;
    font-size: 0.875rem;
    padding: 0.25rem;
  }

  /* Reduce table input group widths for tiny screens */
  .table .input-group {
    flex-wrap: wrap;
    width: 100%;
  }

  .table .input-group .btn-qty-minus,
  .table .input-group .btn-qty-plus {
    min-width: 32px;
    width: 32px;
    font-size: 0.875rem;
    padding: 0.25rem;
  }

  .table .input-group .cart-qty-input {
    width: 4ch;
    min-width: 50px;
    max-width: 60px;
    font-size: 0.875rem;
    padding: 0.25rem;
  }

  /* Cart improvements for tiny screens */
  .table thead th:nth-child(3),
  .table tbody td:nth-child(3) {
    display: none; /* Hide quantity column header on very small screens */
  }

  /* Stack cart totals vertically */
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }

  /* Full width buttons on tiny screens */
  .d-flex.gap-2 .btn {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.5rem;
  }

  /* Reduce product image size on tiny screens */
  .d-flex.align-items-center.gap-3 img {
    width: 48px !important;
    height: 48px !important;
  }

  /* Reduce table padding for tiny screens */
  .table th,
  .table td {
    padding: 0.4rem 0.25rem !important;
  }

  /* Adjust table font for tiny screens */
  .table {
    font-size: 0.8rem;
  }

  /* Login/Register forms - remove max-width restriction */
  .container[style*="max-width"] {
    max-width: 100% !important;
  }
}

/* Landscape mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
  body {
    padding-top: 65px;
  }

  .carousel-inner {
    max-height: 280px !important;
  }

  .carousel-inner img,
  .carousel-item img {
    height: 280px !important;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets for touch devices */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Remove hover effects on touch devices */
  .card:hover,
  .btn:hover,
  .nav-link:hover {
    transform: none;
  }
}
