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

:root {
    --maroon: #531c1f;
    --maroon-light: #6d2a2d;
    --maroon-dark: #3a1315;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8941f;
    --silver: #c0c0c0;
    --silver-light: #e0e0e0;
    --silver-dark: #a0a0a0;
    --light-bg: #f9f5f0;
    --text-dark: #333;
    --text-light: #f5f5f5;
--text-black: #000000;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: var(--text-light);
    padding: min(2vh, 1.5rem) min(3vw, 3rem);
    box-shadow: 0 0.4vh 1.2vh rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: min(2vh, 1.5rem);
}

/* Price Cards Container - Horizontal Layout */
.price-cards-container {
    display: flex;
    gap: min(2vw, 20px);
    width: 100%;
    align-items: center;
}

.logo img {
    height: 8vh;
}

.price-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    border-radius: min(1.2vh, 10px);
    padding: min(1.5vh, 1rem) min(1.5vw, 1.2rem);
    box-shadow: 0 0.4vh 1vh rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-height: min(100px, 20vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(212, 175, 55, 0.03) 50%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.price-card:hover {
    transform: translateY(-0.3vh);
    box-shadow: 0 0.6vh 1.5vh rgba(0, 0, 0, 0.15);
}

.price-card.gold {
    border-top: min(0.4vh, 4px) solid var(--gold);
}

.price-card.silver {
    border-top: min(0.4vh, 4px) solid var(--silver);
}

.price-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(0.9rem, 1.2vw + 0.3rem, 1.3rem);
    margin-bottom: min(0.8vh, 8px);
    color: var(--maroon);
    position: relative;
    z-index: 2;
    font-weight: 700;
    white-space: nowrap;
}

.price {
    font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
    font-weight: 800;
    margin: min(0.8vh, 8px) 0;
    position: relative;
    z-index: 2;
    line-height: 1;
}

.price-card.gold .price {
    color: var(--gold);
    text-shadow: 0 0.1vh 0.2vh rgba(0, 0, 0, 0.1);
}

.price-card.silver .price {
    color: var(--maroon);
    text-shadow: 0 0.1vh 0.2vh rgba(0, 0, 0, 0.1);
}

.currency {
    font-size: clamp(0.75rem, 0.9vw + 0.2rem, 1rem);
    color: #666;
    margin-right: 0.2vw;
    font-weight: 500;
}

.update-time {
    background-color: rgba(255, 255, 255, 0.1);
    padding: min(0.8vh, 6px) min(1.5vw, 15px);
    border-radius: 1.5vh;
    font-size: clamp(0.7rem, 0.8vw + 0.2rem, 0.9rem);
    display: inline-block;
    text-align: center;
}

.container {
    max-width: min(1400px, 95vw);
    margin: min(2.5vh, 2rem) auto;
    padding: 0 min(1.5vw, 1.5rem);
    flex: 1;
    width: 100%;
}

.table-section-title {
    font-family: 'Cairo', sans-serif;
    /* font-size: clamp(1.6rem, 2.2vw + 0.5rem, 2.2rem); */
    color: var(--maroon);
    text-align: center;
    /* margin: min(3vh, 2rem) 0 min(2vh, 1.5rem); */
    padding-bottom: 0.8vh;
    border-bottom: min(0.25vh, 2px) solid var(--gold);
    font-weight: 800;
    text-shadow: 0 0.15vh 0.3vh rgba(0, 0, 0, 0.1);
}

/* Updated: Two Tables Side by Side Container */
.table-container {
    background: white;
    border-radius: min(1.2vh, 10px);
    overflow: hidden;
    box-shadow: 0 0.5vh 1.2vh rgba(0, 0, 0, 0.08);
    margin-bottom: min(2.5vh, 2rem);
    width: 100%;
    border: min(0.15vh, 1.5px) solid rgba(212, 175, 55, 0.15);
    display: flex;
    gap: min(2vw, 20px);
    padding: min(1.5vh, 1rem);
}

/* Individual Table Styling */
.table-wrapper {
    flex: 1;
    background: white;
    border-radius: min(0.8vh, 8px);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 0.2vh 0.6vh rgba(0, 0, 0, 0.05);
    min-width: 250px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
}

