/**
 * Dec.Imagem Nova — Estilos adicionais para:
 * single-product, front-page, page-sobre, page-solucoes, page-contacto, page genérica
 * Adicionados ao final de bento.css para não duplicar o ficheiro original
 */

/* Breadcrumb */
.di-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-3);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.di-breadcrumb a { color: var(--gray-2); font-weight: 600; }
.di-breadcrumb a:hover { color: var(--dark); }
.di-breadcrumb-current { color: var(--dark); font-weight: 600; }

/* --- Layout do Produto Individual --- */
.di-page-product {
  padding-top: 48px;
  padding-bottom: 80px;
}
.di-page-product .di-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.di-product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
}
@media (max-width: 991px) {
  .di-page-product {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .di-page-product .di-container { padding: 0 24px; }
  .di-product-detail-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 64px; }
}

.di-gallery-card { cursor: zoom-in; background: #f6f6f6 !important; border: none !important; }
.di-product-main-img { max-height: 420px; width: auto; object-fit: contain; transition: transform .3s ease; mix-blend-mode: darken; }
.di-gallery-card:hover .di-product-main-img { transform: scale(1.03); }

.di-product-thumbs {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.di-product-thumbs::-webkit-scrollbar { display: none; }
.di-thumb { width: 80px; height: 80px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f6f6f6; transition: border-color .2s; }
.di-thumb:hover { border-color: var(--dark); }
.di-thumb img { max-width: 100%; object-fit: contain; mix-blend-mode: darken; }

.di-product-detail-top { margin-bottom: 16px; }
.di-product-detail-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-2); margin-bottom: 8px; }
.di-product-detail-name { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 24px; }
.di-product-detail-short-desc { font-size: 15px; color: var(--gray-1); line-height: 1.7; margin-bottom: 32px; }
.di-product-detail-short-desc p { margin-bottom: 8px; }

.di-product-detail-price { margin-bottom: 32px; }
.di-product-detail-price .amount { font-size: 36px; font-weight: 800; color: var(--dark); }
.di-price-tax { display: block; font-size: 12px; color: var(--gray-3); margin-top: 4px; }
.di-price-consult-lg { font-size: 18px; font-weight: 700; color: var(--gray-2); }

.di-product-detail-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-2);
  margin-bottom: 16px;
}
.di-meta-label { font-weight: 600; color: var(--gray-1); }
.di-meta-value { font-weight: 500; }

.di-product-detail-cta { margin-top: 40px; border-top: 1px solid var(--gray-5); padding-top: 32px; }
.di-btn-quote { font-size: 16px; padding: 17px 28px; }
.di-quote-note { font-size: 13px; color: var(--gray-2); margin-top: 12px; line-height: 1.5; }

