/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: white;
    color: #333;
}

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

.flash-sale-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.container-image {
    width: 100%;
    max-width: 100%; 
    overflow: hidden;
    margin-bottom: 10px;
}

.container-image img {
    width: 100%;         /* Make image scale to container width */
    height: auto;        /* Maintain aspect ratio */
    display: block;      /* Remove bottom whitespace */
    max-width: 100%;     /* Never exceed original width */
    object-fit: contain; /* Optional: ensures the image fits nicely without being cropped */
}

.logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.discount-badge {
    background-color: #ff3333;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 25px;
    transform: rotate(15deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(15deg) scale(1);
    }

    50% {
        transform: rotate(15deg) scale(1.05);
    }

    100% {
        transform: rotate(15deg) scale(1);
    }
}

.sale-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.sale-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 16px;
}

.sale-btn:hover {
    background-color: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Sale Banner */
.sale-banner {
    background-color: #ff6699;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banner-text {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-subtext {
    font-size: 14px;
    opacity: 0.9;
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    padding: 30px 10%;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 10px;
}

.countdown-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.countdown-title i {
    font-size: 24px;
    color: #ff3333;
    animation: spinHourglass 6s linear infinite;
}

@keyframes spinHourglass {
    0% {
        transform: rotate(0);
    }

    45% {
        transform: rotate(0);
    }

    55% {
        transform: rotate(180deg);
    }

    95% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.countdown-title h2 {
    font-size: 22px;
    margin: 0;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

.countdown-badge {
    background: linear-gradient(to right, #ff3333, #ff6666);
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.countdown-badge::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.discount-text {
    font-size: 18px;
    margin-left: 5px;
    font-weight: 800;
}

.countdown-timer-container {
    max-width: 500px;
    margin: 0 auto 5px;
    padding: 5px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    perspective: 1000px;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 70px;
    height: 80px;
}

.timer-value {
    background: linear-gradient(145deg, #333, #222);
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.timer-value::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.timer-value::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
}

.timer-separator {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-top: -10px;
    animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.timer-label {
    font-size: 14px;
    color: #f3eaea;
    margin-top: 8px;
    font-weight: 500;
}

.timer-box.pulse .timer-value {
    animation: pulse-timer 0.5s ease-out;
}

.timer-box.pulse {
    animation: pulse-timer 0.5s ease-out;
}

@media (max-width: 768px) {
    .countdown-header {
        flex-direction: column;
        gap: 15px;
    }

    .countdown-title {
        flex-direction: row;
        gap: 5px;
    }

    .countdown-title h2 {
        font-size: 15px;
    }

    .countdown-timer-container {
        padding: 10px;
    }

    .timer-box {
        width: 55px;
        height: 70px;
    }

    .timer-value {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .timer-separator {
        font-size: 24px;
    }

    .timer-label {
        font-size: 12px;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card::before {
    content: "SALE";
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff3333;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.3);
}

.product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.1) 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.quick-view-btn,
.add-to-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.quick-view-btn:hover,
.add-to-cart-btn:hover {
    background-color: #0066cc;
    color: #fff;
    transform: scale(1.1);
}

.product-info {
    padding: 10px;
}

.product-info h3 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 3px;
    color: #333;
    height: 20px;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.3;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.product-info-left,
.product-info-right {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    text-align: end;
}

.sale-price {
    color: #ff3333;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    white-space: nowrap;
    text-align: end;
}

.free-shipping {
    font-size: 12px;
    color: #009900;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.free-shipping i {
    font-size: 14px;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    white-space: nowrap;
    margin-bottom: 5px;
}

.product-rating i {
    color: #ffc107;
}

.product-rating span {
    color: #777;
    margin-left: 5px;
    font-size: 12px;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #ff3333;
}

.modal-body {
    display: flex;
    padding: 30px;
}

.modal-product-image {
    flex: 1;
    max-width: 400px;
    margin-right: 30px;
}

.modal-product-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-product-details {
    flex: 1;
}

.modal-product-details h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.modal-product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}

.modal-sale-price {
    color: #ff3333;
    font-weight: bold;
    font-size: 24px;
}

.modal-product-rating {
    margin-bottom: 20px;
    font-size: 16px;
}

.modal-product-description {
    margin-bottom: 20px;
}

.modal-product-description p {
    line-height: 1.6;
    color: #555;
}

.modal-product-features {
    margin-bottom: 25px;
}

.modal-product-features h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.modal-product-features ul {
    list-style-type: none;
}

.modal-product-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.modal-product-features li::before {
    content: "✓";
    color: #0066cc;
    position: absolute;
    left: 0;
}

.modal-product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

#productQuantity {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
}

#productQuantity::-webkit-outer-spin-button,
#productQuantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-modal-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.add-to-cart-modal-btn:hover {
    background-color: #004d99;
    transform: translateY(-2px);
}

/* Order Popup Styles */
.order-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.order-popup-content {
    background-color: #fff;
    margin: 50px auto;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

.order-popup-header {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-title i {
    color: #fff;
}

.close-order-popup {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-order-popup:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.order-popup-body {
    padding: 25px;
}

.order-product-info {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.order-product-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-product-name {
    margin-bottom: 15px;
}

.order-product-name p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.order-product-name p strong {
    color: #0066cc;
    font-weight: 600;
}

.price-highlight {
    color: #ff3333;
    font-size: 18px;
    font-weight: bold;
}

.product-info-btn {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.4);
}

.product-info-btn i {
    font-size: 16px;
}

.order-shipping {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.shipping-icon,
.shipping-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 500;
}

.shipping-icon i,
.shipping-guarantee i {
    color: #0066cc;
    font-size: 18px;
}

.order-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.order-form-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-form-title i {
    color: #0066cc;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
    outline: none;
}

.address-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.product-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.product-selection label {
    font-weight: 500;
    color: #333;
}

.order-popup-footer {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.order-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.order-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.4);
}

/* Vietnamese Info Popup */
.info-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
}

.info-popup-content {
    background-color: #fff;
    margin: 50px auto;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

.info-popup-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.info-popup-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.info-popup-body {
    padding: 20px;
}

.info-popup-brand {
    margin-bottom: 15px;
}

.info-popup-brand p {
    color: #ff0000;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.info-popup-brand i {
    color: #3366cc;
    margin-right: 5px;
}

.info-popup-company {
    margin-bottom: 15px;
}

.info-popup-company h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.info-popup-company p {
    font-size: 14px;
    color: #555;
}

.info-popup-company i {
    color: #ff6699;
    margin-right: 5px;
}

.info-popup-description {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-popup-description p {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.info-popup-features {
    margin-bottom: 15px;
}

.info-popup-features p {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.info-popup-features i {
    color: #ffc107;
    margin-right: 5px;
}

.info-popup-features ul {
    list-style: none;
    padding-left: 10px;
}

.info-popup-features li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
    line-height: 1.4;
}

.info-popup-price {
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.info-popup-price p {
    font-size: 16px;
    font-weight: bold;
    color: #ff3333;
}

.info-popup-price i {
    color: #ff9900;
    margin-right: 5px;
}

.info-popup-usage {
    margin-bottom: 15px;
}

.info-popup-usage p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.info-popup-usage i {
    color: #28a745;
    margin-right: 5px;
}

.info-popup-quality {
    margin-bottom: 10px;
    font-style: italic;
}

.info-popup-quality p {
    font-size: 14px;
    color: #666;
}

.info-popup-quality i {
    color: #6c757d;
    margin-right: 5px;
}

.info-popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.info-popup-close,
.info-popup-buy {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.info-popup-close {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.info-popup-close:hover {
    background-color: #e9e9e9;
}

.info-popup-buy {
    background-color: #ff3333;
    color: #fff;
    border: none;
    box-shadow: 0 4px 8px rgba(255, 51, 51, 0.3);
}

.info-popup-buy:hover {
    background-color: #e60000;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #333;
}

.pagination-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination-btn:hover:not(.active) {
    background-color: #f5f5f5;
}

.pagination-btn.next {
    width: auto;
    padding: 0 15px;
}

/* Product Info Button */
.product-info-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.product-info-btn:hover {
    background-color: #004d99;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding-left: 22%;
        padding-right: 22%;
    }

        .container-image {
        max-width:80%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info {
        padding: 0;
    }

    .product-card {
        border-radius: 8px;
    }

    .order-product-info {
        flex-direction: column;
    }

    .order-product-image {
        width: 100%;
        height: 200px;
    }

    .address-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .countdown-section {
        padding: 0;
    }
    .product-info {
        padding: 0;
    }

    .product-card {
        border-radius: 8px;
    }

    .timer-box {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .timer-labels span {
        width: 40px;
        font-size: 11px;
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }

    .sale-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .sale-btn {
        width: 80%;
    }

    .product-image {
        height: 120px;
    }

    .product-info h3 {
        font-size: 12px;
        margin-bottom: 10px;
        height: 15px;
    }

    .product-info-grid {
        gap: 5px;
    }

    .product-info-left,
    .product-info-right {
        font-size: 10px;
    }

    .original-price {
        font-size: 10px;
        margin-bottom: 5px;
        text-align: end;
    }

    .sale-price {
        font-size: 12px;
        margin-bottom: 2px;
        text-align: end;
    }

    .product-rating {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .product-rating span {
        font-size: 9px;
    }

    .free-shipping {
        font-size: 9px;
    }

    .free-shipping i {
        font-size: 10px;
    }

    .product-overlay button {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .modal-content {
        margin: 20px auto;
    }

    .modal-product-details h2 {
        font-size: 20px;
    }

    .info-popup-content {
        margin: 15px auto;
    }

    .info-popup-header h2 {
        font-size: 18px;
    }

    .info-popup-brand p,
    .info-popup-company h3,
    .info-popup-price p {
        font-size: 15px;
    }

    .info-popup-features p {
        font-size: 14px;
    }

    .info-popup-features li,
    .info-popup-description p,
    .info-popup-usage p,
    .info-popup-quality p,
    .info-popup-company p {
        font-size: 13px;
    }
}

/* Customer Reviews Section */
.reviews-section {
    background-color: #fff;
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: #0066cc;
    margin: 0 auto 15px;
}

.reviews-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.review-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.review-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.filter-btn.active {
    font-weight: bold;
    color: #0066cc;
}

.filter-btn i {
    margin-left: 5px;
}


.reviews-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
}

.review-card {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.review-rating {
    color: #ffc107;
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-product {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #0066cc;
}

.review-product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.review-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-product-info {
    flex: 1;
}

.review-product-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.review-product-price {
    font-size: 13px;
    color: #ff3333;
    font-weight: 500;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #65676b;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn i {
    font-size: 14px;
}

.action-btn:hover {
    color: #0066cc;
}

.review-likes {
    font-size: 13px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-likes i {
    color: #0066cc;
}

.review-time {
    font-size: 13px;
    color: #65676b;
}

.reviews-pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination-btn {
    background-color: #0066cc;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 102, 204, 0.3);
}

.pagination-btn:hover {
    background-color: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.4);
}

/* Live Purchase Notification */
.live-purchase-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.live-purchase-notification {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.live-purchase-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-content p {
    margin: 0 0 5px;
    font-size: 14px;
    color: #333;
}

.notification-time {
    font-size: 12px;
    color: #777;
}

/* Thank You Popup */
.thank-you-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
}

.thank-you-content {
    background-color: #fff;
    margin: 50px auto;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

.thank-you-header {
    background: linear-gradient(135deg, #28a745, #218838);
    padding: 25px;
    text-align: center;
    color: #fff;
}

.thank-you-header i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.thank-you-header h3 {
    font-size: 24px;
    margin: 0;
}

.thank-you-body {
    padding: 25px;
    text-align: center;
}

.thank-you-body p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.thank-you-footer {
    padding: 15px 25px 25px;
    text-align: center;
}

.thank-you-close-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.thank-you-close-btn:hover {
    background-color: #004d99;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .reviews-container {
        padding: 15px 0;
    }

    .review-card {
        padding: 15px;
        gap: 10px;
    }

    .reviewer-avatar {
        width: 50px;
        height: 50px;
    }

    .reviewer-name {
        font-size: 14px;
    }

    .review-text {
        font-size: 13px;
        padding: 12px;
    }

    .live-purchase-notification {
        max-width: 250px;
    }

    .notification-avatar {
        width: 35px;
        height: 35px;
    }

    .notification-content p {
        font-size: 12px;
    }

    .notification-time {
        font-size: 10px;
    }

    .thank-you-content {
        max-width: 300px;
    }

    .thank-you-header i {
        font-size: 40px;
    }

    .thank-you-header h3 {
        font-size: 18px;
    }

    .thank-you-body p {
        font-size: 14px;
    }

    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .review-rating {
        font-size: 12px;
    }

    .review-product {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-product-image {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .review-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .live-purchase-notification {
        max-width: 250px;
        padding: 10px;
    }

    .notification-avatar {
        width: 30px;
        height: 30px;
    }

    .notification-content p {
        font-size: 12px;
    }

    .notification-time {
        font-size: 10px;
    }

    .thank-you-content {
        margin: 30px auto;
    }

    .thank-you-header i {
        font-size: 40px;
    }

    .thank-you-header h3 {
        font-size: 20px;
    }

    .thank-you-body p {
        font-size: 14px;
    }
}

/* Quantity input styling */
.quantity-input {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.quantity-input label {
    margin-right: 10px;
    font-weight: 500;
    min-width: 80px;
}

.quantity-input input[type="number"] {
    width: 70px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-input input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Remove spinner buttons for number input in some browsers */
.quantity-input input[type="number"]::-webkit-inner-spin-button,
.quantity-input input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

/* Promo Banner: Center content horizontally using Flexbox */
.promo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Info container */
.promo-banner.info-popup-company {
    padding: 24px;
    font-family: 'Segoe UI', sans-serif;
    width: 100%;
    max-width: 800px;
    text-align: left;
    box-sizing: border-box;
    border-radius: 8px;
}

/* Title */
.promo-banner .info-popup-company h1 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
}

/* Each line with icon + text */
.promo-banner .info-popup-company h3 {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    text-align: left;
    font-weight: 500;
}

/* Icon styling */
.promo-banner .info-popup-company h3 i {
    margin-right: 10px;
    color: #555;
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

.promo-text .main-text {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    position: relative;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.promo-text .main-text::after {
    content: '';
    width: 40px;
    height: 2px;
    background: #c49a6c;
    position: absolute;
    left: 0;
    bottom: -4px;
}

.promo-text .sub-text {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.promo-text .sub-text i {
    color: #ff3333;
    margin-right: 8px;
    font-size: 16px;
}

/* Subtle Animations */
@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .promo-banner {
        flex-direction: column;
    }

    .promo-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .promo-text {
        align-items: center;
        text-align: center;
    }

    .promo-text .main-text {
        font-size: 18px;
    }

    .promo-text .main-text::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .promo-text .sub-text {
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }
}

/* Timer box pulse effect */
@keyframes pulse-timer {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 51, 51, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
        transform: scale(1);
    }
}

.timer-box.pulse {
    animation: pulse-timer 0.5s ease-out;
}

/* Promotion dates display */
.promotion-dates-display {
    font-size: 14px;
    margin: 10px auto;
    text-align: center;
    color: #666;
    padding: 10px;
    border-radius: 8px;
    max-width: 400px;
}

.current-date-value {
    font-weight: bold;
    color: #0066cc;
    transition: all 0.5s ease;
    padding: 2px 5px;
    border-radius: 3px;
}

.end-date-value {
    font-weight: bold;
    color: #ff3333;
    transition: all 0.5s ease;
    padding: 2px 5px;
    border-radius: 3px;
}

.date-arrow {
    margin: 0 10px;
    color: #666;
}

/* Enhance timer boxes */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    perspective: 1000px;
}

.timer-box {
    background: linear-gradient(145deg, #333, #222);
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.timer-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

@media (max-width: 480px) {
    .promotion-dates-display {
        font-size: 12px;
        padding: 8px;
    }

    .current-date-value,
    .end-date-value {
        padding: 1px 3px;
    }

    .date-arrow {
        margin: 0 5px;
    }

    .promo-banner .info-popup-company h1 {
        font-size: 13px;
        font-weight: bolder;
    }

    .promo-banner .info-popup-company h3 {
        font-size: 11px;
    }

    .promo-banner .info-popup-company h3 i {
        font-size: 11px;
    }
}

/* Fixed Bottom Notification */
.fixed-bottom-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(51, 51, 51, 0.9));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: slideUp 0.5s ease-out forwards;
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

.notification-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.notification-icon i {
    font-size: 20px;
    color: #fff;
    animation: tapAnimation 1.5s infinite;
}

@keyframes tapAnimation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.notification-text {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .fixed-bottom-notification {
        padding: 10px 15px;
    }

    .notification-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .notification-icon i {
        font-size: 16px;
    }

    .notification-text {
        font-size: 14px;
    }
}

/* Section Styling */
.why-choose-us {
    margin: 15px auto;
    max-width: 650px;
    padding: 10px;
    background-color: #b0e7f8;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.why-choose-us .ladi-headline {
    font-family: Quicksand, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.6;
    color: rgb(0, 0, 0);
    text-align: left;
    width: 100%;
    display: inline-block;
    word-break: break-word;
    background-size: cover;
    background-position: center center;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    margin-bottom: 20px;
    padding-left: 25px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    top: 2px;
    color: #2ecc71;
}

/* Strong text inside li */
.benefits-list li strong {
    color: #000;
    display: block;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .why-choose-us {
        padding: 20px;
        margin: 30px 15px;
    }

    .why-choose-us h2 {
        font-size: 20px;
    }

    .benefits-list li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .why-choose-us {
        padding: 15px;
    }

    .why-choose-us h2 {
        font-size: 12px;
    }

    .benefits-list li {
        font-size: 14px;
    }
}
