/* VEIDEC Custom Theme Styles */
/* Based on the provided design image */

/* Variables - Ofistekin.com Color Palette */
/* Beyaz, Siyah ve Kırmızı Tonları */
:root {
  --primary-red: #E31E24;
  --secondary-red: #C41E24;
  --dark-grey: #2C2C2C;
  --light-grey: #F5F5F5;
  --white: #ffffff;
  --red: #E31E24;
  --text-dark: #2C2C2C;
  --text-light: #6c757d;
  --accent-red: #E31E24;
  --cnvs-body-font: 'Roboto', sans-serif;
  --cnvs-primary-font: 'Zilla Slab', serif;
}

/* Typography - Global Font Settings */
html,
body {
  font-family: var(--cnvs-body-font) !important;
}

/* Typography - Headings use primary font */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--cnvs-primary-font) !important;
}

/* Ensure all text elements inherit body font */
p, span, div, a, li, td, th, label, input, textarea, select, button, .btn {
  font-family: var(--cnvs-body-font) !important;
}

/* Top Bar (Dark Grey) */
.top-bar {
  background-color: var(--dark-grey);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.top-bar .home-text {
  font-weight: 500;
}

/* Second Bar (White with promotional content) */
.promo-bar {
  background-color: var(--white);
  padding: 15px 0;
  border-bottom: 2px solid var(--light-grey);
}

.promo-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.promo-bar .promo-items {
  display: flex;
  gap: 30px;
}

.promo-bar .promo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 14px;
}

.promo-bar .check-icon {
  color: var(--primary-red);
  font-size: 16px;
}

.promo-bar .utility-links {
  display: flex;
  gap: 20px;
}

.promo-bar .utility-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.promo-bar .utility-links a:hover {
  color: var(--primary-red);
}

/* Main Header (White Background) */
.main-header {
  background-color: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--light-grey);
}

.main-header .container {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Logo */
.main-header .logo {
  display: flex;
  align-items: center;
}

.main-header .logo a {
  display: inline-block;
  text-decoration: none;
}

.main-header .logo img {
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.main-header .logo h1 {
  font-family: var(--cnvs-primary-font);
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}

.main-header .logo h1 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-header .logo h1 a:hover {
  color: var(--primary-red);
}

/* Categories Button */
.categories-btn {
  background-color: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.categories-btn:hover {
  background-color: #d43f2e;
}

.categories-btn .gear-icon {
  font-size: 16px;
}

.categories-btn .arrow-down {
  font-size: 12px;
}

/* Search Bar */
.search-container {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-container .search-input {
  width: 100%;
  padding: 12px 50px 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  background-color: var(--white);
  color: var(--text-dark);
}

.search-container .search-input::placeholder {
  color: #999;
}

.search-container .search-input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.search-container .search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
}

.search-container .search-btn:hover {
  color: var(--primary-red);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-dark);
  font-size: 14px;
}

.contact-info .phone {
  font-weight: 500;
}

.contact-info .email {
  opacity: 0.9;
}

/* Header Icons */
.header-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-icons .currency-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.header-icons .user-icon,
.header-icons .cart-icon {
  color: var(--text-dark);
  font-size: 20px;
  cursor: pointer;
  position: relative;
}

.header-icons .user-icon:hover,
.header-icons .cart-icon:hover {
  opacity: 0.8;
}

.header-icons .cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--red);
  color: var(--white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Bar (Light Grey) */
.nav-bar {
  background-color: var(--light-grey);
  padding: 15px 0;
  border-bottom: 1px solid #dee2e6;
}

.nav-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.nav-bar .nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-bar .nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-bar .nav-item a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-bar .nav-item a:hover {
  color: var(--primary-red);
}

.nav-bar .nav-icon {
  font-size: 16px;
  color: var(--primary-red);
}

.nav-bar .percentage-icon {
  color: var(--red);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-header .container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .main-header .logo {
    text-align: center;
  }
  
  .main-header .categories-btn {
    justify-content: center;
  }
  
  .main-header .contact-info {
    text-align: center;
  }
  
  .main-header .header-icons {
    justify-content: center;
  }
  
  .promo-bar .container {
    flex-direction: column;
    gap: 15px;
  }
  
  .promo-bar .promo-items {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-bar .nav-menu {
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .top-bar .container,
  .promo-bar .container,
  .main-header .container,
  .nav-bar .container {
    padding: 0 10px;
  }
  
  .main-header {
    padding: 15px 0;
  }
  
  .main-header .logo img {
    max-height: 45px;
  }
  
  .main-header .logo h1 {
    font-size: 22px;
  }
}

/* Additional utility classes */
.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Shadow effects */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Custom styles for specific elements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-red);
}

.btn-danger {
  background-color: var(--red);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #d43f2e;
}

/* Form styles */
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.25);
}

/* Icon styles */
.icon {
  font-size: 16px;
  line-height: 1;
}