/* WooCommerce add-to-cart em single-product */
.di-product-detail-cta .quantity { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.di-product-detail-cta .qty {
  width: 72px;
  text-align: center;
  border: 1px solid var(--gray-5);
  border-radius: var(--radius-inner);
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
}
.di-product-detail-cta .single_add_to_cart_button {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 17px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.di-product-detail-cta .single_add_to_cart_button:hover { background: #000; }

/* Specs table */
.di-product-specs { margin-top: 28px; }
.di-product-specs h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-2); margin-bottom: 12px; }
.di-specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.di-specs-table tr { border-bottom: 1px solid var(--gray-5); }
.di-specs-table tr:last-child { border-bottom: none; }
.di-specs-table th { text-align: left; padding: 10px 12px; font-weight: 600; color: var(--gray-1); width: 40%; background: var(--bg); border-radius: 0; }
.di-specs-table td { padding: 10px 12px; color: var(--dark); }

/* Full description */
.di-product-full-desc { margin-bottom: 64px; }
.di-product-full-desc h2 { margin-bottom: 24px; }
.di-product-desc-content { font-size: 15px; color: var(--gray-1); line-height: 1.8; }
.di-product-desc-content p { margin-bottom: 16px; }
.di-product-desc-content h3 { font-size: 20px; margin: 24px 0 10px; }
.di-product-desc-content ul { padding-left: 20px; margin-bottom: 16px; }

/* Related products */
.di-related-section { margin-top: 64px; margin-bottom: 80px; }
.di-related-title { font-size: 26px; font-weight: 800; margin-bottom: 32px; }
.di-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.di-related-card {
  background: #f6f6f6;
  border-radius: 20px;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.di-related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.di-related-img { height: 180px; background: transparent; display: flex; align-items: center; justify-content: center; padding: 16px; }
.di-related-img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: darken; }
.di-related-info { padding: 16px 18px; }
.di-related-info .di-product-name { font-size: 14px; margin-bottom: 8px; }
.di-related-info .di-product-price .amount { font-size: 16px; }

/* Homepage extras */
.di-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 0;
}
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.di-hero-wide, .di-hero-content { display: flex; flex-direction: column; }
.di-hero-title { font-size: 48px; font-weight: 900; letter-spacing: -.03em; line-height: 1.0; color: white; margin-bottom: 16px; }
.di-hero-subtitle { font-size: 15px; color: #94a3b8; line-height: 1.7; max-width: 520px; }
.di-badge-hero { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); color: #94a3b8; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 20px; }

.di-stat-number { font-size: 52px; font-weight: 900; letter-spacing: -.03em; color: white; line-height: 1; }
.di-stat-dark { color: var(--dark) !important; }
.di-stat-label { font-size: 13px; color: #94a3b8; margin-top: 8px; line-height: 1.3; }
.di-stat-label-dark { color: var(--gray-2) !important; }

.di-brands-mini-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.di-brand-chip { padding: 5px 14px; background: var(--bg); border: 1px solid var(--gray-5); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--dark); }
.di-btn-dark-small { display: inline-flex; background: var(--dark); color: white; padding: 10px 18px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; }

.di-section-gap { margin-top: 64px; }
.di-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.di-section-title { font-size: 28px; font-weight: 800; }
.di-section-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--dark); }
.di-cats-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.di-cats-scroll::-webkit-scrollbar { display: none; }
.di-cat-card { flex-shrink: 0; width: 180px; background: var(--white); border-radius: 20px; border: 1px solid rgba(0,0,0,.05); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.di-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.di-cat-img { height: 140px; overflow: hidden; }
.di-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.di-cat-name { font-size: 14px; font-weight: 700; padding: 12px 14px 4px; }
.di-cat-count { font-size: 12px; color: var(--gray-3); padding: 0 14px 12px; }
.di-cta-card { min-height: 280px; display: flex; align-items: center; margin-bottom: 80px; }
.di-card-darker { background: linear-gradient(135deg, #0f172a, #111827); }

/* About */
.di-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.di-team-card { display: flex; flex-direction: column; gap: 0; background: var(--white); border-radius: 20px; border: 1px solid rgba(0,0,0,.05); overflow: hidden; transition: transform .2s; }
.di-team-card:hover { transform: translateY(-4px); }
.di-team-photo-wrap { height: 260px; overflow: hidden; background: var(--bg); }
.di-team-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .4s ease; }
.di-team-card:hover .di-team-photo { filter: grayscale(0); }
.di-team-photo-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; background: var(--gray-6); }
.di-team-info { padding: 20px 24px; }
.di-team-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.di-team-role { font-size: 13px; color: var(--gray-2); font-weight: 600; margin-bottom: 8px; }
.di-team-email { font-size: 13px; color: var(--dark); text-decoration: underline; }

/* Contact */
.di-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.di-contact-form-card h2 { margin-bottom: 32px; }

/* Legal / Generic page */
.di-legal-content { padding: 48px; }
.di-legal-content h2 { font-size: 22px; margin: 32px 0 12px; }
.di-legal-content h3 { font-size: 17px; margin: 24px 0 8px; }
.di-legal-content p, .di-legal-content li { font-size: 15px; color: var(--gray-1); line-height: 1.8; margin-bottom: 12px; }
.di-legal-content ul, .di-legal-content ol { padding-left: 24px; margin-bottom: 16px; }
.di-legal-content a { color: var(--dark); font-weight: 600; text-decoration: underline; }

/* Page content block from WP editor */
.di-page-content-block { padding: 40px 48px; }
.di-page-content-block p { font-size: 15px; line-height: 1.8; color: var(--gray-1); margin-bottom: 14px; }
.di-page-content-block h2 { font-size: 24px; margin-bottom: 16px; margin-top: 32px; }

/* Responsive extras */
@media (max-width: 1024px) {
  .di-product-detail-grid { grid-template-columns: 1fr; }
  .di-related-grid { grid-template-columns: repeat(2, 1fr); }
  .di-team-grid { grid-template-columns: repeat(2, 1fr); }
  .di-contact-grid { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4, .col-5, .col-6 { grid-column: span 6; }
  .col-7, .col-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .di-hero-title { font-size: 32px; }
  .di-related-grid { grid-template-columns: 1fr 1fr; }
  .di-team-grid { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 { grid-column: span 12; }
  .di-legal-content, .di-page-content-block { padding: 28px 20px; }
}

/* CF7 Contact Form Styling */
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form select,
.wpcf7 form textarea {
    width: 100% !important;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #0f172a;
    box-sizing: border-box !important;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    margin-bottom: 0;
}
.wpcf7 form input:focus,
.wpcf7 form select:focus,
.wpcf7 form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.wpcf7 form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23cbd5e1%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
}
.wpcf7 form textarea {
    resize: vertical;
    min-height: 120px;
}
.wpcf7 form input.wpcf7-submit {
    background: #0f172a;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    width: auto !important;
}
.wpcf7 form input.wpcf7-submit:hover {
    background: #1e293b;
    transform: translateY(-2px);
}
.wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}


/* Override for Cart and Checkout Cards (User Request: flat cards, no shadow effects) */
.di-page-cart .di-card,
.woocommerce-checkout .di-card,
.di-page-checkout .di-card {
  box-shadow: none !important;
}

.di-page-cart .di-card:hover,
.woocommerce-checkout .di-card:hover,
.di-page-checkout .di-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* User Request: Left-justify labels and right-justify values in checkout table */
#order_review table.shop_table th {
  text-align: left !important;
}
#order_review table.shop_table td {
  text-align: right !important;
}

