/* Basic styling for York T‑Shirt Station */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: #f5f5f5;
    color: #333;
}

/* Top bar tagline */
.top-bar {
    background: #07073f;
    color: #fff;
    text-align: center;
    padding: 0.3rem;
    font-size: 0.85rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

header {
    background: #fffbd5;
    border-bottom: 2px solid #f5c518;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header .search-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

header .search-form {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

header .search-form input[type="text"] {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
}

header .search-form button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-left: -2rem;
    color: #666;
}

header .cart-icon {
    position: relative;
    font-size: 1.4rem;
}

header .cart-icon .cart-count {
    position: absolute;
    top: -0.4rem;
    right: -0.6rem;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img {
    height: 50px;
}

nav ul.menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav ul.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

#menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.user-links a {
    text-decoration: none;
    color: #333;
    margin-left: 0.5rem;
}

main {
    padding: 1rem 0;
}

.categories {
    display: flex;
    gap: 1rem;
}

.category-list {
    flex: 1;
}

.category-list ul {
    list-style: none;
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-list ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.slider {
    flex: 3;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* Increased height for featured slider */
    height: 200px;
}

/* Slider images */
.slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.slider .slide.active {
    opacity: 1;
}

/* Slider navigation arrows */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    z-index: 2;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}
.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
}
.slider-dots .dot.active {
    background: #f5c518;
}

.banners {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.banner {
    flex: 1;
}

.banner img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-section {
    margin-top: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.product-card {
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

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

.product-card .title {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.product-card .price {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.product-card .btn-select {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f5c518;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

/* Product detail */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-detail .images {
    flex: 1;
}

.product-detail .images img.main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.product-detail .images .thumbs {
    display: flex;
    gap: 0.5rem;
}

.product-detail .images .thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-detail .images .thumbs img.active {
    border-color: #f5c518;
}

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

.product-detail .info h2 {
    margin-bottom: 0.5rem;
}

.product-detail .info .price {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.product-detail .info .options label {
    display: block;
    margin-bottom: 0.5rem;
}

.product-detail .info .options select,
.product-detail .info .options input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.product-detail .info .options .toppings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-detail .info .options .toppings label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-align: center;
    font-size: 0.8rem;
}

.product-detail .info .options .toppings input[type="checkbox"] {
    margin-bottom: 0.25rem;
}

.product-detail .info .total {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-detail .info .btn-add-cart {
    padding: 0.75rem 1rem;
    background: #f5c518;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
}

footer {
    background: #333;
    color: #fff;
    padding: 1rem 0;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li a {
    color: #f5c518;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #25d366;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 200;
}

.whatsapp-float a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.copyright {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Mobile bottom navigation */
.mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 0.5rem 0;
    z-index: 300;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.mobile-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: bold;
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    nav ul.menu {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #f5c518;
        display: none;
        padding: 1rem;
    }
    nav ul.menu.show {
        display: block;
    }
    #menu-toggle {
        display: block;
    }
    .categories {
        flex-direction: column;
    }
    .category-list {
        display: none;
    }
}