body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  color: #222;
  font-weight: 500;
  margin-top: 0;
}

a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: #000;
}

/* Header */
header {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#logo img {
  max-height: 50px;
}

/* Top Navigation */
#top {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 0;
}

#top a {
  color: #666;
  font-size: 13px;
}

#top a:hover {
  color: #333;
}

/* Main Menu */
#menu {
  background-color: #222;
  border-radius: 0;
  margin-bottom: 30px;
}

#menu .nav > li > a {
  color: #fff;
  padding: 15px 20px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

#menu .nav > li > a:hover {
  background-color: #000;
}

#menu .dropdown-menu {
  background-color: #fff;
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#menu .dropdown-inner a {
  color: #333;
  padding: 10px 20px;
}

#menu .dropdown-inner a:hover {
  color: #000;
  background-color: #f5f5f5;
}

#menu .see-all {
  border-top: 1px solid #eee;
  color: #333;
  font-weight: 500;
  padding: 10px 20px;
}

#menu .see-all:hover {
  color: #000;
  background-color: #f5f5f5;
}

/* Search */
#search .form-control {
  height: 40px;
  border-radius: 0;
  border: 1px solid #e5e5e5;
}

#search .btn {
  height: 40px;
  border-radius: 0;
  background-color: #222;
  color: #fff;
}

/* Cart */
#header-cart .btn {
  background-color: #222;
  color: #fff;
  border-radius: 0;
  height: 40px;
}

/* Product Card */
.product-thumb {
  border: 1px solid #e5e5e5;
  margin-bottom: 30px;
  transition: all 0.3s;
  background: #fff;
}

.product-thumb:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-thumb .image {
  padding: 20px;
  text-align: center;
}

.product-thumb h4 {
  font-weight: 500;
  margin: 10px 0;
  font-size: 16px;
}

.product-thumb h4 a {
  color: #333;
}

.product-thumb .price {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.product-thumb .price-new {
  color: #d9534f;
}

.product-thumb .price-old {
  color: #999;
  text-decoration: line-through;
}

.product-thumb .button-group {
  border-top: 1px solid #e5e5e5;
  background-color: #f5f5f5;
}

.product-thumb .button-group button {
  background-color: transparent;
  color: #666;
  border: none;
  border-left: 1px solid #e5e5e5;
}

.product-thumb .button-group button:first-child {
  border-left: none;
}

.product-thumb .button-group button:hover {
  color: #333;
  background-color: #e5e5e5;
}

/* Buttons */
.btn-primary {
  background-color: #222;
  border-color: #222;
  border-radius: 0;
}

.btn-primary:hover {
  background-color: #000;
  border-color: #000;
}

.btn-secondary {
  background-color: #f5f5f5;
  border-color: #e5e5e5;
  color: #333;
  border-radius: 0;
}

.btn-secondary:hover {
  background-color: #e5e5e5;
  border-color: #d5d5d5;
  color: #333;
}

/* Footer */
footer {
  background-color: #222;
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 30px;
}

footer h5 {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
}

footer a {
  color: #ccc;
}

footer a:hover {
  color: #fff;
}

footer hr {
  border-top: 1px solid #333;
}

/* Pagination */
.pagination > li > a, .pagination > li > span {
  color: #333;
  border-color: #e5e5e5;
  background-color: #fff;
}

.pagination > li > a:hover, .pagination > li > span:hover {
  color: #333;
  background-color: #f5f5f5;
  border-color: #e5e5e5;
}

.pagination > .active > a, .pagination > .active > span {
  background-color: #222;
  border-color: #222;
}

/* Form Elements */
.form-control {
  border-radius: 0;
  border-color: #e5e5e5;
  box-shadow: none;
}

.form-control:focus {
  border-color: #ccc;
  box-shadow: none;
}

/* Alert */
.alert {
  border-radius: 0;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.breadcrumb > li + li:before {
  content: "/";
  color: #ccc;
}

/* Content */
#content {
  min-height: 600px;
}

/* Responsive */
@media (max-width: 767px) {
  #logo img {
    margin: 0 auto;
  }
  
  #search, #header-cart {
    margin-top: 15px;
  }
  
  #menu .navbar-nav {
    margin: 0;
  }
  
  #menu .dropdown-inner {
    display: block;
  }
  
  #menu .dropdown-inner a {
    width: 100%;
  }
  
  #menu .dropdown-menu {
    padding-top: 0;
    padding-bottom: 0;
  }
  
  #menu .dropdown-menu li a {
    padding: 10px 15px;
  }
}

/* Custom Styles */
.badge-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #d9534f;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  z-index: 1;
}

.product-layout {
  margin-bottom: 30px;
}

.rating .fa-star {
  color: #ffc107;
}

.rating .fa-star-o {
  color: #ccc;
}

/* Cookie Banner */
#cookie {
  background-color: #222;
  color: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 15px 0;
}

#cookie .btn {
  border-radius: 0;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  /* General improvements */
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  /* Header improvements */
  header {
    padding: 10px 0;
  }
  
  #logo img {
    max-height: 40px;
  }
  
  /* Menu improvements */
  #menu .navbar-nav > li > a {
    padding: 12px 15px;
  }
  
  /* Product card improvements */
  .product-thumb .image {
    padding: 15px;
  }
  
  .product-thumb h4 {
    font-size: 14px;
  }
  
  .product-thumb .button-group button {
    padding: 7px 5px;
    font-size: 11px;
  }
  
  /* Product page improvements */
  .product-details ul.list-unstyled li {
    margin-bottom: 8px;
  }
  
  .price-block {
    text-align: center;
  }
  
  /* Cart improvements */
  #header-cart .dropdown-menu {
    width: 100%;
    min-width: auto;
  }
  
  /* Checkout improvements */
  .checkout-step {
    padding: 15px;
  }
  
  /* Footer improvements */
  footer {
    padding: 30px 0 20px;
  }
  
  footer h5 {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 991px) {
  .product-layout {
    margin-bottom: 20px;
  }
  
  #menu .navbar-nav > li > a {
    padding: 15px 10px;
    font-size: 12px;
  }
  
  .product-thumb .button-group button {
    font-size: 11px;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .btn, button, a {
    transition: none;
  }
  
  .product-thumb:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .product-thumb .button-group button {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Improved Accessibility */
.btn:focus, a:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #666;
  outline-offset: 2px;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #222;
  color: #fff;
  padding: 8px 15px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  header, footer, #menu, .breadcrumb, .buttons, .addthis_toolbox, .product-thumb .button-group {
    display: none !important;
  }
  
  #content {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  a {
    text-decoration: none !important;
    color: #333 !important;
  }
}
