/* ===== Modern Professional Header ===== */
header {
  width: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(79, 140, 255, 0.08);
  padding: 0;
  margin-bottom: 24px;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.header-logo {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(43, 95, 199, 0.10);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.header-nav a:hover, .header-nav a.active {
  background: var(--accent);
  color: #222;
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    gap: 10px;
  }
  .header-logo {
    font-size: 1.2rem;
  }
  .header-nav {
    gap: 10px;
  }
}
/* ---------- Top Image Section ---------- */






section.top-img main section.card {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
  width: 90%;
  max-width: 1200px;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: hidden;
}

/* Individual cards */
section.top-img main section.card article {
    min-width: 150px;
    max-width: 200px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    margin: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section.top-img main section.card article:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
}

/* Images inside cards */
section.top-img main section.card article img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

/* Text inside cards */
article div.up {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}

article div.up a {
    font-size: 1rem;
    text-align: center;
    color: #000;
    text-decoration: none;
}

article div.up a:hover {
    color: green;
}

article div.up p.dis {
    font-size: 0.875rem;
    text-align: center;
    color: #555;
    margin-top: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    section.top-img main section.card {
        position: relative;
        bottom: auto;
        transform: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    section.top-img main section.card article {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    section.top-img main section.card article img {
        width: 120px;
        height: 120px;
    }

    article div.up a {
        font-size: 0.9rem;
    }

    article div.up p.dis {
        font-size: 0.8rem;
    }
}

/* ========== New Company Sidebar & Main Layout ========== */
section.top-img {
    display: flex;
    height: auto;
    min-height: 70vh;
    gap: 0;
    padding: 2rem 0;
}

/* Carousel Section */
.carousel-section {
    width: 100%;
    background: #000;
    padding: 1rem 0;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: #000;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 4px;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
    width: 16px;
}

aside.company-sidebar {
    width: 25%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    overflow-y: auto;
    max-height: 70vh;
    position: sticky;
    top: 100px;
}

aside.company-sidebar h2 {
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.company-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-nav a.nav-main {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.company-nav a.nav-main:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.submenu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0 0 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.submenu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.submenu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1.25rem;
    border-radius: 4px;
}

main.company-main {
    flex: 1;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main.company-main h1 {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 0;
    color: #333;
}

main.company-main p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.products-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.products-section h2 {
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    border: 1px solid #eef2ff;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.product-card h4 {
    margin: 8px 0 6px;
    color: #333;
    font-size: 1rem;
}

.product-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.price {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.discount {
    background: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.stock-info {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0;
}

.actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}

.actions button {
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #667eea;
    background: #fff;
    color: #667eea;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.actions button:hover {
    background: #667eea;
    color: white;
}

.actions .btn-view {
    border-color: #667eea;
    color: #667eea;
}

.actions .btn-view:hover {
    background: #667eea;
}

.actions .btn-school {
    border-color: #007bff;
    color: #007bff;
}

.actions .btn-school:hover {
    background: #007bff;
    color: white;
}

.actions .btn-info {
    border-color: #28a745;
    color: #28a745;
}

.actions .btn-info:hover {
    background: #28a745;
    color: white;
}

@media (max-width: 768px) {
    section.top-img {
        flex-direction: column;
        min-height: 100%;
    }

    aside.company-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    main.company-main {
        padding: 1.5rem;
    }

    main.company-main h1 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .carousel-container {
        height: 250px;
    }

    .carousel-btn {
        padding: 8px 12px;
        font-size: 18px;
    }
}





:root {
  --primary: #4f8cff;
  --primary-dark: #2b5fc7;
  --accent: #ffb347;
  --bg: #f4f8fb;
  --card: #ffffff;
  --text: #1a2233;
  --muted: #7b8794;
  --success: #22c55e;
  --danger: #ef4444;
  --hover: #e6f0ff;
}

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    .hero {
      max-width: 1200px;
      margin: 32px auto;
      padding: 26px 20px 10px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 24px;
      align-items: center;
    }

    .hero-card {
      background: var(--card);
      border-radius: 16px;
      padding: 26px;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
      border: 1px solid #e5e7eb;
    }

    .hero h1 {
      font-size: clamp(28px, 4vw, 38px);
      margin-bottom: 12px;
    }

    .hero p {
      color: var(--muted);
      margin-bottom: 16px;
    }

    .hero-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .pill {
      background: #eef2ff;
      color: #4338ca;
      padding: 8px 12px;
      border-radius: 999px;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }

    .grid {
      max-width: 1200px;
      margin: 0 auto 60px;
      padding: 0 20px;
    }

    .grid-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      gap: 10px;
    }

    .grid-header h2 {
      font-size: 1.2rem;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
      max-width: 100%;
      overflow-x: auto;
    }

    .card {
      background: var(--card);
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
      max-width: 320px;
      min-width: 0;
      transition: transform .2s ease;
      margin: 0 auto;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    }

    .card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      background: #eef2ff;
    }

    .card-body {
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .card-actions {
      position: absolute;
      top: 10px;
      right: 10px;
      display: flex;
      gap: 6px;
      opacity: 0;
      transition: opacity .2s ease;
    }

    .card:hover .card-actions {
      opacity: 1;
    }

    .icon-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.95);
      border: none;
      cursor: pointer;
      display: grid;
      place-items: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      transition: transform .15s ease;
    }

    .icon-btn:hover {
      transform: scale(1.1);
    }

    .icon-btn i {
      font-size: 16px;
    }

    .icon-btn.active i {
      color: #ef4444;
    }

    .price {
      color: var(--primary-dark);
      font-weight: 700;
    }

    .meta {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .tags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .tag {
      background: #f3f4f6;
      color: #4b5563;
      padding: 4px 8px;
      border-radius: 8px;
      font-size: 0.8rem;
    }



    footer .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
    }

    footer h3 {
      margin-bottom: 10px;
      color: #fff;
    }

    footer a {
      color: #cbd5f5;
      transition: color .2s;
    }

    footer a:hover {
      color: #fff;
    }

    .social-links {
      display: flex;
      gap: 10px;
      margin-top: 12px;
      flex-wrap: wrap;
    }

    .social-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      color: #fff;
      transition: all .2s;
    }

    .social-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
    }

    body.dark-mode {
      --bg: #0f172a;
      --card: #1e293b;
      --text: #e2e8f0;
      --muted: #94a3b8;
      --border: #334155;
    }

    body.dark-mode header {
      background: #020617;
    }

    body.dark-mode footer {
      background: #020617;
    }

    #favoritesBtn,
    #buyLaterBtn,
    #cartBtn,
    #profileBtn {
      display: none;
    }

    #themeToggle,
    #langToggle {
      padding: 8px 12px;
    }

    .hero-actions .btn-primary:last-child {
      background: #0f172a;
    }

    .card-body .btn-primary:last-child {
      background: #64748b;
      margin-top: 6px;
    }

    .grid-header .btn-primary {
      text-decoration: none;
    }

    .hero-card .meta {
      margin-top: 10px;
    }

    .hero-card h2 {
      margin-bottom: 8px;
    }