/* ===================================
   SIPZZ - COMPONENTS.CSS
   Reusable UI components (cards, buttons, forms, badges)
   =================================== */

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #005a9a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-blue);
    color: #333;
}

.btn-secondary:hover {
    background-color: #8acfe7;
}

.btn-shopee {
    background-color: var(--shopee-orange);
    color: white;
    padding: 12px 30px;
}

.btn-tiktok {
    background-color: var(--tiktok-black);
    color: white;
    padding: 12px 30px;
}

/* ===================================
   PRODUCT CARDS
   =================================== */

.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card-image-wrapper {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.product-card-info {
    padding: 20px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.product-card .price {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-blue);
    margin: 0 0 15px 0;
}

.product-card .view-details {
    display: inline-block;
    background-color: var(--light-blue);
    color: #002855;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-card .view-details:hover {
    background-color: #8acfe7;
}

/* ===================================
   BADGES
   =================================== */

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background-color: #4CAF50;
    color: white;
}

.badge-bestseller {
    background-color: var(--yellow-banner);
    color: var(--text-primary);
}

.badge-limited {
    background-color: #FF5722;
    color: white;
}

/* ===================================
   FORMS
   =================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-grey);
    border-radius: 5px;
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

/* ===================================
   STAR RATING
   =================================== */

.star-rating {
    color: var(--star-rating);
    font-size: 18px;
}

.star-rating i {
    margin-right: 2px;
}

/* ===================================
   STORE ICONS
   =================================== */

.store-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.store-icons a {
    display: block;
    transition: transform var(--transition-fast);
}

.store-icons a:hover {
    transform: scale(1.1);
}

.store-icons img {
    height: 50px;
    width: auto;
}

/* ===================================
   FEATURE GRID
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item img {
    height: 50px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #233658;
}

.feature-item p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    color: #455a64;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.feature-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===================================
   USP SECTION (Homepage)
   =================================== */

.usp-section {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.usp-item {
    text-align: center;
}

.usp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-blue);
    border-radius: 50%;
}

.usp-icon i {
    font-size: 36px;
    color: var(--brand-blue);
}

.usp-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.usp-description {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===================================
   PROMO BANNER
   =================================== */

.promo-banner {
    background-color: var(--yellow-banner);
    color: var(--text-primary);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
}

.promo-slider {
    position: relative;
}

.promo-text {
    display: none;
}

.promo-text.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .features-grid,
    .usp-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-card-image-wrapper {
        min-height: 200px;
    }
}
