.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

footer a.text-muted:hover {
    color: #fff !important;
}

.navbar-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.carousel-img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 20px;
}

.product-grid-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.product-grid-img-placeholder {
    height: 220px;
}

.product-gallery .main-image-container img {
    max-height: 400px;
    object-fit: contain;
    background: #f8f9fa;
    width: 100%;
}

.gallery-thumbnails {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #0d6efd;
}

.form-range::-webkit-slider-thumb {
    background: #0d6efd;
}

.form-range::-moz-range-thumb {
    background: #0d6efd;
}

.page-link {
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.product-card .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .card-body {
    padding: 0.75rem;
}

.product-card .card-footer {
    padding: 0.5rem 0.75rem;
}

@media (max-width: 575.98px) {
    .carousel-img {
        height: 180px;
    }

    .carousel-caption {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .carousel-caption h5 {
        font-size: 1rem;
    }

    .hero-section {
        padding: 1.5rem 0 !important;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .hero-section p {
        font-size: 0.85rem;
    }

    .product-grid-img,
    .product-grid-img-placeholder {
        height: 140px;
    }

    .product-card .card-title {
        font-size: 0.85rem;
    }

    .product-card .card-body {
        padding: 0.5rem;
    }

    .product-card .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .gallery-thumb {
        width: 50px;
        height: 50px;
    }

    .product-gallery .main-image-container img {
        max-height: 280px;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .navbar-logo {
        height: 28px;
    }

    footer .col-md-4 {
        text-align: center;
    }

    footer h5, footer h6 {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .btn-sm {
        font-size: 0.75rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .carousel-img {
        height: 220px;
    }

    .product-grid-img,
    .product-grid-img-placeholder {
        height: 160px;
    }

    .gallery-thumb {
        width: 55px;
        height: 55px;
    }

    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .product-gallery .main-image-container img {
        max-height: 320px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .carousel-img {
        height: 300px;
    }

    .product-grid-img,
    .product-grid-img-placeholder {
        height: 180px;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .carousel-img {
        height: 350px;
    }

    .product-grid-img,
    .product-grid-img-placeholder {
        height: 200px;
    }
}

.product-img-wrapper {
    overflow: hidden;
    position: relative;
}

.btn-favorite {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-size: 1.1rem;
    color: #aaa;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.btn-favorite:hover {
    background: #fff;
    transform: scale(1.15);
}

.btn-favorite.favorited {
    color: #e74c3c;
}

.btn-favorite .bi-heart-fill {
    color: #e74c3c;
}

.quick-look-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    padding: 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.product-img-wrapper:hover .quick-look-overlay {
    opacity: 1;
}

.promo-discover-section {
    border-top: 1px solid #eee;
}

.promo-discover-card {
    padding-bottom: 8px;
}

.promo-discover-img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.promo-discover-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.promo-discover-img-link:hover .promo-discover-img {
    transform: scale(1.04);
}

.promo-discover-placeholder {
    height: 280px;
    border-radius: 8px;
    background: #f0f0f0;
}

.promo-discover-body h5 {
    font-size: 1.1rem;
    color: #222;
}

.promo-discover-body p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.promo-discover-link {
    color: #0d6efd;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.promo-discover-link:hover {
    color: #0a58ca;
}

@media (max-width: 575.98px) {
    .promo-discover-img,
    .promo-discover-placeholder {
        height: 200px;
    }

    .promo-discover-body h5 {
        font-size: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .promo-discover-img,
    .promo-discover-placeholder {
        height: 220px;
    }
}

.ql-thumb {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.ql-thumb:hover,
.ql-thumb.active {
    border-color: #0d6efd;
}

@media (max-width: 575.98px) {
    .ql-thumb {
        width: 45px;
        height: 45px;
    }
}

.qty-selector .btn {
    padding: 0.15rem 0.4rem;
    line-height: 1;
}

.qty-selector .qty-input {
    padding: 0.15rem 0;
    font-size: 0.85rem;
    border-radius: 4px;
}

.qty-selector .qty-input::-webkit-inner-spin-button,
.qty-selector .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-selector .qty-input[type=number] {
    -moz-appearance: textfield;
}

.toast-container {
    z-index: 1080;
}

@media (min-width: 1200px) {
    .product-grid-img,
    .product-grid-img-placeholder {
        height: 220px;
    }
}
