/* WooCommerce Loop Overrides */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}
ul.products::before, ul.products::after {
    display: none !important;
}
ul.products li.product {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

.am-global-card-inner {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.am-global-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(56, 88, 233, 0.15);
}

.am-gcard-header {
    padding: 25px 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.am-gcard-title {
    font-family: 'Megante', serif;
    font-size: 22px;
    margin: 0;
    line-height: 1.3;
}
.am-gcard-title a {
    color: #151516;
    text-decoration: none;
    transition: color 0.2s;
}
.am-gcard-title a:hover {
    color: #3858e9;
}

.am-gcard-image-wrap {
    height: 220px;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fdfdfd;
}

.am-gcard-image-wrap a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-gcard-image-wrap img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.am-global-card-inner:hover .am-gcard-image-wrap img {
    transform: scale(1.05);
}

.am-gcard-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.am-gcard-moq {
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.am-gcard-moq .moq-label {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    color: #4a5568;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}
.am-gcard-moq .moq-val {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #3858e9;
    font-weight: 800;
    margin-left: 5px;
}

.am-gcard-highlights {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

.am-gcard-highlights p {
    margin: 0 0 10px 0;
    display: none; /* Hide paragraphs if they exist, only show lists */
}

.am-gcard-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.am-gcard-highlights li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    display: block;
}

/* Restrict to exactly 2 items */
.am-gcard-highlights li:nth-child(n+3) {
    display: none !important;
}

.am-gcard-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background: #3858e9;
    border-radius: 50%;
}

.am-gcard-footer {
    padding: 0 20px 25px;
    display: flex;
    justify-content: center;
}

/* Ensure Button takes full width and looks perfect */

/* Ensure Button takes full width and looks perfect */
.am-gcard-footer .am-btn {
    width: 100%;
    justify-content: center !important;
}

/* Responsive Grid for Default ul.products */
@media (max-width: 1200px) {
    ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 991px) {
    ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    ul.products { grid-template-columns: 1fr !important; }
}
