/* Tis & Dis V2 - Modern E-commerce CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* High-Conversion E-commerce Palette */
  --primary-orange: #FF8C00;
  --primary-orange-hover: #E67E00;
  --primary-orange-light: #FFF4E5;
  
  --primary-dark: #131921; /* Amazon style header */
  --primary-dark-hover: #232F3E;
  
  --bg-main: #F2F4F8; /* Soft grey body to make white cards pop */
  --bg-white: #FFFFFF;
  
  --text-dark: #0F1111;
  --text-medium: #565959;
  --text-light: #888888;
  --text-white: #FFFFFF;
  
  --accent-red: #CC0C39;
  --accent-green: #008A00;
  
  --border-color: #D5D9D9;
  
  /* Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input {
  font-family: inherit;
}

/* -- LAYOUT -- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -- HEADER -- */
header {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-white);
  line-height: 1;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--primary-orange);
  letter-spacing: 1px;
}

/* Search Bar */
.search-container {
  flex: 1;
  display: flex;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
}

.search-btn {
  background-color: var(--primary-orange);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 20px;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.search-btn:hover {
  background-color: var(--primary-orange-hover);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-item:hover {
  border-color: rgba(255,255,255,0.5);
}

.nav-item-top {
  font-size: 0.75rem;
  color: #CCC;
}

.nav-item-bottom {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.cart-icon-wrapper svg {
  width: 32px;
  height: 32px;
  color: var(--primary-orange);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: var(--text-dark);
  color: var(--primary-orange);
  font-weight: 800;
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
  border-radius: var(--radius-full);
}

/* -- SECONDARY NAV -- */
.secondary-nav {
  background-color: var(--primary-dark-hover);
  color: var(--text-white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.secondary-nav-content {
  display: flex;
  gap: 20px;
}

.secondary-nav-content a {
  padding: 4px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.secondary-nav-content a:hover {
  border-color: rgba(255,255,255,0.5);
}

/* -- HERO SECTION -- */
.hero-section {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.sidebar {
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-item:hover {
  background-color: var(--bg-main);
  color: var(--primary-orange);
}

/* Hero Slider */
.hero-slider {
  background-color: var(--primary-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  min-height: 350px;
}

.slider-content {
  padding: 40px;
  color: var(--text-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 60%;
  background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
}

.slider-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.slider-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Promo Column */
.promo-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
}

.promo-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* -- PRODUCT GRID -- */
.section-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-img {
  width: 100%;
  height: 200px;
  background-color: #F8F8F8;
  object-fit: cover;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name:hover {
  color: var(--primary-orange);
  text-decoration: underline;
  cursor: pointer;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.btn-add {
  background-color: var(--primary-orange);
  color: var(--text-dark);
  border: none;
  padding: 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-add:hover {
  background-color: var(--primary-orange-hover);
}

/* --- Footer --- */
footer {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 60px 0 20px;
  border-top: 4px solid var(--primary-orange);
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-newsletter h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.footer-newsletter p {
  color: #ccc;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  width: 300px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--primary-orange);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color 0.2s, transform 0.2s;
}

.social-links a:hover {
  background-color: var(--primary-orange);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: #888;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #888;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: white;
}
