/*
Theme Name: Diamond Pharma
Theme URI: https://www.diamond-pharma.net/
Author: Diamond Pharma Group
Description: Native WordPress and WooCommerce theme rebuilt from the supplied Diamond Pharma website backup. Includes automatic content and product import, contact forms and product-code verification.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Requires Plugins: woocommerce
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diamond-pharma
Tags: e-commerce, custom-logo, featured-images, one-column, responsive-layout
*/

/*
 * The original visual layer is loaded from assets/css/legacy.css.
 * The rules below provide native WordPress templates, accessibility and
 * compatibility with current WooCommerce versions.
 */

:root {
    --diamond-blue: #0b83c6;
    --diamond-blue-dark: #076a9f;
    --diamond-navy: #172b3a;
    --diamond-text: #33434f;
    --diamond-light: #f3f8fb;
    --diamond-border: #dce7ed;
    --diamond-danger: #a52727;
    --diamond-success: #1d6d42;
    --diamond-warning: #8a5500;
}

html { overflow-x: hidden; scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--diamond-text);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}
body, button, input, textarea, select { font-family: "Open Sans", sans-serif; }
h1, h2, h3, h4, h5, h6, .navbar-nav, .button, button, input[type="submit"] {
    font-family: "Barlow", "Open Sans", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--diamond-blue-dark); }
