/* Etsy-inspired custom styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #222222 !important;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/images/hero_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1.6rem 0;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.search-hero {
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.search-hero .form-control {
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.search-hero .form-control:focus {
    box-shadow: none;
}

.search-hero .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

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

.price-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.price-tag {
    background: rgba(0, 0, 0, 0.8);
    color: black;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.price-tag.sale-price {
    background: #fff;
}

.price-tag.original-price {
    background: #fff;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #222222;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: #0066cc;
}

.product-price {
    font-weight: 700;
    color: #222222;
    font-size: 1.1rem;
}

.product-store {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 0.5rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

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

.category-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.btn-outline-primary {
    color: #0066cc;
    border-color: #0066cc;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .form-control,
.navbar .form-select {
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.navbar .form-control:focus,
.navbar .form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.navbar .btn {
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
}

.search-form-nav {
    flex: 1;
    max-width: 1280px;
}

.search-form-nav .form-control {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991px) {
    .navbar .form-control,
    .navbar .form-select {
        margin-bottom: 0.5rem;
    }
    
    .search-form-nav {
        max-width: 100%;
    }
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666666;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.featured-products-container .row.g-4 {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}
.container.featured-products-container {
    max-width: 95% !important;
    margin: 0 auto;
}
@media (min-width: 1400px) {
    .container.featured-products-container {
        max-width: 90% !important;
    }
}
@media (max-width: 1399px) and (min-width: 992px) {
    .container.featured-products-container {
        max-width: 95% !important;
    }
}
@media (max-width: 991px) {
    .container.featured-products-container {
        max-width: 98% !important;
    }
}
@media (max-width: 768px) {
    .container.featured-products-container {
        max-width: 100% !important;
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Mobile font size adjustments */
    body {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.1rem !important;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn {
        font-size: 0.85rem;
    }
    
    .product-title {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.95rem;
    }
    
    .product-store {
        font-size: 0.75rem;
    }
    
    .price-tag {
        font-size: 0.8rem;
    }
    
    .price-tag.original-price {
        font-size: 0.7rem;
    }
    
    .category-card h5 {
        font-size: 0.9rem;
    }
    
    .card-body {
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    .form-control {
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .alert {
        font-size: 0.85rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .pagination {
        font-size: 0.85rem;
    }
    
    .badge {
        font-size: 0.75rem;
    }
    
    .navbar .form-control,
    .navbar .form-select {
        font-size: 0.8rem;
    }
    
    .navbar .btn {
        font-size: 0.8rem;
    }
    
    .cart-badge {
        font-size: 0.7rem;
    }
    
    .empty-state h4 {
        font-size: 1.1rem;
    }
    
    .empty-state p {
        font-size: 0.85rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    /* Quote sections */
    .quote-29281 p {
        font-size: 0.9rem !important;
    }
    
    .quote-29281 p[style*="font-size:20px"] {
        font-size: 1.1rem !important;
    }
    
    /* Cart checkout buttons spacing for mobile */
    .checkout-actions .btn {
        margin-bottom: 0.75rem;
    }
    
    .checkout-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Extra small screens (iPhone SE, older iPhones) */
@media (max-width: 480px) {
    body {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1rem !important;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.8rem;
    }
    
    .product-title {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 0.85rem;
    }
    
    .product-store {
        font-size: 0.7rem;
    }
    
    .price-tag {
        font-size: 0.75rem;
    }
    
    .price-tag.original-price {
        font-size: 0.65rem;
    }
    
    .category-card h5 {
        font-size: 0.8rem;
    }
    
    .card-body {
        font-size: 0.8rem;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .card-text {
        font-size: 0.75rem;
    }
    
    .form-control {
        font-size: 0.85rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .alert {
        font-size: 0.8rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .pagination {
        font-size: 0.8rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
    
    .navbar .form-control,
    .navbar .form-select {
        font-size: 0.75rem;
    }
    
    .navbar .btn {
        font-size: 0.75rem;
    }
    
    .cart-badge {
        font-size: 0.65rem;
    }
    
    .empty-state h4 {
        font-size: 1rem;
    }
    
    .empty-state p {
        font-size: 0.8rem;
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
    
    /* Quote sections */
    .quote-29281 p {
        font-size: 0.8rem !important;
    }
    
    .quote-29281 p[style*="font-size:20px"] {
        font-size: 1rem !important;
    }
    
    /* Cart checkout buttons spacing for mobile */
    .checkout-actions .btn {
        margin-bottom: 0.75rem;
    }
    
    .checkout-actions .btn:last-child {
        margin-bottom: 0;
    }
}

a.btn.btn-primary.btn-gold,
button.btn.btn-primary.btn-gold,
input[type="submit"].btn.btn-primary.btn-gold {
    background-color: #FFA726 !important;
    border-color: #FFA726 !important;
    color: #fff !important;
}
a.btn.btn-primary.btn-gold:hover,
button.btn.btn-primary.btn-gold:hover,
input[type="submit"].btn.btn-primary.btn-gold:hover,
a.btn.btn-primary.btn-gold:focus,
button.btn.btn-primary.btn-gold:focus,
input[type="submit"].btn.btn-primary.btn-gold:focus {
    background-color: #fb8c00 !important;
    border-color: #fb8c00 !important;
    color: #fff !important;
}