.icon-sm {
  font-size: 14px;
}

.icon-lg {
  font-size: 20px;
}

/* Text utilities */
.text-white {
  color: var(--white);
}

.text-dark {
  color: var(--text-dark);
}

.text-light {
  color: var(--text-light);
}

.text-red {
  color: var(--primary-red);
}

.text-accent {
  color: var(--accent-red);
}

/* Background utilities */
.bg-white {
  background-color: var(--white);
}

.bg-red {
  background-color: var(--primary-red);
}

.bg-grey {
  background-color: var(--light-grey);
}

.bg-dark {
  background-color: var(--dark-grey);
}

/* Footer styles moved to main stylesheet.css */

/* Additional custom styles for better appearance */

/* Red underline accent for headings */
.heading-accent {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.heading-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

/* Page title with red accent */
h1.page-title,
h2.section-title {
  font-family: var(--cnvs-primary-font);
  font-size: 32px;
  font-weight: bold;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

h1.page-title::after,
h2.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-red) 70%, transparent 100%);
  border-radius: 2px;
}

.search-container .search-input {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.search-container .search-input:focus {
  box-shadow: 0 2px 6px rgba(227, 30, 36, 0.15);
}

.categories-btn {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.categories-btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Categories Dropdown */
.categories-dropdown {
  position: relative;
}

.categories-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--white);
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 5px;
  padding: 8px 0;
}

.categories-dropdown .dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  border: none;
  background: none;
  transition: background-color 0.3s ease;
}

.categories-dropdown .dropdown-item:hover {
  background-color: var(--light-grey);
  color: var(--primary-red);
}

.categories-dropdown .dropdown-item:focus {
  background-color: var(--light-grey);
  color: var(--primary-red);
  outline: none;
}

/* Dropdown arrow animation */
.categories-btn[aria-expanded="true"] .arrow-down {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.categories-btn .arrow-down {
  transition: transform 0.3s ease;
}

.nav-bar .nav-menu {
  justify-content: center;
}

.nav-bar .nav-item a {
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-bar .nav-item a:hover {
  background-color: rgba(227, 30, 36, 0.1);
}

/* Product Category Cards */
.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 15px;
}

.category-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.category-card-title {
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  border-top: 3px solid var(--primary-red);
  transition: color 0.3s ease;
}

.category-card:hover .category-card-title {
  color: var(--primary-red);
}

/* Product Grid for listings */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.product-item {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 15px;
  transition: all 0.3s ease;
}

.product-item:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-red);
}

/* Product Detail Page Typography - Ofistekin.com Style */
#product-info {
  font-family: var(--cnvs-body-font) !important;
}

#product-info h1 {
  font-family: var(--cnvs-primary-font) !important;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

#product-info h2,
#product-info h3 {
  font-family: var(--cnvs-primary-font) !important;
  font-weight: 600;
  color: var(--text-dark);
}

#product-info .price-new,
#product-info .price-old {
  font-family: var(--cnvs-body-font) !important;
}

#product-info .price-new h2 {
  font-family: var(--cnvs-body-font) !important;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-red);
}

#product-info ul.list-unstyled li {
  font-family: var(--cnvs-body-font) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

#product-info .form-label,
#product-info label {
  font-family: var(--cnvs-body-font) !important;
  font-weight: 500;
  color: var(--text-dark);
}

#product-info .form-control,
#product-info .form-select,
#product-info input,
#product-info select,
#product-info textarea {
  font-family: var(--cnvs-body-font) !important;
}

#product-info .tab-content,
#product-info #tab-description,
#product-info #tab-specification,
#product-info #tab-review {
  font-family: var(--cnvs-body-font) !important;
  line-height: 1.8;
}

#product-info .nav-tabs .nav-link {
  font-family: var(--cnvs-body-font) !important;
  font-weight: 500;
}

#product-info .breadcrumb {
  font-family: var(--cnvs-body-font) !important;
}

#product-info .breadcrumb a {
  font-family: var(--cnvs-body-font) !important;
  color: var(--text-light);
}

#product-info .btn {
  font-family: var(--cnvs-body-font) !important;
  font-weight: 500;
}

#product-info table.table td {
  font-family: var(--cnvs-body-font) !important;
}

#product-info table.table thead td strong {
  font-family: var(--cnvs-primary-font) !important;
  font-weight: 600;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .main-header .container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .main-header .logo {
    justify-content: center;
  }
  
  .main-header .logo img {
    max-height: 50px;
  }
  
  .nav-bar .nav-menu {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-bar .nav-item {
    width: 100%;
    justify-content: center;
  }
  
  .promo-bar .promo-items {
    text-align: center;
  }
  
  /* Mobile dropdown adjustments */
  .categories-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
  
  .categories-dropdown {
    width: 100%;
  }
  
  .categories-btn {
    width: 100%;
    justify-content: center;
  }
}
