/*
Theme Name: Addest Technovation
Theme URI: http://www.addest.com
Author: Addest Technovation
Author URI: http://www.addest.com
Description: Custom WordPress theme for Addest Technovation
Version: 6.3.9
License: Private
Text Domain: addest
*/

/* ============================================
   Colors sampled from original addest.com
   ============================================ */
:root {
    --teal: #1f8999;
    --teal-dark: #1a7a8a;
    --teal-darker: #156a7a;
    --orange: #d57a42;
    --orange-hover: #c06d38;
    --red-slogan: #f04f54;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #cccccc;
    --inner-max: 1140px;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--teal);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ============================================
   Site wrapper: white box centered on teal body
   ============================================ */
.site-wrapper {
    max-width: var(--inner-max);
    margin: 0 auto;
    padding: 25px 0;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.15);
}

.site-header,
.main-navigation,
.site-footer,
.site-content,
.sub-navigation {
    width: 100%;
    background-color: var(--white);
}

.header-inner,
.nav-inner,
.sub-nav-inner,
.content-inner,
.home-hero,
.footer-inner {
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
    max-width: 100%;
}

/* ============================================
   Header
   ============================================ */
.site-header { padding-top: 10px; padding-bottom: 10px; }

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    text-decoration: none;
    display: block;
    line-height: 0;
}
.site-logo a:hover { text-decoration: none; }

.site-logo img {
    max-height: 90px;
    width: auto;
    height: 90px;
    display: block;
}

/* SVG logo fix */
.site-logo .custom-logo-link {
    display: block;
    line-height: 0;
}
.site-logo .custom-logo,
.site-logo img[src$=".svg"] {
    width: auto;
    height: 90px;
    max-height: 90px;
    max-width: 350px;
    display: block;
    margin-bottom: 0;
}

.logo-text-link {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 42px;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
    display: block;
}

.logo-tagline {
    font-size: 14px;
    color: var(--text);
    margin-top: 2px;
}

.header-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    padding-top: 5px;
}

.header-slogan {
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase;
    color: #f04f54;
    letter-spacing: 0.3px;
}

/* ============================================
   Main Navigation (inside header-right)
   ============================================ */
.main-navigation { padding-bottom: 0; }

.main-nav {
    list-style: none;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.main-nav li a {
    display: block;
    padding: 6px 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--white);
    background-color: #1F8999;
    border: 1px solid #1F8999;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.main-nav li a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current-menu-parent > a,
.main-nav li.current-menu-ancestor > a {
    background-color: var(--orange);
    text-decoration: none;
}

/* ============================================
   Sub Navigation Tabs
   ============================================ */
.sub-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sub-nav {
    list-style: none;
    display: flex;
    gap: 2px;
    padding-right: 15px;
}

.sub-nav li a {
    display: block;
    padding: 6px 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--white);
    background-color: #1F8999;
    border: 1px solid #1F8999;
    border-radius: 4px 4px 0 0;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.sub-nav li a:hover,
.sub-nav li.active a,
.sub-nav li.current a,
.sub-nav li.current-menu-item a {
    background-color: var(--orange);
    text-decoration: none;
}

/* ============================================
   Content Area
   ============================================ */
.site-content { padding-bottom: 30px; }

/* ============================================
   Homepage
   ============================================ */
.home-hero {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 30px;
}

.home-hero-text {
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #1F8999;
    margin-bottom: 20px;
    line-height: 1.4;
}

.slider-container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.home-slider {
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
}

.home-slider img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}
.slider-slide:first-child {
    position: relative;
}
.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-nav { text-align: center; margin-top: 12px; }

.slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    margin: 0 3px;
    cursor: pointer;
    border: none;
    transition: background 0.5s, transform 0.3s;
}
.slider-dot.active { background: var(--white); transform: scale(1.2); }

/* ============================================
   Product Grid
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.content-box {
    background: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0 0 4px 4px;
    padding: 30px 40px;
    min-height: 300px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    max-width: 100%;
    box-sizing: border-box;
}

.content-box--no-tabs { border-radius: 4px; }

.product-item {
    text-align: center;
    padding: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.product-item:hover img { border-color: var(--teal); }

.product-item a {
    text-decoration: none;
    color: var(--teal-dark);
    display: block;
}

.product-item img {
    border: 1px solid var(--border);
    padding: 8px;
    background: var(--white);
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.product-item:hover img { border-color: var(--teal); }

.product-item .product-name {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* ============================================
   Tab / Page Content
   ============================================ */
.content-box h2 {
    font-family: Georgia, serif;
    font-size: 18px;
    margin: 20px 0 10px;
}
.content-box h2:first-child { margin-top: 0; }

.content-box p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-box ul {
    padding-left: 25px;
    margin-bottom: 12px;
}

.content-box ul li {
    line-height: 1.8;
    margin-bottom: 4px;
}

/* ============================================
   Contact
   ============================================ */
.contact-outer {
    border: 4px solid var(--teal);
    display: flex;
    min-height: 480px;
    background: var(--white);
    box-sizing: border-box;
    max-width: 100%;
}

