/* ===== TOYOLAC PRODUCT PAGE ===== */

/* Overview */
.toyolac-overview {
  padding: 60px 0;
  text-align: center;
}

.toyolac-overview h2 {
  margin: 0;
  margin-bottom: 24px;
  line-height: 1.4;
}

.toyolac-overview > .container > p {
  max-width: 1000px;
  margin: 0 auto 16px;
}

.overview-image {
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
}

.overview-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 450px;
}

.overview-note {
  font-size: 0.9rem !important;
  color: var(--color-text-light) !important;
  max-width: 800px;
  margin: 0 auto 12px !important;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.feature-card span {
  font-weight: bold;
  line-height: 1.4;
  text-align: left;
}

/* ===== PRODUCT LIBRARY ===== */
.product-library {
  background: #000;
  padding: 60px 0;
}

.library-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.product-library h2 {
  text-align: center;
  color: var(--color-white);
  margin: 0;
  margin-bottom: 32px;
}

/* Main Nav Tabs */
.library-main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.main-tab {
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.main-tab:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
}

.main-tab.active {
  background: var(--color-white);
  color: var(--color-dark);
}

/* Sub Nav */
.library-sub-nav {
  display: flex;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sub-tab {
  padding: 6px 0;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-family);
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.sub-tab:hover {
  color: rgba(255,255,255,0.8);
}

.sub-tab.active {
  color: var(--color-white);
  font-weight: 700;
  border-bottom-color: var(--color-white);
}

/* Product Cards Grid */
.library-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.grade-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.grade-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.grade-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grade-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grade-card-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
}

.grade-card-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
}

.grade-card-compare {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #ebebeb;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.grade-card-compare.active {
  background: var(--color-dark);
  color: var(--color-white);
}

.grade-card-compare:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.grade-card-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  min-height: 135px;
}

.grade-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #ebebeb;
  border-radius: 10px;
  font-weight: 500;
  color: var(--color-text);
  width: fit-content;
}

/* Documents section in card */
.grade-card-docs {
  margin-top: 16px;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 16px;
  height: 100%;
}

.grade-card-docs-label {
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.grade-card-docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-link {
  display: inline-block;
  padding: 8px 18px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.doc-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Applications Section in Library */
.library-applications {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px 28px;
}

.library-app-group-label {
  display: block;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.library-applications h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-link {
  display: inline-block;
  padding: 10px 20px;
  background: #ebebeb;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.app-link:hover {
  background: #ddd;
  color: var(--color-dark);
}

/* ===== TOYOLAC APPLICATIONS SECTION ===== */
.toyolac-applications {
  padding: 80px 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-card {
  background: var(--color-bg);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.app-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

.app-card-body {
  padding: 20px 24px 24px;
}

.app-card-body span {
  color: var(--color-text-light);
  display: block;
  margin-bottom: 4px;
}

.app-card-body h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
}

.app-card-body:hover h3 {
  text-decoration: underline !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .library-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 688px){

  .features-grid {
    grid-template-columns: 1fr 1fr;
    /* gap: 12px; */
  }

 .library-products {
    grid-template-columns: 1fr;
    margin : 20px 8%;
  }

  .library-applications {
     margin : 20px 8%;
  }

   .app-grid {
    grid-template-columns: 1fr;
  }
  
  .toyolac-applications {
    padding: 40px 8%;
  }
}
