/* =========================================================
   public-grid.css
   Product grid styling (responsive, stylish, eCommerce feel)
   1. main                  6. prod
   2. section-header        7. add-to-cart | qty-input | btn-add | out-of-stock |
   3. grid                  8. about-section
   4. product-card          9. Site footer
   5. Ribbon                10. 
   ========================================================= */

    .main {
      background-color: #fafafa;
      padding-bottom: 3rem;
    }
    
    /* ---------- Section Headers ---------- */
    .section-header {
      text-align: center;
      margin: 2rem 0 1rem 0;
    }
    
    .section-header h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--color-dark, #1a1a1a);
    }
    
    .section-header .muted {
      color: var(--color-muted, #777);
      font-size: 0.95rem;
    }

/* ---------- Grid Layout ---------- */
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 1.5rem;
    }
    
    .product-card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      position: relative;
    }
    
    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }

    /* ---------- Stock Ribbons ---------- */
    .ribbon {
      position: absolute;
      top: 10px;
      left: 10px;
      background: #e74c3c;
      color: #fff;
      font-size: 0.75rem;
      padding: 3px 8px;
      border-radius: 4px;
      font-weight: 600;
    }
    
    .ribbon-stock {
      background: #27ae60;
    }

    /* ---------- Product Body ---------- */
    .prod-body {
      padding: 1rem;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    
    .prod-title {
      font-size: 1rem;
      font-weight: 600;
      color: var(--color-dark, #1a1a1a);
      margin: 0 0 0.5rem 0;
    }
    
    .prod-desc {
      font-size: 0.85rem;
      color: var(--color-muted, #777);
      margin-bottom: 0.75rem;
    }
    
    .prod-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.75rem;
    }
    
    .price {
      font-weight: 700;
      color: var(--color-primary, #e67e22);
    }
    
    .qty {
      font-size: 0.85rem;
      color: var(--color-muted, #777);
    }

    /* ---------- Add to Cart ---------- */
    .add-to-cart {
      margin-top: auto;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .qty-input {
      width: 55px;
      text-align: center;
      padding: 0.3rem;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 0.9rem;
    }
    
    .btn-add {
      flex-grow: 1;
      border: none;
      border-radius: 4px;
      padding: 0.6rem 0.8rem;
      background-color: var(--color-primary, #e67e22);
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
    }
    
    .btn-add:hover {
      background-color: #cf711f;
      transform: scale(1.05);
    }
    
    .btn-add[disabled] {
      background-color: #aaa;
      cursor: not-allowed;
    }
    /* ---------- Out of Stock Overlay ---------- */
    .out-of-stock .thumb::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(255,255,255,0.65);
    }
    .out-of-stock .prod-body {
      opacity: 0.7;
    }
    .out-of-stock .btn-add {
      background-color: #bbb;
      cursor: not-allowed;
    }
    /* ---------- About Section ---------- */
    .about-section {
      background: #fff;
      padding: 2rem 1rem;
      text-align: center;
      border-top: 1px solid #eee;
    }
     .about-inner h3 {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--color-dark, #1a1a1a);
    }
     .about-inner p {
      font-size: 0.95rem;
      color: var(--color-muted, #777);
      max-width: 600px;
      margin: 0.5rem auto;
    }
    /* ---------- Footer ---------- */
    .site-footer {
      background: var(--color-dark, #1a1a1a);
      color: #eee;
      padding: 1.5rem 0;
      font-size: 0.9rem;
    }
    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }
    .footer-left {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .brand-mark.small {
      background-color: var(--color-primary, #e67e22);
      color: #fff;
      font-weight: 700;
      font-size: 0.9rem;
      padding: 0.3rem 0.5rem;
      border-radius: 4px;
    }
    .footer-right {
      text-align: right;
    }
    /* ---------- Responsive Grid ---------- */
    @media (max-width: 992px) {
      .grid {
        gap: 1rem;
      }
    }
    
    @media (max-width: 768px) {
      .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      }
      .prod-title {
        font-size: 0.95rem;
      }
      .btn-add {
        font-size: 0.85rem;
      }
    }
    
    @media (max-width: 480px) {
      .section-header h2 {
        font-size: 1.4rem;
      }
      .grid {
        grid-template-columns: 1fr;
      }
    }