.contact-form-side {
    flex: 1;
    padding: 30px 35px;
    min-width: 0;
}

.contact-form-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.contact-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    margin-bottom: 12px;
    height: 200px;
    resize: vertical;
    box-sizing: border-box;
}

.contact-submit {
    padding: 10px 30px;
    background: var(--teal-dark);
    color: var(--white);
    font-family: Verdana, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-submit:hover { background: var(--orange); }

.contact-info-side {
    flex: 0 0 340px;
    background: var(--teal);
    color: var(--white);
    padding: 30px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-info-title {
    color: var(--white);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 18px;
}

.contact-info-block {
    margin-bottom: 20px;
}

.contact-info-block p {
    color: var(--white);
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 2px;
}

.contact-info-block a {
    color: var(--white);
    text-decoration: underline;
}
.contact-info-block a:hover { color: #ffe0c0; }

.contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-form { flex: 1; max-width: 500px; }

.contact-form h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    margin-bottom: 12px;
    background: var(--white);
}

.contact-form textarea { height: 200px; resize: vertical; }

.contact-form .submit-btn {
    padding: 10px 25px;
    background: var(--teal-dark);
    color: var(--white);
    font-family: Verdana, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form .submit-btn:hover { background: var(--orange); }

.contact-info {
    flex: 0 0 350px;
    background: var(--teal);
    color: var(--white);
    padding: 30px;
    border-radius: 4px;
}

.contact-info h3 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--white);
}

.contact-info p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 4px;
    color: var(--white);
}

