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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-bg: #ecf0f1;
    --text-color: #333;
    --border-color: #bdc3c7;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

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

/* Navigation Bar */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.navbar-brand h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

/* Search Section */
.search-section {
    padding: 2rem 0;
    background-color: var(--light-bg);
    margin-bottom: 2rem;
}

.search-section .container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.filter-select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

/* Products Section */
.products {
    padding: 3rem 0;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: var(--light-bg);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-author {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.product-description {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-rating {
    color: #f39c12;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-cart {
    background-color: var(--secondary-color);
    color: white;
}

.btn-add-cart:hover {
    background-color: #c0392b;
}

.btn-view-details {
    background-color: var(--accent-color);
    color: white;
}

.btn-view-details:hover {
    background-color: #2980b9;
}

/* About Section */
.about {
    background-color: var(--light-bg);
    padding: 3rem 0;
    margin: 3rem 0;
}

.about h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Contact Section */
.contact {
    padding: 3rem 0;
}

.contact h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.product-modal-content {
    max-width: 800px;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-color);
}

/* Cart Items */
.cart-items {
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border-color);
    background-color: white;
    cursor: pointer;
    border-radius: 3px;
}

.cart-item-remove {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.cart-summary {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-summary h3 {
    margin-bottom: 1rem;
    text-align: right;
}

.cart-summary button {
    width: 100%;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-detail-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-detail-author {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-detail-rating {
    color: #f39c12;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-detail-meta {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.product-detail-meta p {
    margin-bottom: 0.5rem;
}

.product-detail-meta strong {
    color: var(--primary-color);
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
}

.product-detail-actions button {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .search-section .container {
        flex-direction: column;
    }

    .search-bar,
    .filter-select {
        width: 100%;
    }

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

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        height: 300px;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* Article Page Styles */
.article-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    line-height: 1.8;
}

.article-content h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content table th {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.article-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Social Media Section */
.sep {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 3rem auto;
    max-width: 800px;
}

.top-bar {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
    text-align: center;
}

.top-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.site-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    font-size: 1.1rem;
}

.site-flags::before,
.site-flags::after {
    content: "ðŸ‡³ðŸ‡±";
    margin: 0 0.5rem;
}

.social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 0.5rem;
}

.ig-btn, .ig-btn1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ig-btn img, .ig-btn1 img {
    width: 24px;
    height: 24px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
    
    .social-row {
        flex-direction: column;
    }
    
    .top-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .article-container {
        padding: 0 15px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 1.5rem 1rem;
    }
    
    .article-content p {
        font-size: 1rem;
    }
}

/* 🔻 separators requested */
.sep{
  height:1px;
  background:rgba(11,18,32,.14);
  margin:10px 0;
}

/* 🛰 Top website + socials */
.top-bar{
  width:100%;
  max-width:420px;
  display:flex;
  flex-direction:column;
  gap:0px;            /* or 0 if you want them touching */
  margin:0 auto;      /* remove top margin */
}

.top-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:#ffffff;
  box-shadow:0 1px 3px rgba(15,23,42,.08);
  font-size:.7rem;
  text-decoration:none;
  color:blue;
  white-space:nowrap;
}

/* icons */
.top-btn img{ width:16px; height:16px; object-fit:contain; }

/* ✅ flags as images (fixes the “weird letters” issue) */
.flag-icon{
  width:18px;
  height:18px;
  object-fit:contain;
  display:inline-block;
}

/* Website button */
.site-btn{
  justify-content:space-between;
  padding-inline:14px;
  background-color:#ccffcc !important;
  color:#000000 !important;
  border-color:#ff6600 !important;
  font-weight:700;
}

/* ✅ Social row = ALWAYS one line on mobile */
.social-row{
  display:flex;
  flex-direction:row;
  gap:6px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:nowrap;   /* 🔑 stay one line */
}

/* 🔗 Social row stays ONE line */
.social-row{
  display:flex;
  flex-direction:row;
  gap:6px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:nowrap;
}

/* Common button */
.social-row .top-btn{
  flex:1;
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:#ffffff;
  font-size:.7rem;
  text-decoration:none;
  white-space:nowrap;
}

/* Icons */
.social-row img{
  width:16px;
  height:16px;
  object-fit:contain;
}

/* 🔵 Facebook style */
.fb-btn{
  color:#0047ab !important;
  border-color:#0047ab !important;
  font-weight:700;
}

/* 🔴⚫ Instagram + TikTok merged */
.ig-tk-btn{
  color:#111 !important;
  border-color:#111 !important;
  font-weight:700;
}

/* Optional: hide text on very small screens */
@media (max-width:360px){
  .social-row span{
    display:none;
  }
}
.sep{
  height:1px;
  background:rgba(11,18,32,.14);
  margin:6px 0;
}

.top-bar{
  max-width:420px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.social-row{
  display:flex;
  gap:6px;
  flex-wrap:nowrap;
}

.social-row .top-btn{
  flex:1;
  justify-content:center;
}
