/* Global Styles */
:root {
    --primary: #FF6B00; /* Orange */
    --secondary: #28A745; /* Green */
    --accent: #007BFF; /* Blue */
    --light-gray: #F8F9FA; /* Light Gray */
    --dark-gray: #6C757D; /* Dark Gray */
    --white: #FFFFFF;
    --black: #212529;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--black);
    line-height: 1.6;
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn:hover {
    background-color: #e05d00;
    transform: translateY(-2px);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--black);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    padding: 10px 0;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    margin: 0;
    padding: 8px 15px;
}

.dropdown li a {
    display: block;
    color: var(--dark-gray);
}

.dropdown li a:hover {
    color: var(--primary);
    background-color: var(--light-gray);
}

#cart-count {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background-color: var(--white);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-column {
    flex: 1;
}

.hero-column img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.advert-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background-color: var(--primary);
}

/* Categories Section */
.categories {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-info {
    padding: 15px;
}

.category-info h3 {
    margin-bottom: 10px;
    color: var(--black);
}

.view-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 500;
}

/* Products Section */
.featured-products, .category-products {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-info {
    padding: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--dark-gray);
    margin-left: 10px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.add-cart-btn {
    width: 100%;
    padding: 8px 0;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.add-cart-btn:hover {
    background-color: #e05d00;
}

/* Category Page */
.category-header {
    padding: 40px 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.filter-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter {
    display: flex;
    align-items: center;
}

.filter label {
    margin-right: 10px;
    font-weight: 500;
}

.filter select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: var(--white);
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.pagination button {
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:disabled {
    background-color: var(--dark-gray);
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background-color: #e05d00;
}

/* Product Page */
.product-details {
    padding: 60px 0;
}

.product-details .container {
    display: flex;
    gap: 40px;
}

.product-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    height: 400px;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.price-section {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--dark-gray);
}

.discount {
    background-color: var(--secondary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-description {
    margin: 20px 0;
    line-height: 1.7;
}

.product-specs {
    margin: 20px 0;
}

.spec-item {
    margin-bottom: 10px;
}

.spec-item strong {
    display: inline-block;
    width: 120px;
}

.add-to-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-control button:hover {
    background-color: #e0e0e0;
}

.quantity-control input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
}

.add-cart-btn {
    flex: 1;
    height: 40px;
}

.related-products {
    padding: 40px 0 60px;
}

/* Shopping Cart */
.shopping-cart {
    padding: 60px 0;
}

.cart-container {
    display: flex;
    gap: 30px;
}

.cart-items {
    flex: 2;
}

.cart-summary {
    flex: 1;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-item {
    display: flex;
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    background-color: var(--light-gray);
    border: none;
    cursor: pointer;
}

.quantity-control input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
}

.remove-item {
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.remove-item:hover {
    color: var(--primary);
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.continue-shopping {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 5px;
}

.summary-details {
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: none;
}

.checkout-btn {
    width: 100%;
    padding: 12px 0;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background-color: #218838;
}

.checkout-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-align: center;
}

/* Contact Page */
.about-section, .contact-section {
    padding: 60px 0;
}

.about-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mission-vision, .policies {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.mission, .vision, .policy {
    flex: 1;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.mission h2, .vision h2, .policy h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info, .contact-form, .contact-map {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: #e05d00;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #e05d00;
}

.contact-map {
    height: 300px;
    padding: 0;
    overflow: hidden;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab-main {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.fab-main:hover {
    background-color: #e05d00;
    transform: scale(1.1);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    bottom: 80px;
}

.fab-option {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.fab-option:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.fab-option[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background-color: var(--black);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.fab-option[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .advert-slider {
        height: 300px;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .advert-slider {
        height: 250px;
    }
    
    .notification {
        width: 90%;
        text-align: center;
    }
}






/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}