a:hover { color: var(--diamond-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #f1a51f;
    outline-offset: 3px;
}
.screen-reader-text, .skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus, .screen-reader-text:focus {
    top: 8px;
    left: 8px;
    z-index: 100;
    display: block;
    width: auto;
    height: auto;
    padding: 12px 18px;
    margin: 0;
    clip: auto;
    color: #fff;
    background: var(--diamond-navy);
}
.container { max-width: 1170px; }
#primary { min-height: 45vh; }
.content-area { padding: 64px 0; }
.entry-content { font-size: 16px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content img { max-width: 100%; }

/* Header */
.header2 { position: relative; z-index: 20; background: #2f383d; }
.header2 .navbar, nav.header2, header .navbar-default { min-height: 86px; margin: 0; border: 0; border-radius: 0; background: #2f383d; }
.header2 .container > .row { display: flex; align-items: center; }
.header2 .navbar-header { display: flex; align-items: center; min-height: 86px; }
.header2 .logo img { display: block; width: auto; max-width: 240px; max-height: 64px; }
.header2 .navbar-collapse { margin-left: auto; }
.header2 .navbar-collapse.is-open { display: block; visibility: visible; }
.header2 .navbar-nav, .header2 .navbar-nav > .menu-menu-1-container > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.header2 .navbar-nav li { list-style: none; }
body .header2 #navbar .menu > .menu-item > a {
    display: block;
    padding: 12px 11px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
}
body .header2 #navbar .menu > .menu-item > a:hover,
body .header2 #navbar .menu > .current-menu-item > a,
body .header2 #navbar .menu > .current_page_item > a { color: #ffc702 !important; }
.header2 .navbar-toggle {
    display: none;
    min-width: 48px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--diamond-border);
    color: var(--diamond-navy);
    background: var(--diamond-light);
    cursor: pointer;
}
.header2 .navbar-toggle span { margin-right: 6px; }
.header2 .navbar-toggle .fa-bars::before { content: "☰"; font-style: normal; }

/* Hero and breadcrumbs */
.homeSlider { position: relative; overflow: hidden; background: #edf7fc; }
.homeSlider .box-description { position: relative; z-index: 2; }
.homeSlider .box-description-details { display: flex; align-items: center; min-height: 540px; }
.homeSlider .slick-heading { color: var(--diamond-navy); }
.homeSlider h1.slick-heading, .homeSlider h3.slick-heading { margin-top: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; }
.homeSlider p.slick-heading { max-width: 62ch; font-family: "Open Sans", sans-serif; font-size: 16px; font-weight: 400; }
.homeSlider .slick-button, .diamond-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: var(--diamond-blue);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.homeSlider a.slick-button { color: #000 !important; background: #ffc702; border-radius: 30px; }
.homeSlider a.slick-button:hover { color: #fff !important; background: #192958; }
body a.diamond-button { color: #fff; }
body a.diamond-button:hover { color: #fff; background: var(--diamond-blue-dark); }
.homeSlider .image-box img { display: block; width: 100%; }
.header-title-breadcrumb {
    padding: 38px 0;
    color: #fff;
    background: var(--diamond-navy);
}
.header-title-breadcrumb h1 { margin: 0 0 6px; color: #fff; font-size: 36px; }
.header-title-breadcrumb .breadcrumbs, .header-title-breadcrumb .breadcrumbs a { color: #d9edf8; }

/* Native cards and post grids */
.blog-posts .row, ul.products.row { display: flex; flex-wrap: wrap; gap: 28px; margin-left: 0; margin-right: 0; }
.blog-posts .row::before, .blog-posts .row::after, ul.products.row::before, ul.products.row::after { display: none; }
.blog-posts .row > [class*="col-"] { float: none !important; clear: none !important; width: calc(50% - 14px); padding: 0; margin: 0 !important; }
.blog_custom {
    height: 100%;
    padding: 26px;
    border: 1px solid var(--diamond-border);
    background: #fff;
}
.blog_custom .post-name { margin: 0 0 12px; font-size: 23px; line-height: 1.25; }
.blog_custom .post-name a { color: var(--diamond-navy); text-decoration: none; }
.blog_custom .post-name a:hover { color: var(--diamond-blue); }
.blog_custom .warning-name { margin: 0 0 6px; color: var(--diamond-danger); text-transform: uppercase; }
.post-meta { margin-bottom: 16px; color: #5f6e78; font-size: 14px; }
.button-blog a, .more-link {
    display: inline-block;
    padding: 9px 17px;
    color: #fff;
    background: var(--diamond-blue);
    font-weight: 700;
    text-decoration: none;
}
.button-blog a:hover, .more-link:hover { color: #fff; background: var(--diamond-blue-dark); }
.article-content-single { max-width: 850px; margin: 0 auto; }
.article-content-single > h1 { margin-top: 0; color: var(--diamond-navy); }
.article-content img { margin: 20px 0; }
.article-content blockquote { margin: 0 0 24px; padding: 0; border: 0; }
.navigation.pagination { margin-top: 40px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 6px 12px;
    border: 1px solid var(--diamond-border);
    text-decoration: none;
}
.navigation.pagination .current { color: #fff; background: var(--diamond-blue); }

/* Product grids */
ul.products { padding: 0; list-style: none; }
ul.products.row li.product {
    float: none !important;
    clear: none !important;
    width: calc(25% - 21px);
    padding: 0;
    margin: 0 !important;
}
.woocommerce_product__wrap_box {
    height: 100%;
    border: 1px solid var(--diamond-border);
    background: #fff;
    transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.woocommerce_product__wrap_box:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23,43,58,.09); }
.woocommerce-loop-product-element-image a { display: block; }
.woocommerce-product-list-header { display: flex; align-items: center; justify-content: center; min-height: 235px; padding: 18px; }
.woocommerce-product-list-header img { width: auto; max-height: 220px; margin: 0 auto; }
.woocommerce-loop-product-element { padding: 0 20px 22px; text-align: center; }
.woocommerce-loop-product__title, .woocommerce-loop-product__title a {
    margin: 0 0 14px;
    color: var(--diamond-navy);
    font-size: 20px;
    line-height: 1.3;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}
.woocommerce-loop-product__title a {
    display: block;
    width: auto;
    max-width: none;
    color: inherit;
    text-decoration: none;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}
.woocommerce-add-to-cart-button .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: var(--diamond-blue);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.woocommerce-add-to-cart-button .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { color: #fff; background: var(--diamond-blue-dark); }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { margin-bottom: 36px; }
.woocommerce div.product .product_title { color: var(--diamond-navy); font-size: 38px; }
.woocommerce div.product .product_meta a { text-decoration: none; }
.woocommerce table.shop_table { border-collapse: collapse; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-top-color: var(--diamond-blue);
    background: var(--diamond-light);
}
.woocommerce-error { border-top-color: var(--diamond-danger); }

/* Forms */
.diamond-form-wrap { max-width: 720px; padding: 30px; border: 1px solid var(--diamond-border); background: #fff; }
.diamond-form .form-row { margin-bottom: 18px; }
.diamond-form label:not(.checkbox-label) { display: block; margin-bottom: 6px; font-weight: 700; }
.diamond-form input[type="text"], .diamond-form input[type="email"], .diamond-form input[type="tel"], .diamond-form textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #b8c8d2;
    border-radius: 2px;
    color: var(--diamond-text);
    background: #fff;
    box-sizing: border-box;
}
.diamond-form textarea { min-height: 150px; resize: vertical; }
.diamond-form .checkbox-label { display: flex; align-items: flex-start; gap: 9px; }
.diamond-form .checkbox-label input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; }
.diamond-form .diamond-submit {
    min-height: 46px;
    padding: 11px 25px;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: var(--diamond-blue);
    font-weight: 700;
    cursor: pointer;
}
.diamond-form .diamond-submit:hover { background: var(--diamond-blue-dark); }
.diamond-form-feedback { padding: 14px 17px; margin: 0 0 22px; border-left: 4px solid var(--diamond-blue); background: var(--diamond-light); }
.diamond-form-feedback.success { border-color: var(--diamond-success); color: var(--diamond-success); }
.diamond-form-feedback.error { border-color: var(--diamond-danger); color: var(--diamond-danger); }
.diamond-form-feedback.warning { border-color: var(--diamond-warning); color: var(--diamond-warning); }
.diamond-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 42px; align-items: start; }
.contact-layout img { width: 100%; }
.code-result strong { display: block; margin-bottom: 5px; }
.admin-note { padding: 14px 18px; background: #fff8df; border: 1px solid #ead792; }

/* Legacy builder content made responsive without WPBakery */
.vc_row::before, .vc_row::after, .row::before, .row::after { display: table; content: " "; }
.vc_row::after, .row::after { clear: both; }
.home-section2.vc_row-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.home-section2 > .wpb_column { flex: 1 1 420px; padding: 0; }
.vc_single_image-wrapper { max-width: 100%; }
.logos-clients ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px; padding: 26px 0 0; list-style: none; }
.logos-clients li { margin: 0; }
.logos-clients img { max-height: 90px; width: auto; }

/* Footer */
footer.footer1 { margin-top: 56px; background: var(--diamond-navy); }
footer.footer1 .footer { padding: 24px 0; }
footer.footer1 .copyright { margin: 0; color: #e4eef4; text-align: center; }

/* Dependency screen */
.diamond-dependency { max-width: 760px; margin: 70px auto; padding: 36px; border: 1px solid var(--diamond-border); background: #fff; }
.diamond-dependency h1 { margin-top: 0; }

@media (max-width: 1024px) {
    .header2 .navbar-nav a { padding: 10px 7px; font-size: 13px; }
    ul.products.row li.product { width: calc(33.333% - 19px); }
}
@media (max-width: 767px) {
    .container { width: auto; padding-right: 20px; padding-left: 20px; }
    .content-area { padding: 42px 0; }
    .header2 .container > .row { display: block; }
    .header2 .navbar-header { justify-content: space-between; padding: 0; }
    .header2 .navbar-toggle { display: inline-flex; align-items: center; }
    .header2 .navbar-collapse { display: none; width: 100%; padding: 0 0 16px; }
    .header2 .navbar-collapse.is-open { display: block; }
    .header2 .navbar-nav, .header2 .navbar-nav > .menu-menu-1-container > ul { display: block; }
    .header2 .navbar-nav a { min-height: 44px; padding: 12px 6px; font-size: 15px; border-bottom: 1px solid var(--diamond-border); }
    .homeSlider .box-description-details { display: block; min-height: 0; padding-top: 46px; }
    .homeSlider h3.slick-heading { font-size: 34px; }
    .homeSlider .box-description-details-details2 { margin-top: 24px; }
    .blog-posts .row { display: block; }
    .blog-posts .row > [class*="col-"] { width: 100%; margin-bottom: 22px; }
    ul.products.row { gap: 22px; }
    ul.products.row li.product { width: calc(50% - 11px); }
    .woocommerce-product-list-header { min-height: 170px; padding: 10px; }
    .woocommerce-product-list-header img { max-height: 155px; }
    .woocommerce-loop-product-element { padding: 0 12px 16px; }
    .woocommerce-loop-product__title { font-size: 17px; }
    .contact-layout { grid-template-columns: 1fr; }
    .home-section2.vc_row-flex { display: block; }
    .home-section2 > .wpb_column { margin-bottom: 28px; }
    .diamond-form-wrap { padding: 22px; }
}
@media (max-width: 420px) {
    ul.products.row { display: block; }
    ul.products.row li.product { width: 100%; margin-bottom: 22px; }
    .woocommerce-product-list-header { min-height: 230px; }
    .woocommerce-product-list-header img { max-height: 215px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