thead {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: white;
}

th {
    padding: min(1.6vh, 1.1rem) min(1vw, 0.8rem);
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: clamp(0.95rem, 1.1vw + 0.3rem, 1.2rem);
    white-space: nowrap;
    letter-spacing: 0.3px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

th:first-child {
    border-left: none;
}

tbody tr {
    border-bottom: min(0.12vh, 1.2px) solid #eee;
    transition: all 0.25s ease;
}

tbody tr:hover {
    background-color: rgba(83, 28, 31, 0.06);
    transform: translateX(-2px);
}

td {
    padding: min(1.4vh, 1rem) min(1vw, 0.8rem);
    text-align: center;
    vertical-align: middle;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1.1rem);
    font-weight: 700;
    color: var(--text-dark);
    border-left: 1px solid rgba(0, 0, 0, 0.03);
}

td:first-child {
    border-left: none;
}

.karat-badge {
    display: inline-block;
    padding: min(0.5vh, 4px) min(1.2vw, 10px);
    border-radius: 1.2vh;
    font-size: clamp(0.75rem, 0.8vw + 0.3rem, 0.95rem);
    font-weight: 800;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.18));
    color: var(--maroon);
    min-width: min(65px, 10vw);
    border: 1.2px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0.1vh 0.3vh rgba(0, 0, 0, 0.06);
    letter-spacing: 0.3px;
}

.gold-row td:nth-child(2) {
font-family: system-ui;
    color: var(--text-black);
    font-weight: 900;
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 2rem);
    text-shadow: 0 0.08vh 0.15vh rgba(0, 0, 0, 0.08);
}

.arabic-karat {
    display: inline-block;
    padding: min(0.5vh, 4px) min(1.2vw, 10px);
    border-radius: 1.2vh;
    font-size: clamp(0.75rem, 0.8vw + 0.3rem, 0.95rem);
    font-weight: 800;
    background: linear-gradient(135deg, rgba(83, 28, 31, 0.06), rgba(83, 28, 31, 0.1));
    color: var(--maroon);
    min-width: min(65px, 10vw);
    border: 1.2px solid rgba(83, 28, 31, 0.15);
    box-shadow: 0 0.1vh 0.3vh rgba(0, 0, 0, 0.06);
    letter-spacing: 0.3px;
}

#karat-table tr:nth-child(3) {
	background: rgba(212, 175, 55, 0.35);
}

/* FIXED: Manufacturer Table Container */
.manufacturer-tables-container {
    /* display: flex; */
    gap: min(2vw, 20px);
    margin-bottom: min(2.5vh, 2rem) min(2.5vh, 2rem);
}

.manufacturer-table-wrapper {
    flex: 1;
    background: white;
    border-radius: min(1.2vh, 10px);
    overflow: hidden;
    box-shadow: 0 0.5vh 1.2vh rgba(0, 0, 0, 0.08);
    border: min(0.15vh, 1.5px) solid rgba(212, 175, 55, 0.15);
}

.manufacturer-table {
    width: 100%;
    border-collapse: collapse;
}

.manufacturer-table thead {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
}

.manufacturer-table th {
    padding: min(1.4vh, 1rem) min(0.8vw, 0.6rem);
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1.05rem);
    white-space: normal;
    line-height: 1.3;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 0;
}

.manufacturer-table th:first-child {
    border-left: none;
}

.manufacturer-table td {
    padding: min(1.2vh, 0.9rem) min(0.8vw, 0.6rem);
    text-align: center;
    vertical-align: middle;
    font-size: clamp(0.8rem, 0.9vw + 0.3rem, 1rem);
    font-weight: 700;
    color: var(--text-dark);
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.manufacturer-table td:first-child {
    border-left: none;
}

.manufacturer-badge {
    display: inline-block;
    padding: min(0.4vh, 3px) min(1vw, 8px);
    border-radius: 1.2vh;
    font-size: clamp(0.75rem, 0.8vw + 0.3rem, 0.9rem);
    font-weight: 800;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.15));
    color: var(--maroon);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0.1vh 0.3vh rgba(0, 0, 0, 0.06);
    direction: ltr;
    white-space: nowrap;
}

