/* Main CSS for Al Watainy Fish Website */

/* Global Styles */

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  overflow: hidden;
}

.product-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.product-slider .product {
  flex: 0 0 80%;
  scroll-snap-align: center;
  min-width: 220px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0c5c7c;
  color: white;
  border: none;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  opacity: 0.85;
}

.slider-btn.left {
  left: -10px;
}

.slider-btn.right {
  right: -10px;
}








* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary-color: #0c5c7c;
    --secondary-color: #ff4500;
    --background-color: #f5f5f5;
    --text-color: #333;
    --light-color: #fff;
    --border-color: #ddd;
}

html, body {
    direction: ltr;
    text-align: left;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.menu-button, .search-button, .cart-button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.menu-button {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.cart-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
}

.cart-link, .menu-link {
    display: none;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 30px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero p {
    max-width: 800px;
    margin: 0 auto 30px;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category {
    text-align: center;
}

.category img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature img {
    width: 10px;
    height: 10px;
}

/* Store Info Section */
.store-info {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.discount-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.discount, .support {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.store-details {
    padding: 20px;
}

.store-details h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f8ce0b;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.info-item {
    text-align: center;
}

.info-item h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #777;
}

.info-item p {
    font-weight: bold;
}

.open {
    color: #2ecc71;
}

/* Products Section */
.products h2 {
    margin: 30px 0 20px;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product:hover {
    transform: translateY(-5px);
}

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

.product h3 {
    padding: 10px;
    font-size: 1rem;
}

.price {
    padding: 0 10px 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.add-button {
    display: block;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 8px;
    margin: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-button:hover {
    background-color: #094c66;
}

.product-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-large, .product-medium {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.product-info {
    padding: 20px;
    flex: 1;
}

.product-large img, .product-medium img {
    width: 50%;
    height: 200px;
    object-fit: cover;
}

/* Footer Styles */
footer {
    background-color: var(--light-color);
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.cart-footer {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.total {
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Contact Page Specific Styles */
.info-item img {
    margin-right: 15px;
    margin-left: 0;
}

/* Cart Page Specific Styles */
.cart-item-image {
    margin-right: 15px;
    margin-left: 0;
}

.cart-item-quantity {
    margin-left: 20px;
    margin-right: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-row {
        grid-template-columns: 1fr;
    }
    
    .categories {
        flex-wrap: wrap;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-large, .product-medium {
        flex-direction: column;
    }
    
    .product-large img, .product-medium img {
        width: 100%;
    }
}
