/* ==========================================================================
   Happythai Store - Custom Modern Styles
   ========================================================================== */

/* Product Meta Inline */
.product-meta-inline {
    margin: 12px 0 16px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    display: inline-block;
}
.product-meta-inline .meta-item {
    display: inline-block;
}
.product-meta-inline .meta-item:not(:last-child)::after {
    content: " | ";
    color: #adb5bd;
    margin: 0 10px;
    font-weight: 300;
}
.product-meta-inline .meta-label {
    font-weight: 600;
    color: #212529;
}
.product-meta-inline .meta-value {
    color: #495057;
}
.product-meta-inline .meta-value a {
    color: #1a73e8;
    text-decoration: none;
}
.product-meta-inline .meta-value a:hover {
    text-decoration: underline;
}

/* Combination / Attributes Selection - Prominent & Large */
.product_attributes {
    margin: 15px 0 20px 0;
    padding: 16px 18px;
    background: #fdfefe;
    border: 2px solid #e1e7ec;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product_attributes .attribute_fieldset {
    margin-bottom: 12px;
    border: none;
    padding: 0;
}
.product_attributes .attribute_fieldset:last-child {
    margin-bottom: 0;
}
.product_attributes .attribute_label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product_attributes .attribute_select {
    height: 44px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    border: 2px solid #3498db;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    max-width: 100%;
    transition: all 0.2s ease;
}
.product_attributes .attribute_select:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Radio buttons / pills for attributes */
.product_attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product_attributes ul li {
    margin: 0;
}
.product_attributes ul li .radio_label {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}
.product_attributes ul li input[type="radio"] {
    display: none;
}
.product_attributes ul li input[type="radio"]:checked + .radio_label {
    border-color: #3498db;
    background: #ebf5fb;
    color: #2980b9;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.25);
}
.product_attributes ul li .radio_label:hover {
    border-color: #bdc3c7;
    background: #f8f9fa;
}

/* Color swatches */
#color_to_pick_list li {
    margin-right: 8px;
    margin-bottom: 8px;
}
#color_to_pick_list li a.color_pick {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #dcdfe6;
    display: inline-block;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
    transition: transform 0.15s, border-color 0.15s;
}
#color_to_pick_list li.selected a.color_pick,
#color_to_pick_list li a.color_pick.selected {
    border-color: #3498db;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3498db;
}

/* Social sharing buttons moved under product image */
.pb-left-column .product-extra-right {
    margin-top: 18px;
    margin-bottom: 12px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    text-align: center;
}
.pb-left-column .product-extra-right .socialsharing_product {
    margin: 0 auto;
}
.pb-left-column .product-extra-right .btn-twitter,
.pb-left-column .product-extra-right .btn-facebook,
.pb-left-column .product-extra-right .btn-google-plus,
.pb-left-column .product-extra-right .btn-pinterest {
    margin: 3px 4px;
    font-size: 12px;
}
/* Product Full Description */
.ag-product-full-desc {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #ebe5df;
    font-size: 14.5px;
    line-height: 1.7;
    color: #4a4a4a;
}
.ag-product-full-desc p {
    margin-bottom: 12px;
}
.ag-product-full-desc h2,
.ag-product-full-desc h3,
.ag-product-full-desc h4 {
    color: #1b5e20;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Product Page Trust Certifications */
.ag-product-certs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
    padding: 16px 20px;
    background: #f7faf7;
    border: 1px solid #d4edd6;
    border-radius: 12px;
}
.ag-product-cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ag-product-cert-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.ag-product-cert-info strong {
    display: block;
    font-size: 12px;
    color: #1b5e20;
    line-height: 1.25;
}
.ag-product-cert-info span {
    display: block;
    font-size: 11px;
    color: #555;
    margin-top: 2px;
}
@media (max-width: 767px) {
    .ag-product-certs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Footer Trust Certifications Bar */
.ag-footer-certs-bar {
    background: #f4f9f4;
    border-top: 1px solid #d4edd6;
    border-bottom: 1px solid #d4edd6;
    padding: 22px 0;
    margin-top: 35px;
}
.ag-footer-certs-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.ag-cert-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ag-cert-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.ag-cert-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1b5e20;
    line-height: 1.3;
}
.ag-cert-text span {
    display: block;
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}
@media (max-width: 767px) {
    .ag-footer-certs-grid {
        gap: 20px;
    }
}

/* Information CMS Pages Modern Design */
.ag-cms-wrapper {
    padding: 10px 0 36px;
    color: #4a4a4a;
    line-height: 1.65;
}
.ag-cms-hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 60%, #e0f2f1 100%);
    border: 1px solid #c8e6c9;
    border-radius: 18px;
    padding: 42px 30px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.ag-cms-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2e7d32;
    margin-bottom: 12px;
}
.ag-cms-title {
    font-size: 32px;
    font-weight: 700;
    color: #1b5e20;
    margin: 0 0 14px;
    line-height: 1.25;
}
.ag-cms-subtitle {
    font-size: 16px;
    color: #555;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}
.ag-cms-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}
.ag-cms-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.ag-cms-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.ag-cms-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ag-cms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}
.ag-cms-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.ag-cms-icon svg {
    width: 24px;
    height: 24px;
}
.ag-cms-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1b5e20;
    margin: 0 0 10px;
}
.ag-cms-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
.ag-cms-steps-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 34px 28px;
    margin-bottom: 32px;
}
.ag-cms-steps-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1b5e20;
    text-align: center;
    margin: 0 0 28px;
}
.ag-cms-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ag-cms-step {
    position: relative;
    padding: 20px 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.ag-step-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.ag-cms-step h4 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px;
}
.ag-cms-step p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 991px) {
    .ag-cms-grid-3 { grid-template-columns: 1fr; }
    .ag-cms-grid-2 { grid-template-columns: 1fr; }
    .ag-cms-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ag-cms-steps-grid { grid-template-columns: 1fr; }
}
