/* Brands Page Styles - Box Layout */
.brands-hero {
    height: 40vh;
    background: linear-gradient(135deg, var(--theme-color) 0%, #8B4513 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(214, 34, 35, 0.9) 0%, rgba(139, 69, 19, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    font-family: var(--theme-font);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: var(--theme-font);
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 1px;
    font-family: var(--theme-font);
}

/* Counties Filter Section */
.counties-section {
    background: var(--theme-color);
    padding: 20px 0;
}

.counties-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 30px 0;
}

.filter-buttons {
    position: relative;
    display: inline-block;
}

.county-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.county-btn:hover,
.county-btn.active {
    background: white;
    color: var(--theme-color);
}

.filter-btn {
    background: white;
    color: var(--theme-color);
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--theme-color);
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.sort-controls {
    display: flex;
    align-items: center;
}

.sort-btn {
    background: white;
    color: var(--theme-color);
    border: 2px solid white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .counties-filter {
        flex-direction: column;
        gap: 15px;
        padding: 20px 10px;
    }
    
    .filter-buttons {
        margin: 5px 0;
    }
    
    .county-btn,
    .filter-btn,
    .sort-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .dropdown-content {
        min-width: 180px;
        max-height: 250px;
    }
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: #f5f5f5;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--theme-color);
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 2px;
    font-family: var(--theme-font);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    padding: 0 20px;
}

.product-box {
    background: white;
    border-radius: 12px;
    border: 2px solid #4267B2; /* Facebook blue border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 320px;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #28a745; /* Green border on hover */
}

.product-info {
    padding: 15px;
    text-align: center;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

.product-details {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
}

/* Card Inner Container for Flip Effect */
.product-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.product-box:hover .product-inner {
    transform: rotateY(180deg);
}

.product-front,
.product-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.product-front {
    z-index: 2;
}

.product-back {
    background: #f8f9fa;
    color: #333;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 2px solid #28a745;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.product-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.product-back-text {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #333;
    font-family: var(--theme-font);
    font-weight: 400;
    text-align: center;
    max-width: 180px;
}

.learn-more-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--theme-font);
    text-decoration: none;
    display: inline-block;
    border-radius: 20px;
    text-align: center;
    margin: 0;
}

.learn-more-btn:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.product-back h3 {
    display: none;
}

.product-description {
    display: none;
}

.brand-name {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    font-family: var(--theme-font);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.3;
    color: var(--theme-color);
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-family: var(--theme-font);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        gap: 8px;
        padding: 0 10px;
    }
    
    .county-btn {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }
    
    .product-box {
        height: 280px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        height: 120px;
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 12px;
        display: block;
    }
    
    .brand-name {
        font-size: 10px;
        display: block;
    }
    
    .product-front, .product-back {
        padding: 00px 15px 15px;
    }
    
    .product-back {
        padding: 20px 15px;
    }
    
    .product-back-text {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .learn-more-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .counties-section {
        padding: 15px 0;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        gap: 5px;
    }
    
    .county-btn {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 80px;
    }
    
    .section-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-box {
        height: 240px;
    }
    
    .product-image {
        height: 140px;
        padding: 8px;
    }
    
    .product-info h3 {
        font-size: 14px;
    }
    
    .brand-name {
        font-size: 12px;
    }
    
    .product-front, .product-back {
        padding: 20px 10px 12px;
    }
    
    .product-back {
        padding: 15px 10px;
    }
    
    .product-back-text {
        font-size: 12px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .learn-more-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-buttons {
        max-width: 800px;
    }
    
    .product-box {
        aspect-ratio: 1;
    }
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Remove grey background */
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Remove grey background */
    color: #ccc;
    font-size: 3rem;
}

.product-box {
    background: white;
    border-radius: 12px;
    border: 2px solid #4267B2; /* Facebook blue border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 320px;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #28a745; /* Green border on hover */
}

.product-info {
    padding: 15px;
    text-align: center;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

.product-details {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
}

/* Card Inner Container for Flip Effect */
.product-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.product-box:hover .product-inner {
    transform: rotateY(180deg);
}

.product-front,
.product-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.product-front {
    z-index: 2;
}

.product-back {
    background: #f8f9fa;
    color: #333;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 2px solid #28a745;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.product-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.product-back-text {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #333;
    font-family: var(--theme-font);
    font-weight: 400;
    text-align: center;
    max-width: 180px;
}

.learn-more-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--theme-font);
    text-decoration: none;
    display: inline-block;
    border-radius: 20px;
    text-align: center;
    margin: 0;
}

.learn-more-btn:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.product-back h3 {
    display: none;
}

.product-description {
    display: none;
}

.brand-name {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    font-family: var(--theme-font);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.3;
    color: var(--theme-color);
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-family: var(--theme-font);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        gap: 8px;
        padding: 0 10px;
    }
    
    .county-btn {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-box {
        padding: 30px 15px 15px;
        aspect-ratio: 1;
    }
    
    .product-image {
        max-height: 100px;
        margin-bottom: 15px;
    }
    
    .product-image img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .product-placeholder {
        font-size: 2rem;
    }
    
    .product-info h3 {
        font-size: 12px;
        display: block;
    }
    
    .brand-name {
        font-size: 10px;
        display: block;
    }
    
    .product-front, .product-back {
        padding: 00px 15px 15px;
    }
    
    .product-back {
        padding: 20px 15px;
    }
    
    .product-back-text {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .learn-more-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .counties-section {
        padding: 15px 0;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        gap: 5px;
    }
    
    .county-btn {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 80px;
    }
    
    .section-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-box {
        padding: 20px 10px 12px;
        aspect-ratio: 1;
    }
    
    .product-image {
        max-height: 80px;
        margin-bottom: 12px;
    }
    
    .product-image img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .product-placeholder {
        font-size: 1.5rem;
    }
    
    .product-info h3 {
        font-size: 10px;
        letter-spacing: 0.5px;
        display: block;
    }
    
    .brand-name {
        font-size: 9px;
        display: block;
    }
    
    .product-front, .product-back {
        padding: 20px 10px 12px;
    }
    
    .product-back {
        padding: 15px 10px;
    }
    
    .product-back-text {
        font-size: 12px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .learn-more-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-buttons {
        max-width: 800px;
    }
    
    .product-box {
        aspect-ratio: 1;
    }
}







