/* General styles */
:root {
    --primary-color: #ff5722;
    --secondary-color: #212121;
    --accent-color: #607d8b;
    --light-color: #f5f5f5;
    --dark-color: #212121;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.emoji {
    width: 1.2em;
    height: 1.2em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.15em;
}

.cart-item img.emoji {
    width: 1em;
    height: 1em;
    margin-right: 0;
}

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

.btn {
    border-radius: 0;
    padding: 8px 20px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-outline-dark {
    border-color: #333;
    color: #333;
}

.btn-outline-dark:hover {
    background-color: #333;
    color: #fff;
}

/* Header styles */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.top-links a {
    color: #6c757d;
    font-size: 16px;
}

.top-links a:hover {
    color: var(--primary-color);
}

.search-container {
    display: flex;
    max-width: 300px;
}

.navbar {
    padding: 0.8rem 1rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #333;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero section */
.hero-section {
    height: 65vh;
    overflow: hidden;
}

.hero-image {
    height: 100%;
    width: 100%;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

/* Categories section */
.section-title {
    font-weight: 700;
    color: #333;
    position: relative;
    margin-bottom: 30px;
}

.category-card {
    transition: transform 0.3s ease;
}

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

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

.category-desc {
    margin-bottom: 8px;
    color: #666;
}

/* Carousel section */
.carousel-section {
    background-color: #f9f9f9;
}

.product-card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Tech feature section */
.tech-feature-section {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0;
}

.feature-title {
    font-size: 18px;
    margin-bottom: 5px;
}

.tech-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.tech-description {
    color: #ccc;
    font-size: 18px;
}

.tech-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.tech-icon {
    text-align: center;
}

.tech-icon i {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Instagram section */
.instagram-item {
    position: relative;
    overflow: hidden;
}

.instagram-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

.instagram-overlay i {
    color: white;
    font-size: 32px;
}

/* Footer styles */
.footer {
    background-color: #f5f5f5;
    padding: 50px 0 20px;
    color: #333;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer p {
    margin-bottom: 5px;
    font-size: 14px;
}

.social-icons a {
    color: #333;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Product listing page */
.product-filters {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Product detail page */
.product-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.product-category {
    color: #999;
    margin-bottom: 20px;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thumbnails {
    display: flex;
    overflow-x: auto;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    margin-right: 10px;
    cursor: pointer;
}

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

.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .tech-feature-section {
        text-align: center;
    }
    
    .tech-title {
        font-size: 28px;
    }
    
    .navbar-brand img {
        max-height: 30px;
    }
}

.top-bar {
    font-size: 0.875rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #000 !important;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
}

.input-group-text {
    background: transparent;
    border-left: none;
}
.carousel-caption {
    bottom: 15%;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
}

#heroCarousel {
    overflow: hidden;
}

#heroCarousel .carousel-item img {
    height: 600px;
    object-fit: cover;
}

.carousel-caption {
    bottom: 10%;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    #heroCarousel .carousel-item img {
        height: 400px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

/* Policies and privacy pages */
.policy-page {
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.policy-shell {
    max-width: 1020px;
    margin: 0 auto;
}

.policy-hero-card {
    border: 1px solid #eef0f6;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 10px 26px rgba(30, 42, 71, 0.08);
}

.policy-kicker {
    font-size: 0.82rem;
    color: #8a93a8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.policy-title {
    font-weight: 800;
    color: #1b2437;
}

.policy-muted {
    color: #6e768a;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.policy-chip {
    border: 1px solid #eef0f6;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    background: #fff;
    font-size: 0.93rem;
    color: #2f3850;
}

.policy-chip i {
    color: var(--primary-color);
}

.policy-summary-card {
    border: 1px solid #eef0f6;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(30, 42, 71, 0.06);
}

.policy-summary-title {
    font-weight: 700;
    color: #1b2437;
}

.policy-summary-table {
    margin-bottom: 0;
}

.policy-summary-table th,
.policy-summary-table td {
    padding: 0.8rem 0.75rem;
    vertical-align: top;
    border-color: #edf0f5;
    font-size: 0.92rem;
}

.policy-summary-table thead th {
    color: #54607a;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8faff;
}

.policy-accordion .accordion-item {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(30, 42, 71, 0.05);
}

.policy-accordion .accordion-button {
    font-weight: 700;
    color: #1f2940;
    background: #ffffff;
    padding: 1rem 1.05rem;
}

.policy-accordion .accordion-button:not(.collapsed) {
    color: #1f2940;
    background: #f8faff;
    box-shadow: none;
}

.policy-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.18rem rgba(255, 87, 34, 0.15);
}

.policy-accordion .accordion-body {
    color: #3a435a;
    line-height: 1.7;
    padding: 1rem 1.05rem 1.1rem;
}

.policy-section-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 87, 34, 0.12);
    color: #d84d22;
    margin-right: 0.65rem;
}

.policy-contact-card {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fff;
}

@media (max-width: 992px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .policy-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .policy-title {
        font-size: 1.55rem;
    }

    .policy-hero-card,
    .policy-summary-card {
        border-radius: 14px;
    }

    .policy-accordion .accordion-button,
    .policy-accordion .accordion-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}