/* WooCommerce My Account Styling (Bento Style) */
.woocommerce-account .eco-card {
  padding: 40px !important;
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .woocommerce-account .eco-card {
    flex-direction: column;
    padding: 24px !important;
    gap: 32px;
  }
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 250px;
  width: 100%;
  float: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  width: 100%;
  float: none !important;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-right: 1px solid #e2e8f0;
}
.woocommerce-MyAccount-navigation ul li {
  margin-bottom: 0;
  border-bottom: 1px solid #f1f5f9;
}
.woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 14px 16px 14px 0;
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  color: #0f172a !important;
  background: transparent !important;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
  font-weight: 800;
}
/* WooCommerce My Account Flat Styling */
.woocommerce-account .woocommerce {
  display: flex;
  flex-direction: row;
  gap: 64px;
  align-items: flex-start;
  margin-top: 80px;
}
@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 32px;
  }
}

/* Fix ugly fieldset in My Account (Password Change) */
.woocommerce-EditAccountForm fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 32px 0 0 0 !important;
    background: transparent !important;
}
.woocommerce-EditAccountForm fieldset legend {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    padding: 0;
    margin-bottom: 16px;
}

/* Form Styling for My Account */
.woocommerce-account form input[type="text"],
.woocommerce-account form input[type="password"],
.woocommerce-account form input[type="email"],
.woocommerce-account form select,
.woocommerce-account form textarea {
    width: 100% !important;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: #0f172a;
    box-sizing: border-box !important;
    background: #ffffff;
    transition: border-color 0.2s;
    outline: none;
    margin-bottom: 16px;
}
.woocommerce-account form input:focus {
    border-color: #0f172a;
}
.woocommerce-account form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}
.woocommerce-account form .button {
    background: #0f172a;
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.woocommerce-account form .button:hover {
    background: #1e293b;
}
.woocommerce-account h3 {
    margin-bottom: 24px;
    font-size: 22px;
    color: #0f172a;
}
.di-page-account .di-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 32px; }
.di-login-flat, .di-register-flat { padding: 0; background: transparent; border: none; box-shadow: none; }
.di-register-flat ul { list-style: none; padding: 0; margin-bottom: 24px; }
.di-register-flat ul li { margin-bottom: 12px; color: #475569; }
.di-register-flat ul li::before { content: '\2714 '; color: #0f172a; font-weight: 700; margin-right: 8px; }
.woocommerce-account #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 32px; }
@media (max-width: 768px) { .woocommerce-account #customer_login { grid-template-columns: 1fr; gap: 48px; } }
.woocommerce-account #customer_login h2 { font-size: 22px; color: #0f172a; margin-bottom: 24px; }

/* WooCommerce Addresses Styling */
.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 24px;
}
.woocommerce-Addresses .col-1,
.woocommerce-Addresses .col-2 {
    grid-column: span 1 !important;
}
@media (max-width: 768px) {
    .woocommerce-Addresses { grid-template-columns: 1fr; }
}
.woocommerce-Address {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    float: none !important;
    width: 100% !important;
}
.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.woocommerce-Address-title h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a;
}
.woocommerce-Address-title .edit {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: transparent;
    color: #0f172a !important;
    border: 1px solid #94a3b8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: inherit;
}
.woocommerce-Address-title .edit:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
}
.woocommerce-Address address {
    font-style: normal;
    color: #475569;
    line-height: 1.6;
}