/* Arabic country names */
.country-name-ar {
    display: block;
    font-size: clamp(0.75rem, 0.8vw + 0.2rem, 0.9rem);
    font-weight: 700;
    color: white;
    margin-top: 2px;
}

.country-name-en {
    display: block;
    font-size: clamp(0.65rem, 0.7vw + 0.2rem, 0.8rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.disclaimer {
    background-color: rgba(83, 28, 31, 0.06);
    border-right: min(0.5vh, 4px) solid var(--gold);
    padding: min(1.5vh, 1.2rem) min(2vw, 1.5rem);
    border-radius: min(0.8vh, 8px);
    margin-top: min(2.5vh, 2rem);
    font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1.1rem);
    line-height: 1.5;
    font-weight: 500;
    box-shadow: 0 0.25vh 0.6vh rgba(0, 0, 0, 0.04);
    text-align: right;
}

/* Fixed Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: var(--text-light);
    padding: min(1.2vh, 0.9rem) min(2vw, 1.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -0.3vh 1vh rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1.5px solid var(--gold);
}

.footer-left, .footer-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-left {
    justify-content: flex-start;
}

.footer-center {
    flex: 2;
    text-align: center;
    font-size: clamp(0.8rem, 0.8vw + 0.3rem, 1rem);
    font-weight: bolder;
}

.footer-right {
    justify-content: flex-end;
}

.footer-icon {
    margin-left: min(0.8vw, 8px);
    font-size: clamp(0.9rem, 1vw + 0.4rem, 1.2rem);
    color: var(--gold);
}

.instagram-link, .phone-link, .website-link {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
    font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
    font-weight: 500;
}

.website-link {
    justify-content: center;
    margin-top: 5px;
}

.instagram-link:hover, .phone-link:hover, .website-link:hover {
    color: var(--gold);
    transform: translateY(-1px);
}

/* Add padding to container for fixed footer */
body {
    padding-bottom: 60px;
}

/* Responsive adjustments */
@media (max-width: 1024px) { 
    .manufacturer-table th,
    .manufacturer-table td {
        padding: min(1.2vh, 0.85rem) min(0.7vw, 0.5rem);
        font-size: clamp(0.8rem, 0.8vw + 0.2rem, 0.95rem);
    }

    .manufacturer-badge {
        padding: min(0.35vh, 3px) min(0.9vw, 7px);
        font-size: clamp(0.7rem, 0.75vw + 0.2rem, 0.85rem);
    }

    .country-name-ar {
        font-size: clamp(0.7rem, 0.75vw + 0.2rem, 0.85rem);
    }

    .country-name-en {
        font-size: clamp(0.6rem, 0.65vw + 0.2rem, 0.75rem);
    }
}

.big-screen {
	display: none;
}

@media (max-width: 768px) {
  
    .header-content {
        gap: min(1.5vh, 1rem);
    }

    .price-cards-container {
        flex-direction: column;
        gap: min(1.5vh, 15px);
    }

    .price-card {
        min-height: min(90px, 18vh);
        padding: min(1.2vh, 0.9rem) min(2vw, 1rem);
        width: 100%;
    }

    .table-section-title {
        margin: min(2.5vh, 1.8rem) 0 min(1.8vh, 1.2rem);
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }

    /* Main tables container */
    .table-container {
        flex-direction: column;
        gap: min(2vh, 1.5rem);
        padding: min(1.2vh, 1rem);
    }

    .table-wrapper {
        width: 100%;
        min-width: 100%;
    }

    th {
        padding: min(1.4vh, 0.95rem) min(0.9vw, 0.7rem);
        font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    }

    td {
        padding: min(1.2vh, 0.85rem) min(0.9vw, 0.7rem);
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }

    /* FIXED: Manufacturer tables responsive */
    .manufacturer-tables-container {
        flex-direction: column;
        gap: min(1.5vh, 1rem);
    }

    .manufacturer-table-wrapper {
        width: 100%;
    }

    .manufacturer-table {
        width: 100%;
        min-width: 100%;
    }

    .manufacturer-table th,
    .manufacturer-table td {
        padding: min(1.1vh, 0.8rem) min(0.8vw, 0.6rem);
        font-size: clamp(0.8rem, 2.5vw, 0.95rem);
        white-space: normal;
        word-break: break-word;
    }

    .manufacturer-badge {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        padding: min(0.3vh, 2.5px) min(0.8vw, 6px);
        white-space: nowrap;
    }

    .country-name-ar {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    }

    .country-name-en {
        font-size: clamp(0.65rem, 2vw, 0.8rem);
    }

    .karat-badge, .arabic-karat {
        font-size: clamp(0.7rem, 2.5vw, 0.85rem);
        padding: min(0.4vh, 3px) min(1vw, 8px);
        min-width: min(60px, 15vw);
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: min(0.8vh, 8px);
        padding: min(1vh, 0.8rem) min(1.5vw, 1rem);
        background-image: url('https://goldenringsoman.com/image/catalog/Banner/C-1.webp');
        background-size: cover;
    }

    .footer-left, .footer-center, .footer-right {
        width: 100%;
        justify-content: center;
        margin-bottom: min(0.6vh, 6px);
    }

    .footer-center {
        order: 1;
        margin-bottom: min(1vh, 10px);
    }

    .footer-left {
        order: 2;
        margin-bottom: min(1vh, 10px);
    }

    .footer-right {
        order: 3;
        margin-bottom: 0;
    }

    body {
        padding-bottom: 120px;
    }

    .update-time {
        align-self: center;
        margin-top: min(1.5vh, 15px);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .price-card {
        padding: min(1vh, 0.8rem) min(2.5vw, 0.9rem);
        min-height: min(80px, 15vh);
    }

    .price {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    }

    .karat-badge, .arabic-karat {
        min-width: min(55px, 18vw);
        padding: min(0.3vh, 2.5px) min(0.8vw, 6px);
        font-size: clamp(0.65rem, 2.8vw, 0.8rem);
    }

    .disclaimer {
        padding: min(1.2vh, 1rem) min(2vw, 1.2rem);
        font-size: clamp(0.8rem, 3vw, 0.95rem);
    }

    th, td {
        padding: min(1vh, 0.75rem) min(0.7vw, 0.5rem);
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }

    /* Extra small screens */
    .manufacturer-table th,
    .manufacturer-table td {
        padding: min(1vh, 0.7rem) min(0.6vw, 0.4rem);
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    }

    .manufacturer-badge {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem);
        padding: min(0.25vh, 2px) min(0.7vw, 5px);
    }

    body {
        padding-bottom: 130px;
    }
}

@media (min-width: 1600px) {
    .header-content {
        max-width: min(1500px, 85vw);
    }

    .container {
        max-width: min(1500px, 85vw);
    }

    .price-cards-container {
        gap: min(2.5vw, 30px);
    }

    .price-card {
        padding: min(1.8vh, 1.3rem) min(2vw, 1.5rem);
        min-height: min(110px, 22vh);
    }

    th {
        padding: min(1.8vh, 1.3rem) min(1.2vw, 1rem);
        font-size: clamp(1.05rem, 1.2vw + 0.3rem, 1.4rem);
    }

    td {
        padding: min(1.6vh, 1.2rem) min(1.2vw, 1rem);
        font-size: clamp(1rem, 1.1vw + 0.3rem, 1.3rem);
    }
}

/* Very small screens - landscape */
@media (max-height: 600px) and (orientation: landscape) {
  
    body {
        padding-bottom: 70px;
    }

    footer {
        padding: min(1vh, 0.7rem) min(1.5vw, 1rem);
        display: none;
    }

    .price-card {
        min-height: min(70px, 15vh);
        padding: min(1vh, 0.8rem) min(1.5vw, 1rem);
    }

    .table-container {
        padding: min(1vh, 0.8rem);
        gap: min(1.5vw, 15px);
    }
  	.table-section-title {
      display: none;
    }
   
  .mobile-screen {
  	display: none;
  }
  
  .big-screen {
	display: flex;
  }
  
}