/*
Theme Name: codepencil
Theme URI: https://example.com/codepencil
Author: Your Name
Author URI: https://example.com
Description: Parent theme codepencil.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: cpc
*/

/* Basic reset */
html, body { margin: 0; padding: 0; }
body{
  font-size:14px;
}
/* Base typography */

/* Layout helpers */
.container, .site-container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.site-footer { padding: 16px; border-top: 1px solid #eee; margin-top: 32px; color: #666; font-size: 14px; }

/* Links */
a { color: #0d6efd; text-decoration: none; }



/* A11y hidden heading: visible to screen readers and crawlers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 1px 1px); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}



/* Buttons */
.button.button-primary {
  background-color: #0d6efd;
  color: #fff;
  border: 1px solid #0d6efd;
  padding: 10px 16px;
  line-height: 1.2;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.button.button-primary:hover { background-color: #0b5ed7; border-color: #0b5ed7; }
#cpc-order-btn { margin-top: 12px; }

/* Cancel button (modal footer) */
.button { 
  background-color: #ffffff; 
  color: #000; 
  border: 1px solid #d0d5dd; 
  padding: 10px 16px; 
  line-height: 1.2; 
  border-radius: 6px; 
  cursor: pointer; 
  display: inline-block; 
  text-decoration: none; 
}
.button:hover { background-color: #f8fafc; border-color: #c3c8d0; }
.cpc-modal__footer .button:not(.button-primary) { background:#fff; color:#475467; border-color:#d0d5dd; }
.cpc-modal__footer .button:not(.button-primary):hover { background:#f9fafb; }


/* Headings */
h1, h2, h3, h4, h5, h6 { color: #111827; line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; font-weight: 600; }

.entry-title { margin-bottom: 16px;font-size:1.2rem}

/* Breadcrumb */
.cpc-breadcrumb-wrap {
    margin: 12px 0;
    padding: 12px 0;
}

.cpc-breadcrumb { font-size: 14px; color: #6b7280;margin: 8px 0 12px; }
.cpc-breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cpc-breadcrumb-item a { color: #374151; text-decoration: none;}
.cpc-breadcrumb-item a:hover { background: #f3f4f6; color: #111827; }
.cpc-breadcrumb-item .current { color: #111827; font-weight: 600; }
.cpc-breadcrumb-sep { color: #9ca3af; }
.cpc-breadcrumb-list .cpc-breadcrumb-item {
  max-width: 500px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

/* Breadcrumb dark on colored backgrounds */
.site-header .cpc-breadcrumb { color: #4b5563; }
.site-header .cpc-breadcrumb-item a { color: #1f2937; }
.site-header .cpc-breadcrumb-item .current { color: #111827; }
/* Related Products Sections */
.product-section-wrapper {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.product-section {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 20px;
}

.product-section .section-title {
  margin: 0 0 1.5rem 0;
  color: #000;
  font-size: 1.5rem;
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
}

.product-section .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}


@media (max-width: 1024px) {
  .product-section .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 15px;
  }
}

@media (max-width: 768px) {
  .product-section .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 10px;
  }
  
  .product-section {
      padding: 15px;
  }
  
  .product-section .section-title {
      font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .product-section .products-grid {
      grid-template-columns: 1fr;
  }
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table thead {
    background: #fff;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

table th {
    font-weight: 600;
    color: #000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    color: #000;
}

table tbody tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    table th,
    table td {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}