.contact-info a { color: var(--white); text-decoration: underline; }
.contact-info a:hover { color: #ffe0c0; }

.contact-info .contact-section { margin-bottom: 18px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    padding-top: 18px;
    padding-bottom: 20px;
    border-top: 1px solid #ddd;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left { font-size: 12px; color: var(--text); }

.footer-left a { color: #2266aa; text-decoration: underline; }
.footer-left a:hover { color: var(--orange); }

.footer-links { margin-bottom: 4px; }

.footer-copyright { font-size: 11px; color: var(--text-light); }

.footer-right { text-align: right; }

.footer-brand img { max-width: 250px; }

.footer-brand-text {
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: bold;
    color: var(--orange);
    line-height: 1;
}

.footer-brand-tagline {
    font-size: 13px;
    color: var(--orange);
    font-weight: bold;
}

/* ============================================
   Product Detail (single product)
   ============================================ */
.product-detail-title {
    font-family: Georgia, serif;
    font-size: 22px;
    color: var(--teal-dark);
    margin-bottom: 20px;
}

.product-detail-image {
    text-align: center;
    margin-bottom: 25px;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

.product-detail-content {
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-detail-content p { margin-bottom: 12px; }
.product-detail-content ul { padding-left: 25px; margin-bottom: 12px; }
.product-detail-content li { margin-bottom: 4px; }

.product-section-title {
    font-family: Georgia, serif;
    font-size: 18px;
    color: var(--teal-dark);
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--teal);
}

/* Specifications Table */
.product-specs { margin-bottom: 30px; }

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.specs-table th {
    background: var(--teal);
    color: var(--white);
    padding: 10px 15px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.specs-table tr:nth-child(even) td { background: #f9f9f9; }
.specs-table tr:hover td { background: #f0f7f7; }

/* Experiments */
.product-experiments { margin-bottom: 30px; }

.experiment-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.experiment-item:last-child { border-bottom: none; }

.experiment-title {
    font-family: Georgia, serif;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
}

.experiment-image {
    margin-bottom: 12px;
}

.experiment-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 3px;
}

.experiment-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Category description */
.category-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* No image placeholder */
.product-no-image {
    width: 100%;
    height: 160px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}
.product-no-image span { color: #999; font-size: 11px; }

.product-back-link { margin-top: 25px; padding-top: 15px; border-top: 1px solid #eee; }
.product-back-link a {
    color: var(--teal-dark);
    font-weight: bold;
    font-size: 13px;
}
.product-back-link a:hover { color: var(--orange); }

/* ============================================
   Datalogger Full-Width Cards
   ============================================ */
.product-grid-1col {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    max-width: 100%;
    margin: 0 auto;
}

.product-grid-1col .product-item {
    padding: 0;
}

.product-grid-1col .product-item img {
    height: auto;
    max-height: none;
    padding: 0;
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border: none;
}

.product-grid-1col .product-item .product-name {
    font-size: 14px;
    margin-top: 12px;
}

/* ============================================
   Downloads Page
   ============================================ */
.page-title-dl {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    color: var(--teal-dark);
    margin-bottom: 8px;
}
.page-subtitle-dl {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

@keyframes dlCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dl-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: box-shadow 0.3s, transform 0.3s;
    animation: dlCardIn 0.5s ease-out both;
}
.dl-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dl-card-header {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dl-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.dl-card-version {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 12px;
}

.dl-card-body {
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.dl-card-icon {
    flex: 0 0 70px;
    height: 70px;
    background: #f0f7f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.dl-card-info {
    flex: 1;
    min-width: 0;
}
.dl-card-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 12px;
}
.dl-card-desc p { margin-bottom: 8px; }

.dl-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.dl-platform-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e8f4f6;
    color: var(--teal-dark);
}

.dl-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

.dl-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.dl-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--teal);
    border-radius: 6px;
    background: #fff;
    color: var(--teal);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.dl-btn:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(31,137,153,0.3);
    text-decoration: none;
}
.dl-flag { font-size: 18px; line-height: 1; }
.dl-arrow { opacity: 0.6; margin-left: 4px; }
.dl-btn:hover .dl-arrow { opacity: 1; }

.dl-note {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: #999;
    line-height: 1.7;
}
.dl-note a { color: var(--teal); }

@media (max-width: 768px) {
    .dl-card-body { flex-direction: column; }
    .dl-card-icon { flex: none; width: 50px; height: 50px; font-size: 24px; }
    .dl-buttons { gap: 6px; }
    .dl-btn { padding: 6px 12px; font-size: 12px; }
}

/* ============================================
   WordPress helpers
   ============================================ */
.aligncenter { display: block; margin: 0 auto; text-align: center; }
.alignleft { float: left; margin: 0 20px 15px 0; }
.alignright { float: right; margin: 0 0 15px 20px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .site-wrapper { margin: 0 10px; box-shadow: none; padding: 15px 0; }
    .header-inner { flex-direction: column; align-items: center; text-align: center; }
    .header-right { align-items: center; text-align: center; margin-top: 10px; width: 100%; align-self: auto; }
    .main-nav { flex-wrap: wrap; justify-content: center; }
    .sub-nav { flex-wrap: nowrap; }
    .sub-nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .product-grid-1col { grid-template-columns: 1fr !important; max-width: 100%; }
    .content-box { padding: 25px 20px; }
    .contact-outer { flex-direction: column; min-height: auto; }
    .contact-form-side { padding: 25px 20px; }
    .contact-info-side { flex: none; width: 100%; padding: 25px 20px; }
    .contact-wrapper { flex-direction: column; }
    .contact-info { flex: none; width: 100%; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
    .footer-right { text-align: center; }
    .site-logo img,
    .site-logo .custom-logo,
    .site-logo img[src$=".svg"] { height: 70px; max-height: 70px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .product-grid-1col { grid-template-columns: 1fr !important; }
    .product-item { padding: 4px; }
    .product-item img { height: auto; aspect-ratio: 1/1; padding: 4px; }
    .product-item .product-name { font-size: 9px; }
    .main-nav { gap: 3px; }
    .main-nav li a { padding: 6px 10px; font-size: 10px; }
    .sub-nav li a { padding: 6px 12px; font-size: 9px; }
    .home-hero-text { font-size: 18px; }
    .content-box { padding: 20px 15px; }
    .header-inner, .nav-inner, .sub-nav-inner, .content-inner, .home-hero, .footer-inner {
        padding-left: 12px; padding-right: 12px;
    }
}

@media (max-width: 360px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid-1col { grid-template-columns: 1fr !important; }
    .product-item img { height: auto; aspect-ratio: 1/1; }
    .product-item .product-name { font-size: 10px; }
}

/* ============================================
   Product Popup Modal
   ============================================ */
@keyframes modalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalContentIn {
    0% { opacity: 0; transform: scale(0.85) translateY(40px); }
    60% { opacity: 1; transform: scale(1.02) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.product-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
    overflow-y: auto;
}

.product-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
    animation: modalOverlayIn 0.3s ease-out;
}

.product-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    max-width: 900px;
    width: calc(100vw - 40px);
    border-radius: 6px;
    padding: 35px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    animation: modalContentIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    z-index: 3;
    transition: color 0.2s, transform 0.2s;
}
.product-modal-close:hover { color: #333; transform: scale(1.2); }

.product-modal-content .product-detail-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    color: var(--teal-dark);
    margin: 0 0 20px;
    padding-right: 40px;
}

.product-modal-content .product-detail-image {
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    max-width: 100%;
}
.product-modal-content .product-detail-image img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border: none;
    object-fit: contain;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

.product-modal-content .product-detail-content {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px;
}
.product-modal-content .product-detail-content p { margin-bottom: 10px; }

.product-modal-content .product-section-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: var(--teal-dark);
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--teal);
}

.product-modal-content .specs-table { width: 100%; border-collapse: collapse; table-layout: fixed; word-wrap: break-word; }
.product-modal-content .specs-table th {
    background: var(--teal);
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
}
.product-modal-content .specs-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.product-modal-content .specs-table tr:nth-child(even) td { background: #f9f9f9; }

.product-modal-content .experiment-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.product-modal-content .experiment-title { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.product-modal-content .experiment-image img { max-width: 100%; max-height: 250px; border: 1px solid #ddd; }
.product-modal-content .experiment-description { font-size: 13px; line-height: 1.6; color: var(--text-light); }

@media (max-width: 768px) {
    .product-modal { padding: 10px; }
    .product-modal-content { padding: 20px; }
}
