/*
Theme Name: ASASMart Theme
Theme URI: https://asasmart.asas.com.my
Author: ASASMart
Author URI: https://asasmart.asas.com.my
Description: A simple, lightweight, and professional WordPress theme for ASASMart.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asasmart-theme
*/

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Store Grid */
.asas-store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .asas-store-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .asas-store-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .asas-store-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.asas-product-card {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.asas-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.asas-product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.asas-product-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: #1e293b;
    min-height: 44px; /* Ensure alignment */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.asas-product-card .asas-price {
    color: #10b981;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
}

.asas-sorting-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.asas-sort-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

/* Button */
.asas-btn {
    background-color: #0284c7;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
    width: 100%;
    display: inline-block;
    text-decoration: none;
}

.asas-btn:hover {
    background-color: #0369a1;
}

.asas-btn:active {
    transform: scale(0.98);
}

header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e1e8ed;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

footer {
    background: #fff;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.asasmart-content-card {
    position: relative;
    overflow: hidden;
}

.asasmart-content-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        #d93025 0%,
        #d93025 33.33%,
        #1a1a7a 33.33%,
        #1a1a7a 66.66%,
        #fbbc05 66.66%,
        #fbbc05 100%
    );
    z-index: 10;
}
