.wpshop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px
}

.wpshop-item {
    width: calc(25% - 12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    padding: 12px
}

.wpshop-item img {
    max-width: 100%;
    height: auto
}

.wpshop-price {
    font-weight: 700;
    color: #2a9d8f
}

.wpshop-product-single {
    display: flex;
    gap: 24px
}

.wpshop-product-image {
    flex: 1;
    max-width: 250px;
}

.wpshop-product-details {
    flex: 1
}

#wpshop-order-btn {
    background: #2a9d8f;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    margin: 16px 0
}

#wpshop-order-btn:hover {
    background: #238276
}

#wpshop-order-form-container {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 4px
}

#wpshop-order-form input,
#wpshop-order-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px
}

#wpshop-order-form button {
    background: #2a9d8f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 8px
}

#wpshop-order-form button:hover {
    background: #238276
}

/* Order form and page styles */
.wpshop-section {
    padding-top: 2rem;
}

.order-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.order-header {
    text-align: center;
    margin-bottom: 3rem;
}

.order-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.order-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.product-summary {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.product-summary .thumbnail {
    flex-shrink: 0;
}

.product-summary .product-title {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: #1f2937;
}

.product-summary .product-excerpt {
    margin: 0 0 0.5rem;
    color: #6b7280;
}

.product-summary .product-price {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.order-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.order-total {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.order-total h4 {
    margin: 0 0 0.5rem;
    color: #1f2937;
}

.order-total #total-amount {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
}

.form-actions {
    text-align: center;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
}

.btn.btn-primary {
    background: #2a9d8f;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn.btn-primary:hover {
    background: #238276;
}

.btn.btn-secondary {
    background: transparent;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.wpshop-success {
    background: #ecfdf5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
}

.wpshop-error {
    background: #fef2f2;
    color: #7f1d1d;
    padding: 1rem;
    border-radius: 8px;
}

.btn[disabled] {
    opacity: .65;
    cursor: not-allowed;
}

/* Water Meter product list + single styles (copied/adapted) */
.cards-grid,
.wpshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card,
.wpshop-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover,
.wpshop-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-image,
.wpshop-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-title,
.wpshop-item .title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.card-description,
.wpshop-item .excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-price,
.wpshop-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
}

/* Single product layout */
.entry-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #6b7280;
    font-size: 0.95rem;
}

.wpshop-section .post-thumbnail {
margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: grey;
    /* border: 1px solid; */
    box-shadow: 2px 1px 5px 2px #eee;
}

.wpshop-section .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.wpshop-section .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    max-width: 800px;
    margin: 0 auto;
}

.wpshop-section .product-order-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
}

.wpshop-section .product-order-section h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.wpshop-section .product-order-section p {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 1rem;
}

.wpshop-section .product-order-section .btn {
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
}

@media (max-width: 768px) {
 .wpshop-section  .post-thumbnail {
        max-width: 100%;
    }

   .wpshop-section  .entry-title {
        font-size: 2rem;
    }
}

/* Order card styles to match Water Meter single product */
.wpshop-section .order-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 12px;
    margin: auto;
    display: inline-block;
    width: 100%;
    max-width: 800px;
}

.wpshop-section .order-card .order-price {
    font-size: 1.5rem;
    color: #10b981;
    font-weight: 800;
    margin: 0.5rem 0 1.25rem;
}

.wpshop-section .order-card .order-now {
    background: #059669;
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    display: inline-block;
}

.wpshop-section .order-card .order-now:hover {
    background: #047f57;
}

/* Single product image */

.wpshop-section .single-product-image {
    border-radius: 12px;
    display: block;
    width: 100%;
    height: auto;
}

/* Post navigation cards */
.wpshop-section .post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.wpshop-section .nav-previous,
.wpshop-section .nav-next {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
}

.wpshop-section .nav-previous a,
.wpshop-section .nav-next a {
    text-decoration: none;
    color: #374151;
    display: block;
}

.wpshop-section .nav-label {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.5rem;
}

.wpshop-section .nav-title {
    display: block;
    color: #1f2937;
    font-weight: 700;
}

@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}